Skip to content

Comments

test: Relax timing assertion in test_abort_works to fix flaky test#1754

Merged
vdusek merged 1 commit intomasterfrom
fix/flaky-test-abort-works
Feb 17, 2026
Merged

test: Relax timing assertion in test_abort_works to fix flaky test#1754
vdusek merged 1 commit intomasterfrom
fix/flaky-test-abort-works

Conversation

@vdusek
Copy link
Collaborator

@vdusek vdusek commented Feb 17, 2026

Summary

  • test_abort_works was flaky on CI due to an overly tight timing assertion (< 0.3s), which left only ~0.2s of headroom after the initial asyncio.sleep(0.1).
  • Relaxed the threshold to 5s, which still validates that abort() cancels tasks promptly (vs the 60s task sleep) while being resilient to CI scheduling jitter.

Failed CI runs

Test plan

  • Existing test_abort_works passes with relaxed threshold
  • CI passes on this PR

🤖 Generated with Claude Code

The test asserts that aborting the pool completes quickly rather than
waiting for the full 60s task sleep. The previous 0.3s threshold left
only ~0.2s after the initial `asyncio.sleep(0.1)`, which was too tight
on loaded CI runners. Increase to 5s which still validates the abort
behavior while being resilient to scheduling jitter.

Co-Authored-By: Claude Opus 4.6 <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 Feb 17, 2026
@vdusek vdusek self-assigned this Feb 17, 2026
@github-actions github-actions bot added this to the 134th sprint - Tooling team milestone Feb 17, 2026
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Feb 17, 2026
@vdusek vdusek changed the title fix: Relax timing assertion in test_abort_works to fix flaky test test: Relax timing assertion in test_abort_works to fix flaky test Feb 17, 2026
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.34%. Comparing base (202b500) to head (380909a).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1754      +/-   ##
==========================================
+ Coverage   92.26%   92.34%   +0.07%     
==========================================
  Files         156      156              
  Lines       10644    10644              
==========================================
+ Hits         9821     9829       +8     
+ Misses        823      815       -8     
Flag Coverage Δ
unit 92.34% <ø> (+0.07%) ⬆️

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 requested a review from Pijukatel February 17, 2026 11:27
@vdusek vdusek merged commit 7663404 into master Feb 17, 2026
32 checks passed
@vdusek vdusek deleted the fix/flaky-test-abort-works branch February 17, 2026 16:26
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