Skip to content

test: Mark test_resource_management flaky on Windows#1919

Merged
vdusek merged 1 commit into
masterfrom
test/flaky-test-resource-management-buffer-space
May 26, 2026
Merged

test: Mark test_resource_management flaky on Windows#1919
vdusek merged 1 commit into
masterfrom
test/flaky-test-resource-management-buffer-space

Conversation

@vdusek
Copy link
Copy Markdown
Collaborator

@vdusek vdusek commented May 26, 2026

Description

tests/unit/browsers/test_browser_pool.py::test_resource_management failed on master CI (Windows, Python 3.10) with playwright._impl._errors.Error: Page.goto: net::ERR_NO_BUFFER_SPACE — see run 26453810483.

The previous fix (#1916) bumped the goto timeout to 60s, but the failure is not a slow response — it's a hard kernel-level socket buffer exhaustion on Windows when many xdist workers simultaneously launch Chromium and open sockets. A larger timeout cannot help.

Mark the test with @pytest.mark.flaky(reruns=3) to match the existing project precedent for this exact failure mode (see test_stagehand_browser_controller.py and test_adaptive_playwright_crawler.py).

The prior timeout bump did not address the real failure mode: on Windows
under xdist load, Chromium hits `net::ERR_NO_BUFFER_SPACE` when opening
the socket — not a slow response. Match the existing project precedent
for this exact failure (`@pytest.mark.flaky(reruns=3)`).
@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 May 26, 2026
@vdusek vdusek self-assigned this May 26, 2026
@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 May 26, 2026
@vdusek vdusek requested a review from Mantisus May 26, 2026 14:30
@github-actions github-actions Bot added this to the 141st sprint - Tooling team milestone May 26, 2026
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label May 26, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.92%. Comparing base (12ef1cb) to head (fda3b2c).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1919   +/-   ##
=======================================
  Coverage   92.91%   92.92%           
=======================================
  Files         167      167           
  Lines       11714    11714           
=======================================
+ Hits        10884    10885    +1     
+ Misses        830      829    -1     
Flag Coverage Δ
unit 92.92% <ø> (+<0.01%) ⬆️

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.

@vdusek vdusek merged commit 4f80044 into master May 26, 2026
33 checks passed
@vdusek vdusek deleted the test/flaky-test-resource-management-buffer-space branch May 26, 2026 20:17
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.

3 participants