-
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
Cylc VR: Validate should not change options #6316
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wxtim
changed the title
Cylc VR: Pass validate a copy of the options object to
Cylc VR: Validate should not change options
Aug 22, 2024
wxtim
force-pushed
the
fix.6262
branch
2 times, most recently
from
August 22, 2024 09:55
d97e9f5
to
febc787
Compare
wxtim
force-pushed
the
fix.6262
branch
2 times, most recently
from
August 22, 2024 15:19
0b927a6
to
1fcacc5
Compare
wxtim
commented
Aug 22, 2024
wxtim
commented
Aug 22, 2024
wxtim
commented
Aug 22, 2024
wxtim
commented
Aug 22, 2024
oliver-sanders
requested review from
MetRonnie
and removed request for
oliver-sanders
August 22, 2024 16:11
MetRonnie
reviewed
Aug 22, 2024
tests/functional/cylc-combination-scripts/09-vr-icp-now/flow.cylc
Outdated
Show resolved
Hide resolved
Please remove the "partially" or create a follow-on issue to cover this. |
MetRonnie
reviewed
Aug 29, 2024
This comment was marked as resolved.
This comment was marked as resolved.
prevent changes made to the options by validate affecting subsequent steps. Response to review - Variable name suggestions. - Test speedup.
This comment was marked as resolved.
This comment was marked as resolved.
MetRonnie
reviewed
Sep 25, 2024
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.
Got a functional test failure
tests/f/restart/10-pre-initial-2.t
Co-authored-by: Ronnie Dutta <[email protected]>
MetRonnie
approved these changes
Oct 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #6262
Validate may alter the content of options objects passed to it: In this case by replacing
icp = now
withicp = <actual time>
which is an invalid restart option.Fix
Pass validate a copy of the options object to prevent changes made to the options by validate affecting subsequent steps.
Whilst in principle we probably shouldn't let the options object be mutated by the
cylc validate
this shouldn't affect us anywhere except incylc vr
.Check List
cylc vip
.CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.