cylc-flow
cylc-flow copied to clipboard
Error if graph has a dependency offset exclusively on the RHS
Closes #5844
Raise an error if a graph has a dependency offset only on the RHS of a graph pair.
Check List
- [x] I have read
CONTRIBUTING.mdand added my name as a Code Contributor. - [x] Contains logically grouped changes (else tidy your branch by rebase).
- [x] Does not contain off-topic changes (use other PRs for other changes).
- [x] Applied any dependency changes to both
setup.cfg(andconda-environment.ymlif present). - [x] Tests are included (or explain why tests are not needed).
- [x]
CHANGES.mdentry included if this is a change that can affect users - [x] Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
- [x] If this is a bug fix, PR should be raised against the relevant
?.?.xbranch.
@wxtim what does "…aph pair." mean?
I think he used the commit message as the PR title and it got truncated, continuing on the body. I updated the title to something a little more readable
@wxtim, you have an outstanding review comment.
I think that I was waiting for Ronnie and you finish the discussion. Will fix now.
@hjoliver could you check you're happy with this approach.
This is back-filling a check which was removed in: https://github.com/cylc/cylc-flow/pull/4343/files#diff-be87b3fcb20fc3228166ad53af61efb79f0d0c84ee01fcd0c9e3092c788e0b93L374-L377 (see the issue)
I think the logic has become more complex in order to permit examples like a => b[-P1] => c which presumably failed validation at Cylc 7.
@MetRonnie - I've used your words. Please merge at your leisure.
Tests need updating