Repository navigation
fix(server): do not report success over a reaped code workflow (RIG-7551) - #183
Merged
rigel-nemo[bot] merged 1 commit intoNov 21, 2026
Conversation
…551) Co-authored-by: Matt Wilkinson <matt@rigel.build>
|
Checks read:
|
Author
Review round 1 at a7f983fFound 0 high, 2 medium, 2 low. The full review is at
Also: |
rigel-mintaka
deleted the
ci-pipelines/rig-7551-do-not-report-success-over-a-reaped-code
branch
November 21, 2026 12:34
This was referenced Nov 21, 2026
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.
What does this do
When the reaper ends a code workflow under a stored
successpipeline, CI (pr) reports failure. A reaped code workflow is skipped with at least one canceled step. The guard is incodeStatusinserver/forge/github/status_aggregate.go. It only overrides a storedsuccess, so a user cancel keeps its verdict.Why do we need it
Woodpecker#182 covers only the all-code-skipped case. This PR covers the mixed shape from pipeline #10874 (RIG-7551): successful siblings beside a reaped code workflow still rolled up green.
Skip producers
skipDeadWorkflow(the reaper) skips a workflow and cancels its pending steps. The guard fires on this. fix(server): keep reaper skips killed unless a dependency was lost (RIG-7551) #184 narrows it: a verdict-forbidden skip now writes killed.scheduler.PollmarkSkippedskips a dependent and writes killed steps. The guard does not fire.Cancelstores a non-success pipeline status. The guard does not fire.WorkflowSupersedePendingcan leave pending-skipped steps under asuccesspipeline. This is a known gap; see fix(server): keep reaper skips killed unless a dependency was lost (RIG-7551) #184.Tests
TestStatusAggregateReapedCodeWorkflowUnderSuccessIsNotGreen(red before the guard): reaped beside success, failure or killed expects failure; scheduler-skipped and build-time filtered stay green.TestStatusAggregateUserCancelKeepsStoredStatus: storedkilledstays failure; storedcanceledkeeps the rollup.CGO_ENABLED=0 go test ./server/forge/github/ -count=1passes.go vetandgofmtare clean.Release and pin
This PR does not cut
rigel.28and does not bump the orion pin. Both ride the next fork release.Spec-impact: none
Checks skipped:
p0:RIG-9887Refs RIG-7551
Co-authored-by: Matt Wilkinson matt@rigel.build