Skip to content

test: fix flaky test_get_request_by_unique_key[shared]#873

Merged
vdusek merged 1 commit intomasterfrom
test/flaky-get-request-by-unique-key
Apr 21, 2026
Merged

test: fix flaky test_get_request_by_unique_key[shared]#873
vdusek merged 1 commit intomasterfrom
test/flaky-get-request-by-unique-key

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Apr 20, 2026

Description

test_get_request_by_unique_key[shared] called rq.get_request immediately after rq.add_request, which races against the shared request queue's propagation delay and caused intermittent CI failures (e.g. this run).

Wrapped the lookup in call_with_exp_backoff, matching the pattern used by every other test in the file (see top-of-file comment referencing #808). The subsequent negative lookup (non-existent-unique_key) is intentionally left as a direct call — it expects None, so retrying would just burn 7s of backoff for no benefit.

🤖 Generated with Claude Code

The test called `rq.get_request` immediately after `rq.add_request`
without retry, which races against the shared request queue propagation
delay. Wrap the lookup in `call_with_exp_backoff` like the rest of the
file.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Apr 20, 2026
@vdusek vdusek self-assigned this Apr 20, 2026
@github-actions github-actions Bot added this to the 139th sprint - Tooling team milestone Apr 20, 2026
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Apr 20, 2026
@vdusek vdusek requested a review from Pijukatel April 20, 2026 14:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.64%. Comparing base (737b0dd) to head (49cc3dd).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #873      +/-   ##
==========================================
+ Coverage   86.57%   86.64%   +0.06%     
==========================================
  Files          48       48              
  Lines        2920     2920              
==========================================
+ Hits         2528     2530       +2     
+ Misses        392      390       -2     
Flag Coverage Δ
e2e 37.87% <ø> (ø)
integration 59.28% <ø> (ø)
unit 75.37% <ø> (+0.06%) ⬆️

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 5cb6ce8 into master Apr 21, 2026
57 of 59 checks passed
@vdusek vdusek deleted the test/flaky-get-request-by-unique-key branch April 21, 2026 09:24
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