-
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 param expansion in inherited environment. #4248
Conversation
96c822f
to
9bfe2fd
Compare
This is ready to go now. |
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.
Code and tests look good! Pending only CI to pass 👍
mypy error fixed in the merged #4251 |
aeb3bf9
to
570a838
Compare
Rebased. |
@hjoliver can we ignore the macos failure?
|
570a838
to
66bcbb0
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.
Sadly this didn't work for my example workflow, took a bit of staring before I found the edge case that was causing the bug.
On this branch the following example fails:
[task parameters]
a = 1..3
b = 1
[scheduling]
[[graph]]
R1 = x<b>
[runtime]
[[FAM<a>]]
[[[environment]]]
param = %(a)s
[[x<b=1>]]
inherit = FAM<a=1>
script = test $param -eq 1
[[x<b>]]
pre-script = echo pre
However, if you comment out the last task:
# [[x<b>]]
# pre-script = echo pre
It will pass on this branch (but not on master).
God damn it. Sadly indeed! |
It certainly works for your original example, on #4242 |
Interestingly, it works if I swap the order:
|
Fixed now, and test extended to cover this case. |
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.
My example now passes, thanks.
* 'master' of https://github.com/cylc/cylc: config: make --sparse the defalt flake8: simplify remove global.cylc example files tidy up old scripts Fix param expansion in inherited environment. (cylc#4248) Fix play help text. Trivial warning message change. Remove debug line. Apply suggestions from code review actions: check contributor list in the release process actions: check shortlog entry points: centralise entry point iteration
These changes close #4242
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.