Repository navigation
fix(server): treat a skipped dependency as a verdict in reaper skips (RIG-11771) - #187
Open
rigel-mintaka wants to merge 1 commit into
Open
rigel-mintaka wants to merge 1 commit into
rigel-mintaka wants to merge 1 commit into
Conversation
…(RIG-11771) Co-authored-by: Matt Wilkinson <matt@rigel.build>
Author
|
All-clear at 5c1cb28 |
This branch has not been deployed
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.
Summary
The reaper's
skipDeadWorkflowpicks killed or canceled steps fromverdictForbids. Askippeddependency counted as a lost dependency, so the reaper wrote canceled steps. The scheduler'smarkSkippedpath 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
skippedas a verdict inverdictForbids, so the reaper writes killed steps like the scheduler.Live case
runs_on = [success](the default forwhen: success) with a skipped dependency. The example in RIG-11771 (runs_on = [failure]) does not reachskipDeadWorkflow, becauseTask.ShouldRunreturns true for it.Tests
skipped dependency writes killed steps like the schedulerinTestReapPendingTimeoutNextPass.dependent chain of a timed out workflow is skipped in one pass: step 431 expectation changes from canceled to killed. Its dependency 42 isskipped, which is now a verdict.Red before the fix:
--- FAIL: TestReapPendingTimeoutNextPass/skipped_dependency_writes_killed_steps_like_the_schedulerGreen after the fix:
--- PASS: TestReapPendingTimeoutNextPass/skipped_dependency_writes_killed_steps_like_the_schedulerOn mattpc-wsl:
go test ./server/pipeline/ ./server/forge/github/ -count=1passes.Refs: RIG-11771, RIG-7551.
Refs RIG-11771
Co-authored-by: Matt Wilkinson matt@rigel.build