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
Further cylc wrapper improvements? #4555
Comments
list available versionsQuick hack: if [[ $1 == "list-versions" ]]; then
ls -l "${CYLC_HOME_ROOT}" | awk '{print $9,$10,$11}'
exit 0
fi result: $ cylc list-versions
7.9.1
7.9.2
7.9.5
8.0b3
cylc -> 7.9.1 |
cylc review invocationQuick hack: if [[ "${CYLC_VERSION:-x}" =~ ^8 ]]; then
if [[ "${1:-}" == "review" ]]; then
echo "Starting Cylc 7.9.5 'cylc review' for Cylc 8 logs."
CYLC_VERSION=7.9.5 # latest Cylc 7 "cylc review" required for Cylc 8.
fi
fi |
[UPDATE:] this is a niche problem for me due to the fact that one cylc 7 installation that I do not have write access to is missing its global config, so I wanted to try to put cylc 7 configs under the same hierarchy as cylc 8 (where I do have write access) for use via the new wrapper ... but we're stuck with the CONF variables as-is, so I can either stick with the workaround below, or get hpc admins to fix the broken Cylc 7 version.
|
List available versions:
cylc review invocation:
site config locations:
|
Generally in agreement with @dpmatthews , but I question
Wouldn't this fix the issue for us? - ls -l "${CYLC_HOME_ROOT}" | awk '{print $9,$10,$11}'
+ find "${CYLC_HOME_ROOT}/cylc*" -maxdepth 0 | awk -F '/' '{print $NF}' |
So do we (well, some other things) - I simplified my example above, but it's easy to exclude other things.
Yes, but for centrally installed environments named by the release version, the wrapper works for Cylc 8 with CYLC_VERSION, which is easier for normal users. And we could even make it list environments that don't conform to that naming convention, of course.
Easy to add that in.
Yes but the wrapper could intercept |
IMO listing available versions easily would be valuable. A lot of users at my site stick with old versions for ever because they don't know (or forgot) which newer versions are available. |
At NIWA we can't have a central |
Yeah the problem is CYLC_CONF_PATH is version specific, rather than the top of a multi-version hierarchy. And we still need that occasionally in Cylc 8 (e.g. for functional tests). So I guess I just have to work around that as above, or get hpc admin to fix the missing I'll cross out this one from the list above. |
… 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)
… 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)
… 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)
… 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)
Fixed in #4655. However a new enhancement was raised: make the prefix and the name of the default version configurable. |
Should we get the wrapper to:
automatically invoke cylc-7.9.5 ifDONEcylc review
is called in a Cylc 8 environment?handle site config locations?The text was updated successfully, but these errors were encountered: