feat(graph): add env and stages render granularities - #356
Merged
Merged
Conversation
Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
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.
Adds the env and stages projections to cascade graph, completing the three --granularity values from #303. env renders the promotion ladder as a stateDiagram-v2 with hotfix divergence and rejoin states, built from the environment and state model. stages renders the coarse trunk, build, deploy, promote, release lifecycle as a flowchart that collapses callbacks. jobs is unchanged.
The emitter selects the diagram family from a new view-model Kind, so the builders stay render-agnostic and the emitter does no granularity special-casing. The Kind zero value renders as a flowchart, so the original jobs projection stays byte-identical. Golden and determinism tests cover both new projections; the graph command and CLI tests now assert env and stages render instead of rejecting. A compiled-binary cmd-level test runs cascade graph --granularity env against a diverged-state manifest and asserts the state machine output, matching the test precedent set by the graph command in #354.
No generator output, schema, or cascade verify behavior change.
Closes #303.