-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support --workdir-root
in the tmt clean
command
#2850
base: main
Are you sure you want to change the base?
Conversation
bccb7e3
to
b4e2de6
Compare
1f8d67b
to
8bd2d7f
Compare
8c8da09
to
8d9a62a
Compare
8d9a62a
to
d3ee2a2
Compare
b845dbc
to
caa18b9
Compare
caa18b9
to
4a5c49e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Just nitpicks.
I'm surprised setting a workdir root is so complicated tbh (not necessarily related to these changes). :)
@skycastlelily would it be possible to log the workdir root please in case the verbose mode is enabled please? Something like:
|
ff423c9
to
687c21b
Compare
ah,yes, I misunderstood you by somehow overlooking "I for one would still
use self.workdir_root" 😅,anyway,rebased and updated^^
…On Wed, Oct 16, 2024 at 9:12 PM Miloš Prchlík ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tmt/base.py
<#2850 (comment)>:
> @@ -3900,7 +3902,7 @@ def _stop_running_guests(self, run: Run) -> bool:
def guests(self, run_ids: tuple[str, ...]) -> bool:
""" Clean guests of runs """
self.info('guests', color='blue')
- root_path = Path(self.opt('workdir-root'))
+ root_path = Path(self.workdir_root)
This does not seem to be addressed yet.
—
Reply to this email directly, view it on GitHub
<#2850 (comment)>, or
unsubscribe
<https:/notifications/unsubscribe-auth/AKFR23DJFT5KI25AAWU7TRTZ3ZQ4DAVCNFSM6AAAAABGDUNQC6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNZSGQZTCMBSGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Updated^^
…On Wed, Oct 16, 2024 at 10:37 PM Miloš Prchlík ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tmt/cli.py
<#2850 (comment)>:
> @@ -1930,25 +1935,24 @@ def clean(context: Context,
exit_code = 0
if context.invoked_subcommand is None:
assert context.obj.clean_logger is not None # narrow type
-
- # Set path to default
- context.params['workdir_root'] = tmt.utils.WORKDIR_ROOT
+ root_path = effective_workdir_root(workdir_root)
One more root_path we should root out and replace with workdir_root. We
can definitely re-use the workdir_root name to hold the workdir root, the
one we get from effective_workdir_root, it should be the same type and
meaning.
—
Reply to this email directly, view it on GitHub
<#2850 (review)>,
or unsubscribe
<https:/notifications/unsubscribe-auth/AKFR23F6EILSJA42FNOFZXTZ3Z223AVCNFSM6AAAAABGDUNQC6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNZSG4YTENBVGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@skycastlelily please, check the tests, there seems to be some issue with a missing argument. No idea why Edit: got it. It's the And linters didn't report it because they don't see into Click and options... |
d42582c
to
c15154b
Compare
Updated,should be good now:)
…On Fri, Oct 18, 2024 at 5:13 PM Miloš Prchlík ***@***.***> wrote:
@skycastlelily <https:/skycastlelily> please, check the
tests, there seems to be some issue with a missing argument. No idea why
pre-commit and linters did not report it :/
—
Reply to this email directly, view it on GitHub
<#2850 (comment)>, or
unsubscribe
<https:/notifications/unsubscribe-auth/AKFR23FK6HF4FPVOHY3MKJ3Z4DGLTAVCNFSM6AAAAABGDUNQC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRRHEZDQOJVGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
316683b
to
f071b81
Compare
Updated😅
…On Mon, Oct 21, 2024 at 7:16 PM Miloš Prchlík ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In docs/releases.rst
<#2850 (comment)>:
> @@ -4,10 +4,12 @@
Releases
======================
-
This line should not be removed.
—
Reply to this email directly, view it on GitHub
<#2850 (review)>,
or unsubscribe
<https:/notifications/unsubscribe-auth/AKFR23GKUJVGTGPECMSCPGLZ4TPBDAVCNFSM6AAAAABGDUNQC6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGOBRG4ZDEMJQGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one nitpick. Also proposing a minore release note enhancement in 94b9098. @skycastlelily, does it look goot to you?
logger=context.obj.logger.clone().apply_verbosity_options(**kwargs), | ||
cli_invocation=CliInvocation.from_context(context)) | ||
logger=context.obj.logger.clone(). | ||
apply_verbosity_options(**kwargs), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the new line really needed here?
--workdir-root
in the tmt clean
command
@skycastlelily, what about extending |
Pull Request Checklist