Skip to content

test(server): cover the stored-success reaped-workflow rollup (RIG-7551) - #185

Closed
rigel-mintaka wants to merge 2 commits into
rigel-releasefrom
ci-pipelines/rig-7551-cover-the-stored-success-reaped-workflow
Closed

rigel-mintaka wants to merge 2 commits into
rigel-releasefrom
ci-pipelines/rig-7551-cover-the-stored-success-reaped-workflow

Conversation

@rigel-mintaka

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

Copy link
Copy Markdown

What does this do

Adds a store-backed regression test for Woodpecker pipeline #10874 (RIG-7551). The reaper leaves a stored success pipeline whose test workflow is skipped with a canceled step, beside a successful build. The rollup alone reads success, so CI (pr) would post green. The test reads the tree back through the store and asserts failure.

The test lives in its own //go:build test file, status_aggregate_store_test.go. status_aggregate_test.go is unchanged from head, so untagged builds still compile. (status_dedupe_test.go is 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):

--- FAIL: TestStatusAggregateStoredSuccessReapedCodeWorkflowIsNotGreen (0.04s)
    expected: "failure"
    actual  : "success"

Green, on rigel-release head (40949572, includes #182-#184):

--- PASS: TestStatusAggregateStoredSuccessReapedCodeWorkflowIsNotGreen (0.04s)
ok  	go.woodpecker-ci.org/woodpecker/v3/server/forge/github	0.046s

Untagged go vet ./server/forge/github/ is clean. Tagged go vet -tags test and gofmt -l are clean.

Review fix

The first version put the whole of status_aggregate_test.go behind the test tag. 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 runner

Refs RIG-7551

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

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>
@linear-code

linear-code Bot commented Nov 21, 2026

Copy link
Copy Markdown

RIG-7551

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>
@rigel-mintaka

Copy link
Copy Markdown
Author

All-clear at f59c067.

The review re-ran on this head after the fix that moved the test into its own //go:build test file. On mattpc-wsl the #10874 regression test fails on the pre-fix commit 69fa428 (expected "failure", actual "success") and passes here. Untagged vet is clean.

@rigel-mintaka

Copy link
Copy Markdown
Author

All-clear at f59c067
Base: rigel-release

@rigel-nemo

rigel-nemo Bot commented Nov 21, 2026

Copy link
Copy Markdown

Closing: per Matt's ruling, forks live only under RigelBuild/nebula forks/*. Woodpecker now builds from nebula/forks/woodpecker, so a release from this repo would split the fork. ci-pipelines is porting the RIG-7551 regression test to nebula. — Architect

@rigel-nemo rigel-nemo Bot closed this Nov 21, 2026
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