-
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
Add CYLC_ variables to template engine globals. #5571
Conversation
ac6cddd
to
546cc73
Compare
(remote tests unhappy) |
Hmm, found this in the debug section for the failed test:
??? |
I've not put anything demanding radical changes in my comments, mostly suggestions for shrinking the test, not of which I'm emotionally attached to (apart from I've had a play with a checked out copy. Will approve once conflicts are resolved. |
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.
I've done a deconflict merge.
Could you do a final check that my merge hasn't broken anything?
This PR will still have tests failing, see above. |
The test that is failing had this in it:
Before this PR I think |
That doesn't make sense to me, there are other tests which follow this pattern:
But don't provide a default:
So would get a Jinja2Undefined error if so. |
Oh, sorry, didn't read that properly, it's a Jinja2 variable 🤦 |
Here's a test that runs in CI and uses the Jinja2 variable:
|
In that one it uses |
17f1bb8
to
783d4b4
Compare
897cc64
to
1ecd9aa
Compare
Addressed review comments. |
1ecd9aa
to
29b5bf9
Compare
And fixed the failing test (it now runs remote jobs, as advertised). |
Should be good to go now. Cylc-doc PR up too. |
896d451
to
bb1a75f
Compare
bb1a75f
to
d48c652
Compare
Right, all done. I think |
d48c652
to
e1fdcf0
Compare
Regression in Btw as this is an enhancement should it be on the 8.3.0 milestone (and base changed to master)? |
Damn it, problem was I stupidly force-pushed from my outdated branch on the laptop at home today after yesterday's fixes at work. I had to redo some changes, but forgot this one. And yes, it should be rebased to master. |
I've cherry picked the missing commit. And changed the base + milestone; no need to rebase however (and no need to fiddle with the changelog anymore 😁) |
Great, thanks! (change base on the PR is what I meant) |
What it says. Make this sort of thing work during
flow.cylc
parsing:See explanation in #5570 (comment)
If agreed, I'll document this, and do the same for Empy.
Will need to document that this should not be used in place of the associated environment variables in task definitions (they get evaluated at job run time and will therefore always be defined).
[UPDATE: for the linked use case, #5589 makes this PR redundant. But this might be useful for other reasons]
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.