Repository navigation
fix(server): keep reaper skips killed unless a dependency was lost (RIG-7551) - #184
Merged
rigel-nemo[bot] merged 1 commit intoNov 21, 2026
Conversation
…IG-7551) Co-authored-by: Matt Wilkinson <matt@rigel.build>
|
Checks read:
|
Author
Review round 2 at bcd39be (posted after merge)The code is correct. Every branch of the skip rule is tested, and the tests fail red on the base reaper. There are 0 high, 1 medium and 1 low finding, and both are in the PR body. I edited the #184 and #183 bodies to fix them.
Accepted: a default dependent of a scheduler-skipped workflow keeps Round-1 M2 and L4 are fixed. The skip reason is now truthful. |
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
Fix-forward for #183 review round 1 (#183 (comment)). The reaper now picks the step state for a dependency skip from the skip reason:
runs_onrejects that outcome. The reaper writes killed steps, as the scheduler'smarkSkippeddoes.runs_onwhose dependency succeeded and then timed out endserror. Only its dependents get canceled steps.The
codeStatusguard still reports failure for a stored success with a canceled step. A user cancel of running work stores killed. A cancel of only-pending workflows stores canceled, which is rewritten before the rollup. Neither changes the verdict.Known gap
WorkflowSupersedePendingis unchanged. It can still leave pending-skipped steps under asuccesspipeline. This is safe today because only pull events get the workflow tree, and orion cancels only main pipelines.Why do we need it
#183 merged before this round landed. Without this PR,
rigel-releasecan report a green PR over a reaper-skipped code workflow whose dependency was legitimately forbidden, which turns a healthy PR red. This fixes that and keeps the RIG-7551 loss signal.Tests
TestReapOrphanedWorkflows: verdict-forbidden writes killed; lost dependency, killed dependency, and the permitted timeout write canceled.TestReapPendingTimeoutNextPass: the same rule across passes.TestStatusAggregateReapedCodeWorkflowUnderSuccessIsNotGreen: killed and stepless shapes stay green.CGO_ENABLED=0 go testpasses forforge/github,pipeline, andpipeline/metadataon the merged base. Datastore, queue, web, api, and session cannot run here (no C compiler). The base fails the same packages.Release and pin
No fork release cut and no orion pin bump. #183 is not in any pinned release, so this rides the next fork release.
Spec-impact: none
Checks skipped:
fork has no local hook runnerRefs RIG-7551
Co-authored-by: Matt Wilkinson matt@rigel.build