-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix.cylc rose issue 319 #322
Conversation
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, possible simplification.
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.
Note, the issue is tagged against 1.4.0 not 1.3.x. We can leave this on the bugfix milestones, but will need to amend the cylc-flow dependency in setup.cfg to prevent this from being used with an incompatible release of cylc-flow if we were to make another bugfix release before the cylc 8.3 meta-release.
(tests will fail until upstream PR merged) |
Could do with a quick rebase now that the sync PR is in. |
def get_compat_mode(run_dir: Union[str, Path]) -> bool: | ||
"""Check whether this is a Cylc 7 Back compatibility mode workflow: | ||
|
||
See https://github.com/cylc/cylc-rose/issues/319 | ||
|
||
Args: | ||
run_dir: Cylc workflow run directory. | ||
""" | ||
return (Path(run_dir) / WorkflowFiles.SUITE_RC).exists() |
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.
Couldn't we just import and use cylc.flow.workflow_files.check_deprecation
?
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 guess that we could, but I'd rather not risk change the state of the cylc.flow.flags.cylc7_back_compat
flag if at all possible: This approach means that information is only really flowing from Cylc flow into Cylc Rose.
…ening the flow-processed.cylc file, and override the compat mode in the workflow config if required.
079d63c
to
bea2f90
Compare
Kicking tests |
Works with cylc/cylc-flow#6097 to close #319.
Functional test provided by metomi/rose#2779
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.