Commit e343ed5
test: Add exponential backoff for shared RQ propagation delay in integration tests (#831)
## Summary
- Added `call_with_exp_backoff(rq.fetch_next_request)` for shared mode
in all integration tests that fetch requests right after
adding/reclaiming them
- Restructured while-loops to use backoff on the first fetch, preventing
premature loop exit when the API hasn't propagated yet
- Added `request: pytest.FixtureRequest` parameter to tests that were
missing it for shared mode detection
- All changes reference the known propagation delay issue #808
## Test plan
- [ ] Integration tests pass in CI (both `single` and `shared`
parameterizations)
- [ ] No more sporadic `test_rq_long_url[shared]` failures (and similar
tests)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 519f6d1 commit e343ed5
2 files changed
+136
-138
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | | - | |
26 | | - | |
| 39 | + | |
| 40 | + | |
27 | 41 | | |
28 | | - | |
29 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
30 | 45 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 46 | + | |
34 | 47 | | |
35 | | - | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
0 commit comments