-
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
Fix unintended directory stripping during cylc install #4931
Conversation
I think we should have at least one functional test for this, especially given that we accidentally implemented, then un-implemented this before 🤣. |
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Works fine for workflows installed by "name" or "path", however, we get a flat installation when installing from "$PWD". $ cd ~/cylc-src
$ mkdir a/b/c -p
$ touch a/b/c/flow.cylc
$ cylc install a/b/c
INSTALLED a/b/c/run1 from ~/cylc-src/a/b/c
$ cylc install ~/cylc-src/a/b/c
INSTALLED a/b/c/run2 from ~/cylc-src/a/b/c
$ cd a/b/c
$ cylc install
INSTALLED c/run1 from ~/cylc-src/a/b/c |
Agh, |
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.
Since it's approved by Hilary and Ronnie I've done a quick functional check.
* master: (30 commits) Log dir tidy (cylc#4836) Cut down on back-compat warnings, plus other tidying (cylc#4943) Validate platform settings (background job runner) (cylc#4938) clean: push error message to stderr Update cylc/flow/id_match.py Fix unintended directory stripping during cylc install (cylc#4931) stop cylc validate swallowing useful errors (cylc#4936) Improve config reference docs (cylc#4916) glblcfg: increase default rolling archive length Fix job state with pre-submitted failure Update tests/functional/cylc-reinstall/02-failures.t reinstall: require workflow ID argument play: upgrade --start-task's specified in legacy format (cylc#4925) expand schema docstring internally (cylc#4926) Added a new task filtering test. Add comment [skip ci] Fix optparse Options class for std options (cylc#4919) uid: warn if the run number is provided as a cycle Tweak prev. Fix task filtering. ...
These changes close #4930
Fix bug where hierarchical source workflows (e.g
~/cylc-src/dogs/fido/
) would lose the multi-level name on installation ifglobal.cylc[install]source dirs
contained~
or env vars.Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.