Skip to content

fix(gate): bound control-plane tests against the query timeout, not the runner - #222

Merged
aksOps merged 1 commit into
mainfrom
fix/gate-control-test-bounds
Aug 24, 2026
Merged

fix(gate): bound control-plane tests against the query timeout, not the runner#222
aksOps merged 1 commit into
mainfrom
fix/gate-control-test-bounds

Conversation

@aksOps

@aksOps aksOps commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

TestSamplerShutdownBoundedWithStuckScrape failed at 3.55s against its own 3s assertion on a loaded CI runner, blocking PR #133. My defect, introduced with the client split in #218.

The bound was wrong in kind, not just in size: these two tests exist to prove the 600s query client's timeout does not govern readiness polling or sampler shutdown. Asserting proximity to the 500ms control timeout measures runner scheduling, not that property. Both bounds move to 60s — still an immediate, decisive failure if the long client leaks into the control path, with no sensitivity to contention.

go test -tags gate -race ./test/gate/... green locally.

…he runner

TestSamplerShutdownBoundedWithStuckScrape asserted shutdown finished
within 3s of a 500ms control timeout, and failed at 3.55s on a loaded
CI runner (PR #133). The property these tests exist to prove is that the
600s query-client timeout does not govern readiness polling or sampler
shutdown; a tight bound measures runner contention instead. Both bounds
move to 60s, which still fails decisively if the long client leaks in.
@sonarqubecloud

Copy link
Copy Markdown

@aksOps
aksOps merged commit 73eed37 into main Aug 24, 2026
17 checks passed
@aksOps
aksOps deleted the fix/gate-control-test-bounds branch August 24, 2026 02:40
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