Repository navigation
test(server): cover the stored-success reaped-workflow rollup (RIG-7551) - #185
Closed
rigel-mintaka wants to merge 2 commits into
Closed
rigel-mintaka wants to merge 2 commits into
rigel-mintaka wants to merge 2 commits into
Conversation
Store-backed regression for Woodpecker pipeline #10874. A stored success pipeline whose test workflow was reaped (skipped with a canceled step) must post CI (pr) failure. It is red on 69fa428 and green on rigel-release. Two guards pin the boundaries: a skipped dependent with a pending step stays green, and a stored success with a pending code workflow posts failure. Refs RIG-7551 Co-authored-by: Matt Wilkinson <matt@rigel.build>
status_aggregate_test.go is tagged test, but status_dedupe_test.go is not and uses its statusAggregateFixture. Untagged builds of the package failed with undefined: statusAggregateFixture. Move the store-backed test to its own tagged file and leave the shared file untagged. Refs RIG-7551 Co-authored-by: Matt Wilkinson <matt@rigel.build>
Author
Author
|
All-clear at f59c067 |
|
Closing: per Matt's ruling, forks live only under RigelBuild/nebula |
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 store-backed regression test for Woodpecker pipeline #10874 (RIG-7551). The reaper leaves a stored
successpipeline whosetestworkflow isskippedwith acanceledstep, beside a successfulbuild. The rollup alone readssuccess, so CI (pr) would post green. The test reads the tree back through the store and assertsfailure.The test lives in its own
//go:build testfile,status_aggregate_store_test.go.status_aggregate_test.gois unchanged from head, so untagged builds still compile. (status_dedupe_test.gois untagged and uses the fixture from the shared file.)No production code changes.
Why do we need it
#182, #183 and #184 fix this shape, but no test reads the tree from the store. Without one, a regression in the rollup would only show on a live pipeline.
Tests
Run on mattpc-wsl with
CGO_ENABLED=1 go test -tags test ./server/forge/github/ -run TestStatusAggregateStoredSuccessReapedCodeWorkflowIsNotGreen -count=1 -v.Red, on the pre-fix commit
69fa428db(rigel.27, before #182-#184):Green, on
rigel-releasehead (40949572, includes #182-#184):Untagged
go vet ./server/forge/github/is clean. Taggedgo vet -tags testandgofmt -lare clean.Review fix
The first version put the whole of
status_aggregate_test.gobehind thetesttag. That broke untagged builds (undefined: statusAggregateFixture). The fix-forward commit moves the new test out and drops two extra guards that duplicated existing coverage or pinned a known gap.Release and pin
No fork release is cut here. The rigel.28 release follows as a separate PR.
Spec-impact: none
Checks skipped:
fork has no local hook runnerRefs RIG-7551
Co-authored-by: Matt Wilkinson matt@rigel.build