-
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 output consistency check when there are offsets. #6526
base: master
Are you sure you want to change the base?
Conversation
0cb877a
to
811699f
Compare
# Don't check the left hand side if this has a non-terminal RHS: | ||
param((('a &', 'b[-P42M]'), {}), None), | ||
# Check the left hand side if this has a non-terminal RHS: | ||
param((('a &', 'b[-P42M]'), {}), 'Null task name in graph'), |
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.
a & => b[-P25] => b
On master this validates OK and the test is confirming that? 🤯
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.
Fixed against master with this change hjoliver#63: I've failed to come up with other bad scenarios, but this is bad enough.
811699f
to
691f6f5
Compare
Co-authored-by: Tim Pillinger <[email protected]>
691f6f5
to
b0ec142
Compare
┆ ( | ||
✓ ┆ started | ||
⨯ ┆ and succeeded | ||
┆ ) |
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.
This is now consistent with the completion condition if no offset is present.
f3592ef
to
697f923
Compare
# The word "optional" is common to both. Not ideal! | ||
'optional', | ||
id='succeed-or-failed-implies-success-optional' | ||
), |
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.
Took your test cases with attribution (via commit message) @wxtim
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 think we need to double check the test I've queried, but otherwise this seems to fix the bug in question.
I have a related issue where some code I did early in the year hasn't caused a bug, but I'm unclear whether it's correct. 😢
@@ -102,8 +102,8 @@ async def test_over_bracketed(flow, scheduler, reftest): | |||
'final cycle point': '2013-12-25T12:00Z', | |||
'graph': { | |||
'T12': ''' | |||
(a[-P1D]:fail | b[-P1D]:fail | c[-P1D]:fail) => d | |||
a & b & c # Implied by implicit cycling now... | |||
(a[-P1D]:fail? | b[-P1D]:fail? | c[-P1D]:fail?) => d |
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.
This is absolutely reasobable in the case of recurring cycling, but is it reasonable in general?
i.e. I think that this should fail validation
[graph]
R1/1 = a
R1/2 = a[-P1]:fail
but I'm not sure that this should, because a at -P1 is not the same task as a.
R1 = a[-P1]:fail => a
I think I may be happy to gloss over this, because the latter recurrance isn't very meaningful.
suicide = (suicide_char == self.__class__.SUICIDE) | ||
optional = (opt_char == self.__class__.OPTIONAL) | ||
if output: | ||
output = output.strip(self.__class__.QUALIFIER) | ||
|
||
if name in self.family_map: | ||
fam = True | ||
mems = self.family_map[name] | ||
rhs_mems = self.family_map[name] |
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.
rhs_members
for easier reading please?
), | ||
param( | ||
"foo[-P1]:succeeded? | foo[-P1]:failed? => foo", | ||
# Order of processing can result in different error messages |
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 fixed this in my version of the pr hjoliver#62
Close #6523
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.