Skip to content

test: fix flaky Windows CI timeouts in browser tests#1806

Merged
vdusek merged 2 commits intomasterfrom
test/fix-flaky-adaptive-playwright-timeout-test
Mar 20, 2026
Merged

test: fix flaky Windows CI timeouts in browser tests#1806
vdusek merged 2 commits intomasterfrom
test/fix-flaky-adaptive-playwright-timeout-test

Conversation

@vdusek
Copy link
Collaborator

@vdusek vdusek commented Mar 20, 2026

Summary

  • Replace asyncio.sleep with asyncio.Event().wait() in adaptive playwright timeout test and increase timeout from 1s to 10s.
  • Increase Firefox operation_timeout from 15s to 60s in browser pool test.

Increase request_handler_timeout from 1s to 10s so the static pipeline
has enough time to reach the handler on slow Windows CI before the
timeout fires. Replace calibrated asyncio.sleep with asyncio.Event().wait()
to block indefinitely instead of relying on a sleep > timeout duration.
Name the mocks for easier debugging if the test fails again.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vdusek vdusek added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels Mar 20, 2026
@vdusek vdusek self-assigned this Mar 20, 2026
@github-actions github-actions bot added this to the 136th sprint - Tooling team milestone Mar 20, 2026
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Mar 20, 2026
@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.22%. Comparing base (6bef126) to head (44b6eee).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1806   +/-   ##
=======================================
  Coverage   92.22%   92.22%           
=======================================
  Files         157      157           
  Lines       10848    10848           
=======================================
  Hits        10005    10005           
  Misses        843      843           
Flag Coverage Δ
unit 92.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The default 15s operation_timeout is not enough for Firefox's
launch_persistent_context on busy Windows CI runners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vdusek vdusek changed the title test: fix flaky adaptive playwright timeout sub-crawler test test: Fix flaky Windows CI timeouts in browser tests Mar 20, 2026
@vdusek vdusek changed the title test: Fix flaky Windows CI timeouts in browser tests test: fix flaky Windows CI timeouts in browser tests Mar 20, 2026
@vdusek vdusek merged commit 9becf12 into master Mar 20, 2026
32 checks passed
@vdusek vdusek deleted the test/fix-flaky-adaptive-playwright-timeout-test branch March 20, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants