Skip to content

fix(test): raise wait_until timeout in tracing page tests - #107

Merged
thiagoesteves merged 1 commit into
mainfrom
fix/flaky-tracing-wait-until
Nov 18, 2026
Merged

thiagoesteves merged 1 commit into
mainfrom
fix/flaky-tracing-wait-until

Conversation

@thiagoesteves

Copy link
Copy Markdown
Collaborator

Both CI jobs on #103 (and two other unrelated dependabot PRs today) failed on the same test, Observer.Web.Tracing.PageLiveTest, not on anything related to those PRs' dependency bumps.

Root cause

The test exercises the real tracing pipeline (dbg -> Tracer.Server -> PubSub -> LiveView), which is asynchronous, and polls for the result with a 2 second deadline (wait_until/2). Under CI-runner contention (several dependabot PRs ran concurrently today), that window was occasionally too tight, producing an intermittent timeout unrelated to any real regression.

Fix

Raise the default wait_until/2 timeout from 2s to 5s in test/observer_web/web/live/tracing/page_test.exs.

Test plan

  • mix test test/observer_web/web/live/tracing/page_test.exs - 12 tests, 0 failures (3 repeated runs)
  • mix test - full suite, 486/486 passing
  • mix format --check-formatted

🤖 Generated with Claude Code

…I flakiness

The real tracing pipeline (dbg to Tracer.Server to PubSub to LiveView) is async, and the 2s polling deadline is occasionally too tight under loaded CI runners, causing intermittent timeouts unrelated to any actual regression. Several unrelated dependabot PRs failed on this same test today when their CI jobs ran concurrently.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@thiagoesteves
thiagoesteves merged commit 76df054 into main Nov 18, 2026
3 checks passed
@thiagoesteves
thiagoesteves deleted the fix/flaky-tracing-wait-until branch November 18, 2026 11: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