-
Notifications
You must be signed in to change notification settings - Fork 96
Ensure that xtrigger OR fails validation #6772
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
base: 8.5.x
Are you sure you want to change the base?
Conversation
93f5936
to
a3561d3
Compare
4013771
to
6845de6
Compare
6845de6
to
c9f1d34
Compare
This fails here and on master, but I wonder if it needs to?
It's been a long time since I looked at - and probably wrote - the associated code, so I'm not sure of the reason for the restriction anymore, and whether it should apply to this sort of expression (and I'm out of time today). But possibly it should not fail because it's equivalent to this:
|
Co-authored-by: Ronnie Dutta <[email protected]>
If this PR isn't changing behaviour, suggest moving this to another issue. Opened #6949. |
As Hillary pointed out, there is already logic intended to catch xtriggers used in conditional expressions: cylc-flow/cylc/flow/scripts/validate.py Lines 196 to 210 in 700eb02
However, this check isn't catching situations where there are no tasks on the LHS, only xtriggers. Sidenote: Strangely, this code is in If the new test covers all of the logic of the old one, suggest ripping the old check out. There are probably tests for the old check which could do with being combined / erased. |
I ran a bunch of our workflows through However, beyond |
Unfortunately, due to enforced home dir privacy here, I can't see our workflows. |
Closes #6771
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.