-
Notifications
You must be signed in to change notification settings - Fork 11
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
Repopulate cached GlobalConfig object if CYLC_SYMLINKS exported to env. #269
Repopulate cached GlobalConfig object if CYLC_SYMLINKS exported to env. #269
Conversation
4a34384
to
81dec2c
Compare
~🚧 🏗️ 🚧 ~ Now only failing the same as master |
5d4e8ed
to
0cc308d
Compare
is reloaded after the export of `CYLC_SYMLINKS` variable. This means that using the `CYLC_SYMLINKS` variable allows users to specify installation symlink locations in the `rose-suite.conf`.
0cc308d
to
fa3611b
Compare
Added module version of gen workflow name fixture. Fix refs to runN or run1.
3bc9b27
to
6ff23bf
Compare
Now failing identically to master nightly tests. |
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.
LGTM
Co-authored-by: Oliver Sanders <[email protected]> Update tests/functional/test_utils.py Co-authored-by: Oliver Sanders <[email protected]> fix tests
421782e
to
6bb14bb
Compare
Co-authored-by: Ronnie Dutta <[email protected]>
…hub.com:wxtim/cylc-rose into feat.reload_glbl_cfg_after_export_CYLC_SYMLINKS * 'feat.reload_glbl_cfg_after_export_CYLC_SYMLINKS' of github.com:wxtim/cylc-rose: Apply suggestions from code review
@MetRonnie - this is failing in the same way as master - I'm working on fixing in #289, but I don't think that this PR needs to away that one for review. |
# the global config so that the value of this vars | ||
# can be used by Jinja2 in the global config. | ||
# https://github.com/cylc/cylc-rose/issues/237 | ||
if environment: |
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.
Note, the environment is always populated as a result of automatic Rose variables.
Closes #237
This is now ready for review but needs testing against cylc/cylc-flow#5839.
Ensure that the cached globalconfig object is reloaded after the export of
CYLC_SYMLINKS
variable. This means that using theCYLC_SYMLINKS
variable allows users to specify installation symlink locations in therose-suite.conf
.n.b. I was surprised to find that running
glbl_cfg()._DEFAULT = None
did not clear the cached config in a way that would force the reload in Cylc, but I think just reloading the config in Cylc Rose makes at least as much sense.Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.