-
Notifications
You must be signed in to change notification settings - Fork 96
Don't infer optionality from RHS implicit outputs. #6999
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 infer optionality from RHS implicit outputs. #6999
Conversation
28d541e
to
80ca9c9
Compare
5086645
to
025515d
Compare
if name in self.family_map: | ||
raise GraphParseError( | ||
f"Family trigger required: {left} => {right}" | ||
) |
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.
Bug in master: the code here was adding :succeeded
to bare family names on the left side of trigger pairs: FAM --> FAM:succeeded
.
This results in failed validation later, but with a cryptic error message.
E.g. for a => FAM => c
on master:
$ cylc val .
GraphParseError: Illegal family trigger in FAM:succeeded
On this branch:
$ cylc val .
GraphParseError: Family trigger required: FAM => c
for outp in [TASK_OUTPUT_SUCCEEDED, TASK_OUTPUT_FAILED]: | ||
self._set_output_opt( | ||
name, outp, optional, suicide, fam_member) | ||
return |
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.
Bug in master, possibly inconsequential though.
025515d
to
f50182e
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.
LGTM.
Nice tests.
Ensured that it's still possible to mark an output as optional on the RHS when required.
Ran through the examples in https://cylc.github.io/cylc-doc/stable/html/user-guide/writing-workflows/scheduling.html#graph-branching and checked that the auto-generated completion expressions match before and after.
One efficiency suggestion that I'll punt to a followup PR.
Close #6744
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.