Repository navigation
test: fix flaky waits in crawler pause and stop tests - #2554
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v2 #2554 +/- ##
=====================================
Coverage ? 95.58%
=====================================
Files ? 196
Lines ? 15552
Branches ? 0
=====================================
Hits ? 14865
Misses ? 687
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
test_migration_after_stop_ends_run
vdusek
marked this pull request as ready for review
November 30, 2026 16:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_migration_after_stop_ends_runwaited for the first request handler withpoll_until_condition, which gives up after 5 seconds. A macOS CI run stalled the worker process for more than 5 seconds, so the poll returnedFalsebefore the handler started (failed job). Other crawler tests in the same run stalled for 6 to 10 seconds too, so the stall came from the runner, not the crawler.Eight more pause, stop, and migration tests in
test_basic_crawler.pyused the same 5-second wait for the crawler start. In those 7 tests and the original one, the handler now sets anasyncio.Event, and the test waits for it with a 30-second ceiling.test_pause_after_abort_on_error_ends_runwaits forfailed_request_handler, so it keeps the poll with a 30-second timeout. Thepause_taskandrun_taskwaits in these tests also go from 10 to 30 seconds.A simulated 6-second stall during the crawler start fails all 9 tests before this change and passes them after it.
✍️ Drafted by Claude Code