Repository navigation
Second chance for flaky follow-ups, 10 s timeout in the hourly run - #393
Merged
Merged
Conversation
A proxy whose confirm or content request ended in connect_timeout, timeout, connection_closed or no_answer right after a passed basic check gets both follow-ups once more at the end of the run, at least 20 s later. Each proxy is counted once per check, as its last try ended; run.json reports how the second tries ended under checks.second_chance.
A/B on 12 Nov: 768 -> 986 listed proxies with the second chance, 1,177 with both.
…phase 2 - the deferred entry leaves the list when its verdict is recorded, not after the HTTPS test: --want reached during another proxy's enrich counted that proxy as working and unconfirmed - a check target switch during the second chances requeued basic checks that no worker took anymore: workers run again until queue and deferred are empty - checks.second_chance only appears once a second chance ended
Owner
Author
|
Fixed both review findings in the last commit:
Both tests fail without the fix. Full suite: 1542 passed. |
Merged
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.
Why
Only ~770 of ~1,100 working proxies made the hourly list. Per run, about 350 confirms and 280 content checks ended in
connect_timeout/timeout/connection_closed/no_answerright after the proxy had passed its basic check (and after the retry 1.5 s later). The hourly list requirespassedfor basic, confirm and content, so those proxies were lost. Another ~10,000 candidates per run connected but answered after the 6 s limit.What changes
pipeline.run_checks: the follow-ups (confirm, content, details) now live infollow_up(). If a follow-up breaks off in transport (checker.RETRY_REASONS), nothing is recorded yet. At the end of the run, at leastSECOND_CHANCE_DELAY(20 s) after that try, the proxy gets both requests once more and counts as whatever they end as, once per check.run.jsonreports the outcomes aschecks.second_chance. Proxies still waiting when the run is stopped end as unconfirmed, so the basic counts stay complete.proxy-list.yml:--timeout 10instead of 6. The connect stays at 4 s.docs/check-states.md), CHANGELOG, and the workflow test.Measured (A/B on GitHub runners started at the same time, 150,000 candidates each, 12 Nov)
--timeout 10A second round had all arms with the second chance:
The check phase takes 5–6 minutes instead of 3–5.
Ruled out:
The run-to-run swings (2,000–2,500 vs ~1,000) follow that gateway's state.
Tests
Two new tests in
tests/test_pipeline.py: recovery, a real verdict not retried, content unavailable twice, and a second chance that fails counting once. Both fail without the change. Full suite: 1540 passed.