Repository navigation
fix(server): do not report success when every code workflow was skipped (RIG-7551) - #182
Merged
rigel-nemo[bot] merged 2 commits intoNov 21, 2026
Conversation
…ed (RIG-7551) Co-authored-by: Matt Wilkinson <matt@rigel.build>
Author
Review round 1 at 5f133080 high, 1 medium, 2 low. Fixes are being made on this PR.
Already checked: ci-affected-none is push-only, so it doesn't reach this. Cancel, dependency-failure and supersede paths don't reach the guard. The flipped table case was a test pinning a bug. When the guard was disabled, both new tests failed. |
Author
|
All-clear at f9b291c Round 2 is the interdiff 5f13308..f9b291c:
|
|
Checks read:
|
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 marks every code workflow
skippedand the stored pipeline status issuccess, CI (pr) now reports failure instead of success. This is Woodpecker pipeline #10874 (RIG-7551): the reaper's dead-workflow path (skipDeadWorkflow) skips each code workflow,PipelineStatusfoldsskippedbelowsuccess, andcodeStatusthen passed the storedsuccessthrough.The fix is in
codeStatusinserver/forge/github/status_aggregate.go. When the code set is non-empty, every workflow isskipped, and the stored status issuccess, it returns failure. The globalstatusPriorityOrderis unchanged.Why do we need it
RIG-7551 closed the pending and running cases (#158, #170, #173). This is the remaining gap: no code workflow ran, yet the required
CI (pr)check could go green.Tests
TestStatusAggregateAllCodeSkippedIsNotGreen(new, red before the fix): every code workflow skipped, a meta gate passes, storedsuccess, expects failure.TestStatusAggregateSomeSkippedCodeWorkflowsStaysGreen(new guard): one code workflow passes, one is skipped, storedsuccess, expects success.TestStatusAggregateTerminalStatusIsNotMaskedBySkippedCodeWorkflows: the casesuccessful pipeline with every code workflow skippedflips from success to failure. The old expectation asserted the bug.Spec-impact: none
Refs RIG-7551
Co-authored-by: Matt Wilkinson matt@rigel.build