Skip to content

fix: record every commit of a multi-commit hotfix set per environment - #260

Merged
joshua-temple merged 1 commit into
mainfrom
fix/hotfix-multi-commit-patch-accumulation
Jun 23, 2026
Merged

joshua-temple merged 1 commit into
mainfrom
fix/hotfix-multi-commit-patch-accumulation

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Problem

A hotfix that elevates a set of trunk commits recorded only the first commit in state..patches for each chain environment; the remaining commits were silently dropped. The live fleet surfaced this on a multi-commit hotfix.

Fix

The apply job now stamps the full comma-joined commit set in the Cascade-Hotfix-Source trailer, the context job recovers the whole set, and Finalize takes fixSHAs []string and appends all of them. The conflict-resolution path carries the full set through the same trailer. The single-commit path is unchanged (one value still produces one patch). No schema or manifest change.

Verification

New unit test TestFinalize_RecordsAllCommitsOfMultiCommitSet, a generator assertion on the full trailer, and a new e2e scenario (hotfix-multi-commit-clean) that cherry-picks two commits in one cycle and asserts both land in patches. Full suite, lint, and e2e build/vet green. The in-repo e2e is the regression guard (this is state-recording, reproducible under act+gitea); the 4env fleet step is the live counterpart.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple
joshua-temple enabled auto-merge (squash) June 23, 2026 04:46
@joshua-temple
joshua-temple merged commit 379b032 into main Jun 23, 2026
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant