Repository navigation
Fix intermittent failure in backend teardown integration test - #10662
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The test stabilization changes address intermittent teardown failures with no unresolved review issues.
Pull request overview
Stabilizes the backend teardown integration test by explicitly triggering garbage collection and tightening the leak assertion.
Changes:
- Calls
gc.collect()before measuring file-descriptor growth. - Requires no descriptor growth after repeated fixture cycles.
File summaries
| File | Description |
|---|---|
t/integration/test_backend_leak_in_fixture_teardown.py |
Makes backend connection cleanup verification deterministic. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10662 +/- ##
==========================================
- Coverage 89.13% 89.12% -0.01%
==========================================
Files 153 153
Lines 20257 20257
Branches 2395 2395
==========================================
- Hits 18056 18055 -1
Misses 1898 1898
- Partials 303 304 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
lets wait for the CI |
|
i was about to suggest kind of related change suggested by my copilot analysis |
|
so the billiard new release has the source of new regressions or incompatibility? @GangEunzzang |
|
also the smoke tests taking so long to execute is not a great sign |
|
lets try billiard 4.3.0rc1 to see if that can stablize or not, otherwise will roll back to 4.2.x https://github.com/celery/celery/pull/10659/changes |
I've tried Billiard 4.3.0rc1, and the entire test suite passed twice. |
|
Ok so my one with billiard 4.3.0rc1 failed as it didnt have the change of this pr @GangEunzzang |

Description
This PR updates the backend teardown regression test to track Redis backend sockets using weak references and check that some are reclaimed during repeated fixture cycles.