-
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
Upgrade mixed syntax #2095
Upgrade mixed syntax #2095
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.
@oliver-sanders - we are planning another 6.11.x release now; could you backport this plz. |
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.
Good.
['runtime', '__MANY__', 'job', 'batch submit command template']) | ||
u.deprecate( | ||
'6.11.0', | ||
['runtime', '__MANY__', 'job submission', 'shell'], | ||
['runtime', '__MANY__', 'job', 'shell'], | ||
['runtime', '__MANY__', 'job', 'shell']) |
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.
@oliver-sanders - this deprecate call is now redundant - the 'old' and 'new' args are the same (sorry, I missed this yesterday!)
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.
Well spotted! I've updated the back-port and have put up a new pull (#2103) for 7.0.x.
Closes #2094
Note: #2094 was reported with 6.11.2, I can backport this if we are planning another 6.11.x release.
1) Fixes a problem in the
upgrader
class whereby the following config:Would fail to be caught by this upgrader:
Old behaviour:
New behaviour:
2. Fixes upgrading of mixed-syntax
job submission
/job
sectionsThe following config ...
Will now parse correctly:
With the following notices from
validate
:Caveat: the deprecation warning now reads
[runtime][foo][job][retry delays]
rather than[runtime][foo][job submission][retry delays]
which could be a little cryptic.3) Upgrade section headings rather than the settings within them (in cylc/cfgspec/suite.py)
e.g. upgrade [event handlers] to [events] rather than upgrading [event handlers]failed handler to [events]failed handler then [event handlers]xyz to [events]xyz ...
@arjclark @matthewrmshin @hjoliver Whoever's around please debate / review.