-
Notifications
You must be signed in to change notification settings - Fork 96
Validation of order of initial/start/stop/final cycle points #6874
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
base: 8.6.x
Are you sure you want to change the base?
Conversation
e7708d2
to
223fefe
Compare
Broken the one test which did test any case |
ef8574c
to
f81634e
Compare
f"{label1} cycle point '{point1}' will have no effect as" | ||
f" it is {order} the {label2} cycle point '{point2}'." |
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.
I think there is conflation of 2 different cases here.
-
Valid but useless X cycle point. E.g.:
start cycle point '1' before the initial cycle point '2'
This should give a warning.
-
Invalid X cycle point. E.g.:
stop cycle point '1' before the initial cycle point '2'
I think this ought to raise an input error.
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.
There are already errors raised elsewhere for seriously bad cases (mostly final < initial).
I can't see, however why you think these two cases should be treated differently - Neither make a lick of sense, but I don't think one is more clearly wrong than the other?
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.
Case 2 is a user error that will result in the workflow shutting down immediately. It would be more helpful to flag up this error instead of just warning?
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.
will result in the workflow shutting down immediately
I think that's less dangerous than case 1 where the workflow runs, but if the user intended startcp=10 it won't work as expected, but will do so quietly.
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.
I think I am happy for case 1 to raise an error too. However we may want to discuss this
(assigning commenters as reviewers) |
Draft because it's broken loads of tests |
badaf1f
to
c5cbfd1
Compare
Closes #6866
Follow-up to #4302
Apparently there was no systematic validation of whether users were supplying sensible values for these, except in a small number of cases.
In this PR, I write a thorough set of cases and ensure that they all pass.
Currently this targets 8.4.x, but I understand that given the refactoring it might be sensible enough to target 8.6.0.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.