Repository navigation
Retry transient S3 errors when performance test selection reads a coverage manifest - #131597
Merged
alexey-milovidov merged 2 commits intoNov 16, 2026
Conversation
…erage manifest PR performance test selection read each NightlyCoverage shard manifest with one bare urlopen, so a single S3 HTTP 500 or connection reset made PerformanceSelection.select raise and the shard ended ERROR without running any query (3 shards of 3 unrelated PRs in 3 days, each a one-request blip: the other shards of the same run read the same manifests within seconds). read_manifest is now a module-level function that retries HTTP 5xx and transport errors (OSError, http.client.HTTPException) for up to 5 attempts with 2, 4, 8 and 16 s sleeps, the schedule of the CIDB client. The other network reads of the selection already retry (Targeting._github_get, CIDB.query). A 4xx is raised on the first attempt, so coverage_cohort keeps treating 403/404 of a failed coverage job as an unpublished manifest; a non-JSON body is not retried; and a persistent failure re-raises the last error unchanged, so the job still ends ERROR instead of falling back to the full suite. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (0 blockers, 0 majors).
Severity: ❌ blocker / |
Contributor
|
Workflow [PR], commit [1a78f09] Summary: ✅
AI ReviewSummaryReviewed PR head Final Verdict✅ Approve |
alexey-milovidov
approved these changes
Nov 15, 2026
# Conflicts: # ci/jobs/scripts/performance_selection.py
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.
Related: #129327
Related: #130905
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
PR performance test selection reads the 16 NightlyCoverage shard manifests from the
clickhouse-test-reportsbucket with one bareurlopeneach. A single transient S3 error makesPerformanceSelection.selectraise, and the shard endsERRORwithout running a query. This happened on 3 shards of 3 unrelated PRs in 3 days, each time on one request while the other shards of the same run read the same manifests within seconds: HTTP 500 (CI report), connection reset (CI report), HTTP 500 (CI report).read_manifestis now a module-level function that retries HTTP 5xx and transport errors (OSError,http.client.HTTPException) for up to 5 attempts with 2, 4, 8 and 16 s sleeps, the schedule of theCIDBclient; the other network reads of the selection already retry. A 4xx is raised on the first attempt, socoverage_cohortstill treats 403/404 of a failed coverage job as an unpublished manifest. A persistent failure raises the same exception as before, so the job still endsERRORrather than running the full suite.Validated locally with fault injection against the live bucket and CIDB: with an HTTP 500 and a connection reset injected into two of the 16 manifest reads, master's
snapshot()raises the CI errorurllib.error.HTTPError: HTTP Error 500, and the patched one selects the same 16 shards as a clean run.Workflow [PR]
Sync PR [sync-upstream/pr/131597]
Version info
26.11.1.2403-master(included in26.11and later)