Skip to content
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

Allow pre configure plugin to access compat mode info in cylc install. #5582

Conversation

wxtim
Copy link
Member

@wxtim wxtim commented Jun 13, 2023

(Show "real" args used by Cylc Play in VIP)

Part fixes a bug spotted by a user and not documented as a separate ticket: Cylc install behaviour was inconsistent between cylc install and cylc vip in the example described in cylc/cylc-rose#230 because cylc install did not set the cylc7_compat_mode until after the pre_configure plugin ran.

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • CHANGES.md entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@wxtim wxtim requested a review from oliver-sanders June 13, 2023 12:35
@wxtim wxtim force-pushed the fix.make_compat_mode_info_available_before_pre_config_plugins branch from 979999b to a813c05 Compare June 13, 2023 12:42
@wxtim wxtim force-pushed the fix.make_compat_mode_info_available_before_pre_config_plugins branch from a813c05 to 040e0f4 Compare June 13, 2023 12:44
@wxtim wxtim changed the base branch from master to 8.1.x June 13, 2023 12:45
@@ -111,5 +113,5 @@ def main(parser: COP, options: 'Values', workflow_id: Optional[str] = None):
)

set_timestamps(LOG, options.log_timestamp)
log_subcommand('play', workflow_id)
log_subcommand(*sys.argv[1:])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically off-topic, but it's a very small enhancement.

Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with cylc/cylc-rose#231, all good.

cylc/flow/workflow_files.py Outdated Show resolved Hide resolved
tests/integration/test_install.py Outdated Show resolved Hide resolved
wxtim and others added 2 commits June 15, 2023 09:40
@wxtim wxtim requested a review from MetRonnie June 15, 2023 08:41
@MetRonnie MetRonnie modified the milestones: cylc-8.x, cylc-8.2.0 Jun 15, 2023
@MetRonnie MetRonnie merged commit bf1424e into cylc:8.1.x Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants