-
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
Don't pass rose variables with state ! or !! to Cylc. #171
Conversation
495d66b
to
94f676a
Compare
94f676a
to
b2e1dd7
Compare
'!SINGLE="bar"\n' | ||
'!!DOUBLE="baz"\n' | ||
) | ||
result = run(split(f'cylc validate {str(tmp_path)}'), capture_output=True) |
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.
Can use cylc view -p
here to simplify the example (no need for the scheduler
or scheduling
sections).
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.
Yes, but you have to turn jinja2 processing on with --jinja2
.
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 -p
detects #!shebangs
and runs the relevant processing)
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.
(Please squash)
replace cylc validate with cylc view --jinja2 in test
2f42bb4
to
cc395d2
Compare
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.
Thanks @wxtim.
replace cylc validate with cylc view --jinja2 in test
replace cylc validate with cylc view --jinja2 in test
replace cylc validate with cylc view --jinja2 in test
replace cylc validate with cylc view --jinja2 in test
…mental_improvements_to_testing * 'master' of github.com:cylc/cylc-rose: Remove subprocess from tests (cylc#194) update stem - install interface (cylc#193) Update tests/unit/test_rose_stem_units.py response to review Update setup.cfg removed never used option Improve test coverage for Rose Stem reinstall changes to `rose-suite.conf` [tests] (cylc#178) Changed the rose stem functional tests to a more pytest-integration style. Bump rose dependency to `2.1.*` Bump dev version on master to next minor release (cylc#175) Fix changelog conflict with 1.1.x (cylc#186) Prepare release: 1.1.1 (cylc#183) Rose Stem Fixes (cylc#172) Don't pass rose variables with state ! or !! to Cylc. (cylc#171) Don't pass rose variables with state ! or !! to Cylc. (cylc#171) Bump cylc-flow dependency (cylc#173) functional tests only cleanup if succeeded
This is a small change with no associated Issue.
It closes an otherwise undocumented bug where variables commented in a
rose-suite.conf
(with a!
or!!
) are passed to Cylc regardless.Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
.