-
Notifications
You must be signed in to change notification settings - Fork 94
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
Lint: Only warn about -W
when used for LSF
#6551
base: 8.4.x
Are you sure you want to change the base?
Conversation
575053f
to
404adc1
Compare
a way which indicates use of LSF.
316ded6
to
fef13fb
Compare
@@ -209,9 +213,17 @@ def check_wallclock_directives(line: str) -> Union[Dict[str, str], bool]: | |||
>>> this = check_wallclock_directives | |||
>>> this(' -W 42:22') | |||
{'directive': '-W 42:22'} | |||
>>> this(' -W 42:22/hostname') # Legit LSF use case |
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.
Looking at https://www.ibm.com/docs/en/spectrum-lsf/10.1.0?topic=o-w-1, I think that this is an LSF wallclock directive which can't be handled by execution time limit
and therefore is a legitimate case for using -W
with LSF.
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.
Can you do multiple things with this opt?
e.g -W 00:02 foo=bar
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.
In LSF or PBS?
In LSF, not really.
In PBS, not really - only key=value pairs.
I don't think that the two are mistakeable.
I found some suggestion in the user guide that the time can take a longer format:
Maybe: Might be worth quickly running this rule over avaliable cylc-run dirs to make sure there aren't any false positives. |
This regex is only supposed to match LSF format wallclock strings, avoiding PBS The PBS check one will match any case where I've added an extra test to demonstrate my point. |
Closes #6550
-W
should only be highlighted by Cylc lint when being used in a way which indicates use of LSF.Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).