feat: elevate a hotfix commit set across the env chain in the generated workflow#248
Merged
Merged
Conversation
…ed workflow 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.
Problem
The generated hotfix workflow applied one commit to one environment per dispatch. PR #246 taught the planner to handle a commit set across the bottom-up environment chain; this PR wires the generated
cascade-hotfix.yamlto drive it.Fix
commitdispatch input now accepts a comma-delimited set of refs or short/long SHAs.cascade hotfix plan --commits ... --target-env ...so the Go planner is the sole source of truth for env expansion and per-(commit, environment) idempotency; the apply job loops the planner'senv_sequencebottom-up and cherry-picks each environment's computed commit list. Shell iterates, it re-implements no planner logic.Verification
go build/test green (1672 passed); golangci-lint clean; e2e build/vet clean. Docker e2e: all 14 hotfix scenarios pass, including three new ones (multi-env clean, idempotent, conflict-halt) and the existing prod-gate and stacked scenarios (no regression). schema_version unchanged.
Closes #245.