Repository navigation
CI: require only one package flavour per Install packages job - #117180
alexey-milovidov merged 9 commits into
Conversation
`Install packages` declares four artifacts in `requires` (deb, rpm, tgz and the raw binary) and praktika downloads all four into `ci/tmp` before the job script starts, but `install_check.py` installs one flavour at a time. Reading the step change across each `free_packages()` call in the failing run's own `df` timeline (master 31f27d8): debs 2.5 GiB, rpms 2.5 GiB, tarballs 3.2 GiB, plus `ci/tmp/clickhouse` at about 1 GiB that is never deleted. About 9.2 GiB of package files stay resident for the whole job, of which the substep that failed needed only the 2.5 GiB of debs. `apt` asked for 4753 MB there against 4.3 GiB free, so the job's peak is near 14 GiB and `dpkg` ran out of space unpacking `clickhouse.debug`. Split each of the four ParamSets into three, one per flavour, using the `--no-deb`, `--no-rpm` and `--no-tgz` flags that already existed in `install_check.py` and were never set. The peak drops to about 9 GiB, or 7 GiB for tgz. On the host that failed, which arrived with 13.5 GiB free of a 58 GiB volume, the deb job would have started with 10.0 GiB free instead of 4.3 GiB. This is growth proportional on the demand side: the peak now tracks one flavour's size instead of the sum of four, where the four previous fixes in this family each reclaimed a fixed amount of space that package growth then consumed. Three supporting changes in `install_check.py`: pull the deb image when the deb or tgz group runs and the rpm image when the rpm or tgz group runs, since both tgz runs install the same tarballs in both images; guard the `strict=True` `chmod +x ci/tmp/clickhouse` behind the deb or rpm group, without which the tgz job aborts before running anything because it does not require the binary artifact; and correct the two comments the split falsifies. The stale 6.8 GiB tgz figure in `test_install_tgz` is corrected in the same pass: ClickHouse#111960 already made it wrong when it changed the generated `doinst.sh` to rename the unpacked tree into place instead of copying it. Coverage is unchanged. The substep set of one pre-change job and the union of the three new jobs match name for name, 26 substeps split 5 + 3 + 18 with no overlap, cross-checked against the CIDB substep list of a green pre-change run. Every substep still runs once per arch, in the same image, with the same packages; only which artifacts are on disk while it runs changes. This reduces exposure rather than removing it. The runner admission floor stays at `free_blocks_threshold = 3_000_000` 1 KiB blocks (2.86 GiB) and 5 percent, so a host admitted below about 9 GiB free can still fail; the failing host passed both checks at 4.3 GiB and 7 percent free. Co-Authored-By: Claude Opus 5 <[email protected]>
Pre-split, "once every package has been deleted" freed all three flavours: 2.5 GiB of debs, 2.5 GiB of rpms and 3.2 GiB of tarballs in the failing run's `df` timeline, which is where the comment's 7 GiB came from. Each job now carries one flavour, so the deb job frees 2.5 GiB before its binary substep and the rpm job 2.5 GiB, and no job frees 7 GiB. The headroom moved rather than shrank: the deb job reaches that substep with about 12.5 GiB free, mostly because it never downloads the other two flavours. The ordering rationale still holds inside the deb and rpm jobs, so only the figure goes. 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 rounds, 1 finding each), plus an
Severity: ❌ blocker / Checks I ran beyond the diff, in case they are useful to a reviewer: Session id: cron:clickhouse-review-slot-10:20260830-163600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20260830-152000 |
|
Workflow [PR], commit [f6b6df1] Summary: ✅ AI ReviewSummaryThis PR splits each Final Verdict
|
|
cc @maxknv, could you review this? It follows #113270: each |
|
@groeneai fix conflicts! |
…quire-one-flavour Conflicts: `ci/defs/job_configs.py` and the four generated workflow files. Master renamed the runner labels in `RunnerLabels` (`STYLE_CHECK_AMD` to `AMD_TINY`, `STYLE_CHECK_ARM` to `ARM_TINY`) on the same `Job.ParamSet` lines this branch splits per package flavour, so the twelve parameter sets added here now use the current names. The old names no longer exist, so keeping them would raise `AttributeError` while loading the CI config. The four `.github/workflows/*.yml` files are generated: they were taken from master and regenerated with `PYTHONPATH=./ci:. python3 -m praktika yaml`. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Resolved in dfec1a3. Master's runner-label rename ( |
…quire-one-flavour
The `ci/` sources merged cleanly; only the generated workflows conflicted, so all
four are regenerated with `python3 -m ci.praktika yaml` rather than hand-merged.
They are the only generated workflows the regeneration changes, and this branch's
per-flavour `install_packages_*_{deb,rpm,tgz}` jobs still come out in place of
master's two combined ones.
…quire-one-flavour Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each Install packages job now selects its package flavour through the `--no-*` flags and `requires` of its parameter set in `ci/defs/job_configs.py`, but praktika decides whether a job is affected only from its digest `include_paths`, which did not cover that file. A pull request that edits only these parameter sets would therefore have all six jobs filtered out as unaffected and land without running them. Add `ci/defs/job_configs.py` to the digest of both job groups. Checked with `native_jobs._filter_unaffected_jobs` on the PR and MasterCI workflows: for a change to that file alone, 0 of 6 Install packages jobs ran before and 6 of 6 after; a change to `ci/jobs/fast_test.py` still filters all of them. The generated workflows are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # .github/workflows/backport_branches.yml # .github/workflows/master.yml # .github/workflows/pull_request.yml # .github/workflows/release_branches.yml
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Each
Install packagesjob now downloads only the package flavour it installs, instead of all of them.Description
Related: #113270
Related: #117168
Install packagesdeclares four artifacts inrequires(deb, rpm, tgz, raw binary) and praktikadownloads all four into
ci/tmpbefore the script starts. The script installs one flavour at a timeand deletes each only after its own group, so the deb group, which runs first, holds all four on disk
while needing only the debs. Measured from the failing run's
dftimeline: 2.5 GiB of debs, 2.5 GiB of rpms, 3.2 GiB of tarballs and about 1 GiB ofci/tmp/clickhouse.aptasked for 4753 MB there against 4.3 GiB free, putting the peak near14 GiB.
Each
Job.ParamSetnow requires only its own flavour, via the--no-deb/--no-rpm/--no-tgzflags that already existed unused. Peak drops to about 9 GiB, or 7 GiB for tgz. That host arrived
with 13.5 GiB free of a 58 GiB volume, so the deb job would have started with 10.0 GiB free, not
4.3.
ci/defs/job_configs.pyjoins the jobs' digest, since these parameter sets now decide what eachjob installs; otherwise a PR changing only them would skip the jobs.
#117168 covers why the host arrived that full; it does not overlap
this change. Neither closes the hole alone: the runner admission floor stays at 2.86 GiB and 5
percent (
free_blocks_thresholdinci/praktika/infrastructure/runner/runner-init.py), which this host passed at4.3 GiB and 7 percent, and raising it is a pool-wide capacity tradeoff.
The same 26 substeps still run per arch, same images and packages, matching the pre-change names,
split 5 + 3 + 18. Three stale disk-space comments are corrected.
Cost: two extra jobs per arch on the
amd-tiny/arm-tinypools; only the per-job overhead (93 s) is paidthree times, and the three run in parallel, so the check finishes sooner. The check names change, so CIDB history splits at the
rename.
Workflow [PR]
Sync PR [sync-upstream/pr/117180]
Version info
26.10.1.2180-master(included in26.10and later)