-
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 new graph parser bug (PR to 6.11.1) #2002
Conversation
Ensure that it overrides a `True` setting in `global.rc`.
Use common test infrastructure to set up temporary suite location, etc.
For conditional expressions containing same task name with and without an offset, e.g. "foo | foo[-P1D] => bar".
@matthewrmshin - please review and/or assign |
@@ -317,10 +317,13 @@ def _proc_dep_pair(self, left, right): | |||
n_info = [] | |||
expr = left | |||
for name, offset, trig in info: | |||
offset = offset or '' |
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.
No offset already results in an empty string here, not None.
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.
Looks OK to me. Test battery OK in my environment.
@arjclark please do a quick sanity check. |
@hjoliver - could you note what those two commits are that you're bundling in with this in the opening post for ease of tracking what's gone into 6.11.x at a later date. |
Looks OK to me. No problems from the test-battery in my environment. |
First PR targeting the new 6.11.x branch.
Conditional expression processing is failing if the same task name appears in an expression with and without a cycle point offset, e.g.:
(NIWA has an operational suite with this sort of construct in it).
This shows the problem is that the explicit
:succeed
trigger is getting substituted in before the offsetfoo:succeed[-P1D]
instead of after itfoo[-P1D]:succeed
. (only if the same name occurs with and without an offset in the same expression).This PR branch includes two commits merged to master since 6.11.0 as well: #1999 and #2000. Both affect only the test battery.
I'll make a copy of the branch for a PR to master as well.