-
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
conf: change suite.rc to flow.cylc #3755
Conversation
3fb6336
to
1e718cb
Compare
If a workflow dir only has 'suite.rc' on first run, automatically create a symlink 'flow.cylc' to that 'suite.rc' in the register suite step
1e718cb
to
43a3cfd
Compare
@@ -87,21 +87,21 @@ | |||
|
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.
You will need to rename the configuration file at line 37.
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.
Do you mean flow.rc
? Would it make sense to split that off into another PR?
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.
Ah, just read the PR description, I would have thought it would be easier to do both at the same time, but if you want to do it in two PRs that's ok.
43a3cfd
to
14335cb
Compare
No, it's a really valuable feature for those using Cylc without Rose. For those using Cylc with Rose it's a potential trap, but that's something we can address with the |
14335cb
to
434580a
Compare
434580a
to
b27cc08
Compare
b27cc08
to
871cf49
Compare
19b6f7c
to
ebe72b7
Compare
A very minor point, but the Actually maybe just |
As a relative newcomer, I feel that including "flow" in the name makes its purpose clearer. |
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 👍
- Reduce verbosity of docs
Ensure suite / workflow is registered in that case
Plus alter docs notes on .rc -> .cylc slightly
111aa34
to
fe497cb
Compare
be1bf06
to
29c61b4
Compare
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.
(Re-approved after a quick scroll through "Files changed")
for cases such as `cylc validate .` where the dir only contains deprecated suite.rc
Just pushed one last change because commands like |
- Remove previously conflicting files that were deleted on master - Put trailing spaces back in whitespace test - (Also fix call to missing function in cylc-scan sigstop test)
fa6ae2f
to
ee20de9
Compare
I think we are good to go! |
These changes partially address #3689
Summary
suite.rc --> flow.cylc
flow.rc & global.rc --> global.cylc
log/suiterc/ --> log/flow-config/
suiterc
in variable names--> flow_config
, and generallyrc
in variable names--> config
test_header
functioncreate_test_globalrc --> create_test_global_config
tests/i/utils/flow_writer.py
):flow_writer.suiterc() --> flow_writer.flow_config_str()
suiterc --> flow_file
*.rc --> *.cylc
Backwards compatibility
cylc run
s a directory that contains onlysuite.rc
, it will automatically create a symlinkflow.cylc
to thatsuite.rc
.cylc run
s an already-registered suite/workflow andflow.cylc
doesn't exist (i.e. suite/workflow was run on a previous version of Cylc), it will re-register(No backwards compatibility for flow.rc)
Best to look at this one commit by commit. The commits called "Wider rename..." usually consist of the same change done across many files, so you probably only need to take a look at a couple of the files in those.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.suite.rc
toflow.cylc
included