Fix #180: deterministic merge-gate tests #181
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!181
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-180"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Test-only fix for #180. TestMergeConsultsReviewGate/deny pinned the transient running snapshot (StartMerge snapshots after spawning the worker; a descheduled test goroutine let the fast-denying fake gate run to terminal error first). fakeReviewGate/fakeChecksGate now block on test-owned entered/release channels: StartMerge -> deterministically running -> awaitGate -> release -> terminal assertions unchanged (error, narration, gate-once, no publish, not merged). Same treatment for the sister patterns: TestMergeConsultsChecksGate/deny and TestMergeStrategies (blocking allow review gate + gate-once pin). No production change. Verified: targeted -race -count=20 green, full internal/pulls -race green, coverage 97.7% (>=95%), gofmt/vet clean. Full ./internal/... -race green except pre-existing environmental e2e failure (fresh worktree lacks web/dist; unrelated).