Repository navigation
Upgrade check: download previous-release packages from packages.clickhouse.com when GitHub cannot serve them - #130181
Conversation
…ase debs
`download_release_packages.py` downloaded every previous-release deb from
the GitHub release only. On 2026-11-08 github.com answered 504/502/read
timeouts for about two hours ("Increase in timeouts for some
unauthenticated users"), longer than the 10-retry window from ClickHouse#107916
(6-10 min per file), and `Upgrade check (amd_release)` failed with
`Download script failed` on 10 unrelated PRs.
The same files are published to the ClickHouse Debian pool
(https://packages.clickhouse.com/deb/pool/main/c/clickhouse/<asset name>);
for v26.10.2.103 all six amd64 debs there have the GitHub asset size and
sha256. A version that is not in the pool yet (about 30 minutes after a
release) answers a real 404, so the existing 404 fast-fail applies.
Each package now gets the pool as a second source. After GitHub has
failed one package, the rest of the run tries the pool first, so an
outage costs one retry window per job rather than one per package. Once
a required package cannot be obtained from either source the loop stops,
since the job fails anyway. GitHub stays the first source, so a healthy
run makes the same requests as before.
Validated locally with a stub that returns 504 for every GitHub URL:
master fails with the CI message; this change downloads all six debs from
the real pool with matching digests and contacts GitHub only for the
first package. No test is committed (test infrastructure).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261108-165300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261108-164200 |
|
cc @leshikus, could you review this and add the |
|
Workflow [PR], commit [db0baf3] Summary: ✅ AI ReviewSummaryAdds the official Debian pool as a second source for previous-release packages when GitHub downloads fail, preferring the pool for subsequent packages after a GitHub failure. No actionable findings in the current diff. All 11 focused local checks passed, including failure handling and a live pool download verified against GitHub's published SHA-256. Final Verdict✅ Approve. |
c847f42
Related: #107916
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Upgrade check (amd_release)failed withDownload script failedon 10 unrelated PRs between 2026-11-08 08:56Z and 10:30Z, during a GitHub incident ("Increase in timeouts for some unauthenticated users"):Reports:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=130057&sha=6b36bb4ac06d2e2a9e2e87928cf1addd82920c4b&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119380&sha=cbfd9b603d71f0d644ae88fba562a23918a5e7ef&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
download_release_packages.pytakes every deb from the GitHub release only. The 10-retry window from #107916 covers 6-10 minutes per file, and this outage lasted about 2 hours. The same files are in the ClickHouse Debian pool (https://packages.clickhouse.com/deb/pool/main/c/clickhouse/<asset name>); for v26.10.2.103 all six debs there have the same sha256 as the GitHub assets.Each package now falls back to the pool when GitHub fails all its retries. After the first GitHub failure, the remaining packages try the pool first, so an outage costs one retry window per job instead of one per package. The loop stops at the first required package that neither source can serve. A healthy run makes exactly today's requests.
Validated locally against a stub that returns 504 for every GitHub URL: master fails with the CI message, and this change downloads all six debs from the real pool with matching digests. Also checked: healthy GitHub (pool never contacted), both sources down, mixed per-package failures, and pool reachability from the job's
clickhouse/stress-testimage. No test is committed, because this is test infrastructure.Workflow [PR]
Sync PR [sync-upstream/pr/130181]
Version info
26.11.1.1696-master(included in26.11and later)