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

Wrapper script enhancements #4655

Merged
merged 1 commit into from
Mar 10, 2022
Merged

Wrapper script enhancements #4655

merged 1 commit into from
Mar 10, 2022

Conversation

dpmatthews
Copy link
Contributor

Support the use of environments with names that do not match the cylc flow version (e.g. cylc-8.0.0-1)
Ensure workflows always run under fixed environments rather than symlinked versions which could change
Provide legacy support for rose edit & cylc review (partially address #4555)

Copy link
Member

@wxtim wxtim left a comment

Choose a reason for hiding this comment

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

I've found one scenario which produces an error which should probably be replaced by a warning.

Otherwise seems reasonable to read, and test manually.

cylc/flow/etc/cylc Outdated Show resolved Hide resolved
cylc/flow/etc/cylc Show resolved Hide resolved
… flow version (e.g. cylc-8.0.0-1)

Ensure workflows always run under fixed environments rather than symlinked versions which could change
Provide legacy support for rose edit & cylc review (partially address cylc#4555)
Comment on lines +70 to +71
# Releases should be installed into environments in the ROOT location, named
# cylc-$CYLC_VERSION. We recommend using the cylc-flow version plus an additional
Copy link
Member

Choose a reason for hiding this comment

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

A small change would be handy at NIWA, to avoid having to edit some code down in the guts of the wrapper:

CYLC_ENV_NAME_PREFIX="cylc-"   # editable prefix
# ...
${CYLC_ENV_NAME_PREFIX}${CYLC_VERSION}

Our HPC admins use this convention: .../share/cylc/8.0rc1 etc.

Copy link
Member

Choose a reason for hiding this comment

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

(However, not a biggie)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like this idea. However, I think it also means making the name of the default version configurable (also like the idea of this). Do you mind if we do this in a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wxtim
Copy link
Member

wxtim commented Mar 10, 2022

Is there any reason why this has stopped?

@hjoliver
Copy link
Member

hjoliver commented Mar 10, 2022

Probably my fault - I had meant to approve, aside from the change suggestion above that I agreed (via 👍 ) to punt to another issue.

@hjoliver hjoliver merged commit c94481f into cylc:master Mar 10, 2022
@dpmatthews dpmatthews deleted the wrapper branch March 11, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants