-
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
Prevent Cylc 7 from running suite.rc workflow that was previously run with Cylc 8 #4838
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.
- read.
- Manually tested.
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.
One thing I noticed is that Cylc 7 let me run a workflow which had been "installed" by Cylc 8.
Perhaps this should also be blocked, could/should we add a check for the existence of _cylc-install
, ../_cylc-install
?
What if a user is trying to make use of the back-compat interoperability even though they have installed from a newfangled source dir? |
The back compat is with the workflow definition not with the install process. The |
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 like this is good to go now 🌮
These changes close #4835.
Fix bug where Cylc 7 would happily run a
suite.rc
workflow that was previously run with Cylc 8. (This bug came after we stopped doing theflow.cylc -> suite.rc
symlink)Do not run if:
flow.cylc
detected in run dir_cylc-install
dir detected in run dir or 1 aboveThis PR does not do anything about:
cylc register
or the auto-register that happens on start. All this does is create a.service/source
symlink, which is relatively harmlessTesting
Pytest
Functional tests I have run (
cylc test-battery
):tests/cylc8
tests/database
tests/registration
tests/restart
tests/startup
Manual tests to run (from #4320):
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.