-
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
config: suppress config deprecation warnings in compat mode #4829
config: suppress config deprecation warnings in compat mode #4829
Conversation
a0b7c0e
to
88b880b
Compare
@@ -786,7 +786,6 @@ def _check_implicit_tasks(self) -> None: | |||
not cylc.flow.flags.cylc7_back_compat | |||
): | |||
raise WorkflowConfigError(msg) | |||
LOG.warning(msg) |
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.
This log message says "to allow implicit tasks ..." which isn't appropriate in Cylc 7 compat mode (as implicit tasks are already allowed by exception), if users followed this advice they would make the workflow Cylc 7 incompatible.
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 this needs a docs update, I am happy to work on that
This comment was marked as resolved.
This comment was marked as resolved.
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 wait, will need to do something about
cylc-flow/cylc/flow/workflow_files.py
Lines 342 to 346 in 0c6af24
SUITERC_DEPR_MSG = ( | |
f"Backward compatibility mode ON for CYLC 7 '{WorkflowFiles.SUITE_RC}'" | |
" files: please address deprecation warnings and upgrade to Cylc 8 graph" | |
f" syntax BEFORE renaming the file to '{WorkflowFiles.FLOW_FILE}'.\n" | |
) |
cylc-flow/cylc/flow/cfgspec/workflow.py
Lines 108 to 113 in 88b880b
.. versionchanged:: 8.0.0 | |
The configuration file was previously named ``suite.rc``, but that | |
name is now deprecated. Please take action on any deprecation | |
warnings before renaming ``suite.rc`` configuration files | |
to ``flow.cylc``. |
88b880b
to
a69e753
Compare
Ach dammit, sorry, should read things better. |
* Configuration deprecation warnings are currently displayed in Cylc 7 compatibility mode. * Compatibility mode is expected to be used by Cylc 7/8 compatible workflows during this transition period. * If users were to follow these warnings they would make their workflows incompatible with Cylc 7. * This change suppresses these deprecation (and only deprecation) warnings in Cylc 7 compat mode.
FYI this changes the advice from "address warnings in compat mode" to "address warnings/errors after upgrading". I think this makes more sense, it is hard (and possibly not really possible) to upgrade the graphing in compat mode because the graph execution logic is different? |
a69e753
to
4abc00a
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.
Makes sense, but I think the back-compat mode warning should still explain how to upgrade. (A bigger warning is also a bit harder to ignore forever).
I have opened a PR against this PR: oliver-sanders#54
|
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Co-authored-by: Hilary James Oliver <hilary.j.oliver@gmail.com>
Add warning about recurrence fmt 1 in Cylc7 back-compat mode
flake8 failing
|
sorted (squash-merge me) |
Quickie spotted during support:
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.