graph: add --flatten-icp option - #7417
Open
oliver-sanders wants to merge 2 commits into
Open
Conversation
oliver-sanders
force-pushed
the
graph-flatten-icp-dependence
branch
from
August 11, 2026 12:42
6c3d601 to
739ce7c
Compare
oliver-sanders
marked this pull request as ready for review
August 11, 2026 14:35
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Member
Author
|
@hjoliver, I have closed the side PR for now. Pending the outcome of other conversations, we can open this against cylc-flow@master as required, but this option is orthogonal to that one and will still standalone and provide benefit without it - so no need to couple the two and delay this one. I have cherry-picked your fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
cylc graph --flatten-icpoption for "snipping" edges from R1 cycles for graph simplification.This is the trivial idea mentioned in previous discussions around isolated startup graphs.
This preserves the ICP dependence (i.e, there's no information missing from the graph), it just duplicates the R1 dependent tasks into their respective cycles (but outside of the dotted cycle boxes which appear with the
-coption) to flatten out these inter-cycles.Without this option (present behaviour / default):
With this option:
The
R1label is completely optional, have done it this way for clarity, but could replace with the actual cycle point, or template, whatever. Just let me know what the preference is.Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).?.?.xbranch.