Repository navigation
Restore the default docker image pull retry count in the Install packages job - #121726
Conversation
The two image pulls in ci/jobs/install_check.py passed retries=2 to DockerImage.pull_image, one rung short of the library default: ci/praktika/docker.py defaults to _IMAGE_PULL_RETRIES = 3. Shell.run loops `for retry in range(retries)`, so retries is the total attempt count and 2 bought one try plus one retry. That cost a whole job on run 35795670497. Rung 1 reached no layers in 119s, rung 2 downloaded all three layers by t+91s and was killed by timeout at its 120s cap while extracting, and the ladder was out of rungs. The RuntimeError left main() before any test ran, so praktika recorded a job-level error with no test results and Mergeable Check was blocked on a PR whose diff was unrelated. Rungs accumulate progress, because a killed attempt keeps what it already fetched in the local content store, so a third rung would have begun with the download already done. Only the rung count was wrong. The 120s per-rung cap is well above the worst normal pull and it keeps the `exit code 124` traceback instead of losing the job to its own 900s timeout, so timeout_s=120 stays; two settings were narrowed together when only one of them needed it. The change cannot make a passing run fail: timeout_s is unchanged, so rungs 1 and 2 are byte-identical to today's, and the only new behaviour is a third rung on a path that has already failed. Counting the ladder's inter-rung backoff, the worst case per pull goes 242s to 366s, both images 484s to 732s, inside the 900s timeout both install-check job configs carry. Co-Authored-By: Claude Opus 5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex), two passes over this change,
Checks I ran that produced no finding, listed so they are not re-run: Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20260923-085300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20260923-081600 |
|
Workflow [PR], commit [88204d7] Summary: ✅ AI ReviewSummaryThis PR restores Final Verdict✅ No new findings. |
The job had already outgrown 900s on its own, before any change to the pull ladder. Install packages (amd_release) runs on t3.large and produced 76 job-level errors past the cap (950s to 1200s) in the last 90 days, 75 of them on master or a release branch. The three I opened all name the same cause, for example run 35776234765: "WARNING: Job timed out: [Install packages (amd_release)], timeout [900], exit code [-15]". None of the three was stuck. Each was still walking its test list and was killed 6s to 32s into a test with one or two tests left, and each spent only 12s to 33s of its budget on the two image pulls. The successes crowd the same cliff: of 31,163 in 90 days, 998 took at least 800s, 370 at least 850s and 54 at least 880s. Restoring the third pull rung spends the same budget, because job.timeout bounds the run script alone (runner.py hands it to TeePopen) and both pulls run inside it. Worst case per image is three 120s attempts plus the 2s and 4s Shell.run sleeps between them, so 366s, and 732s for the two images. Measured non-pull work reaches 885s, so 1800s holds 885 + 732 with margin where 900s does not. Both configs move together because they run the same script on the same runner sizes. 1800s is already used elsewhere in this file and every other job here sits between 1800s and 24h. Generated workflows are untouched: yaml_generator.py only emits timeout-minutes for a job over 6h. Co-Authored-By: Claude Opus 5 <[email protected]>
Restore the default docker image pull retry count in the Install packages job
Related: #117421
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required: CI-only change to the
Install packagesjob.Description
Install packages (arm_release)died with 0 tests run onrun 35795670497
(praktika report):
the deb image pull exhausted its retry ladder and the
RuntimeErrorkilled the job before anytest ran, blocking
Mergeable Checkon an unrelated PR.The ladder was one rung short.
ci/jobs/install_check.pypassedretries=2whileci/praktika/docker.pydefaults to_IMAGE_PULL_RETRIES = 3, and rungs accumulate progress:each attempt keeps what it already fetched. Rung 1 reached no layers in 119s; rung 2 had all three
layers at
Download completeby t+91s andtimeoutkilled it 29s later at its 120s cap, so athird rung would have started with the download done.
timeout_s=120is kept, so rungs 1 and 2 stay byte-identical and no passing run can newly fail.The job timeout goes to 1800s too:
job.timeoutbounds the run script alone, both pulls runinside it, and 900s was already too tight without the third rung.
Install packages (amd_release)produced 76 job-level errors past the cap in 90 days, 75 on master or release branches, and the three logs I opened
show
Job timed out ... timeout [900]on a job still walking its test list, killed with one ortwo tests left after 12s to 33s of pulls; 54 of 31,163 successes
finished within 20s of the cap. Worst case is now 885s of measured non-pull work plus a 732s ladder
(3 x 120s plus
Shell.run's 2s and 4s sleeps, twice), which 1800s holds. Generatedworkflows are unchanged:
yaml_generator.pyemitstimeout-minutesonly above 6h.Locally, a cold-image ladder reproduces
command failed after 2/2 attempt(s), exit code: 124,and the next rung finishes it with no re-download.
#117180 rewrites the two pull lines into conditionals; whichever lands second keeps them and
drops
retries=2. Atimeout-killed pull is still never labelledinfra, which #117282 owns.Workflow [PR]
Sync PR [sync-upstream/pr/121726]
Version info
26.10.1.532-master(included in26.10and later)