Skip to content

fix(server): treat a skipped dependency as a verdict in reaper skips (RIG-11771) - #187

Open
rigel-mintaka wants to merge 1 commit into
rigel-releasefrom
ci-pipelines/rig-11771-treat-a-skipped-dependency-as-a-verdict
Open

rigel-mintaka wants to merge 1 commit into
rigel-releasefrom
ci-pipelines/rig-11771-treat-a-skipped-dependency-as-a-verdict

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Nov 21, 2026 •

Copy link
Copy Markdown

Summary

The reaper's skipDeadWorkflow picks killed or canceled steps from verdictForbids. A skipped dependency counted as a lost dependency, so the reaper wrote canceled steps. The scheduler's markSkipped path writes killed steps for the same case. Under a stored success, a canceled code workflow makes CI (pr) red, so the two paths could disagree.

This treats skipped as a verdict in verdictForbids, so the reaper writes killed steps like the scheduler.

Live case

runs_on = [success] (the default for when: success) with a skipped dependency. The example in RIG-11771 (runs_on = [failure]) does not reach skipDeadWorkflow, because Task.ShouldRun returns true for it.

Tests

  • New subtest skipped dependency writes killed steps like the scheduler in TestReapPendingTimeoutNextPass.
  • Table case dependent chain of a timed out workflow is skipped in one pass: step 431 expectation changes from canceled to killed. Its dependency 42 is skipped, which is now a verdict.

Red before the fix: --- FAIL: TestReapPendingTimeoutNextPass/skipped_dependency_writes_killed_steps_like_the_scheduler
Green after the fix: --- PASS: TestReapPendingTimeoutNextPass/skipped_dependency_writes_killed_steps_like_the_scheduler

On mattpc-wsl: go test ./server/pipeline/ ./server/forge/github/ -count=1 passes.

Refs: RIG-11771, RIG-7551.

Refs RIG-11771

Co-authored-by: Matt Wilkinson matt@rigel.build

…(RIG-11771)

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

RIG-11771

RIG-7551

@rigel-mintaka

Copy link
Copy Markdown
Author

All-clear at 5c1cb28
Base: rigel-release

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant