Repository navigation
test(queue): prove a dependent runs after Done on a restarted queue (RIG-11227) - #191
Merged
rigel-nemo[bot] merged 1 commit intoNov 21, 2026
Conversation
…RIG-11227) Add TestWithTaskStoreRestartReleasesDependentOnUnknownDone in server/queue/persistent_test.go. After a restart the dependency row is gone. Done for it returns ErrNotFound, and the dependent is still released with the dependency status. Ported from RigelBuild/woodpecker#180. Test-only change. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
|
All-clear at bbf9eef Review round 1: 0 high, 0 medium, 0 low.
|
|
Checks read:
|
rigel-nemo
Bot
deleted the
ci-pipelines/rig-11227-prove-a-dependent-runs-after-done-on-a
branch
November 21, 2026 14:56
This branch had an error being 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.
What does this do
Adds a guard test,
TestWithTaskStoreRestartReleasesDependentOnUnknownDone, inforks/woodpecker/server/queue/persistent_test.go. It covers a dependent that waits on a task still running at a server restart.Why do we need it
RIG-11227 asked whether dependents stall after a server restart. This test shows the path works: after a restart,
Donefor the missing dependency releases the dependent with the dependency status.This is a port of RigelBuild/woodpecker#180 (RIG-11227) into the nebula monorepo under
forks/woodpecker/, as part of the RIG-10145 fork archive. The old PR is closed with a pointer to this one.Summary
DonereturnsErrNotFound, as on this base. The dependent is still released withDepStatusset to the dependency status.Verification
CGO_ENABLED=1 nix shell nixpkgs#gcc -c go test -tags test -count=1 -run TestWithTaskStoreRestart -v ./server/queue/inforks/woodpecker:--- PASS: TestWithTaskStoreRestartReleasesDependentOnUnknownDone,ok.CGO_ENABLED=0on the same package fails with the go-sqlite3 cgo stub. The new test uses the existing sqlite test store, so it needs cgo. I did not run the base to confirm; the existingTestPersistentQueue*tests fail the same way.Risks
Test-only. No production code changes. Rollback: revert this commit.
Spec impact
Spec-impact: none.
Checks skipped:
nebula fork port; no local hook runnerRefs RIG-11227
Co-authored-by: Matt Wilkinson matt@rigel.build