Skip to content

test(serve): stabilise server_pages_push_url flake#318

Merged
avrabe merged 1 commit into
mainfrom
fix/serve-integration-push-url-flake
May 24, 2026
Merged

test(serve): stabilise server_pages_push_url flake#318
avrabe merged 1 commit into
mainfrom
fix/serve-integration-push-url-flake

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 24, 2026

Summary

`server_pages_push_url` (`rivet-cli/tests/serve_integration.rs:238`)
was flapping red on PRs that did not touch serve code (observed on
artifact-only #316 while passing on identical-surface #317). The test
uses the default-5s `fetch`, but iterates `/verification` and
`/coverage` — pages that walk the dogfood corpus and sit on the
timeout edge under CI runner load. Same flake class
`fetch_with_timeout`'s own doc-comment already calls out for `/graph`.

Fix: small `fetch_page_with_retry` helper — 15s read timeout + one
retry on `status == 0` (transient connection drop after the health
probe has already passed). No assertion weakened.

Verified locally: `cargo test -p rivet-cli --test serve_integration
server_pages_push_url` passes in 2.42s.

Test plan

  • Local run passes.
  • CI `Test` job stays green across the next handful of PRs
    (the real evidence is non-flakiness over time).

🤖 Generated with Claude Code

server_pages_push_url was using the default-5s `fetch` against
/verification and /coverage — pages that iterate the dogfood corpus
and sit on the timeout edge under CI runner load. Same flake class
`fetch_with_timeout`'s own doc-comment already calls out for /graph.
Observed flapping red on artifact-only PRs (#316) while passing on
identical-surface #317 — runner-load dependent, not code.

Replace with a small `fetch_page_with_retry` helper: 15s read
timeout + one retry on `status == 0` (transient connection drop
after the health probe has already passed). No assertion weakened;
just absorbs the CI flake class.

Verified locally: test passes in 2.42s.
@github-actions
Copy link
Copy Markdown

📐 Rivet artifact delta

No artifact changes in this PR. Code-only changes (renderer, CLI wiring, tests) don't touch the artifact graph.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit a9aa3c3 into main May 24, 2026
20 of 40 checks passed
@avrabe avrabe deleted the fix/serve-integration-push-url-flake branch May 24, 2026 05:55
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