Skip to content

test: Increase sleep tolerance in request_max_duration test for Windows CI#1827

Merged
vdusek merged 1 commit intomasterfrom
fix/flaky-request-max-duration-test
Mar 31, 2026
Merged

test: Increase sleep tolerance in request_max_duration test for Windows CI#1827
vdusek merged 1 commit intomasterfrom
fix/flaky-request-max-duration-test

Conversation

@vdusek
Copy link
Copy Markdown
Collaborator

@vdusek vdusek commented Mar 31, 2026

Summary

  • Increase asyncio.sleep from 50ms to 200ms and tolerance from 15ms to 50ms in test_request_max_duration_tracks_maximum to fix flaky failures on Windows CI where timer resolution is ~15ms.

Context

  • Failed runasyncio.sleep(0.05) only slept ~34ms on Windows, falling below the 0.035s threshold.

🤖 Generated with Claude Code

…s CI

Windows has poor asyncio timer resolution (~15ms granularity), causing
asyncio.sleep(0.05) to undershoot significantly (observed 34ms). Increase
sleep to 200ms with 50ms tolerance to prevent flaky failures.

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 31, 2026
@vdusek vdusek self-assigned this Mar 31, 2026
@vdusek vdusek requested a review from Pijukatel March 31, 2026 10:07
@github-actions github-actions bot added this to the 137th sprint - Tooling team milestone Mar 31, 2026
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Mar 31, 2026
@vdusek vdusek changed the title fix: increase sleep tolerance in request_max_duration test for Windows CI test: Increase sleep tolerance in request_max_duration test for Windows CI Mar 31, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.28%. Comparing base (a3b635e) to head (4802fac).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1827      +/-   ##
==========================================
+ Coverage   92.26%   92.28%   +0.02%     
==========================================
  Files         157      157              
  Lines       10886    10889       +3     
==========================================
+ Hits        10044    10049       +5     
+ Misses        842      840       -2     
Flag Coverage Δ
unit 92.28% <ø> (+0.02%) ⬆️

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 e2d7069 into master Mar 31, 2026
31 of 32 checks passed
@vdusek vdusek deleted the fix/flaky-request-max-duration-test branch March 31, 2026 11:43
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