Repository navigation
Fix No space left on device in the Install packages job - #112687
Merged
Merged
Conversation
The tgz tests of the `Install packages` job keep failing on the AMD runners with
cp: error writing '/usr/lib/debug/usr/bin/clickhouse.debug': No space left on device
They run last and are by far the most disk hungry tests of the job: `doinst.sh`
copies the unpacked tarball into the system instead of moving it, so
`clickhouse-common-static-dbg` alone occupies 6.8 GiB - twice its 3.4 GiB - while
the deb, rpm and tgz packages of the same build, over 6 GiB together, are all
still sitting in the directory mounted into the container.
Remove the unpacked tree once `doinst.sh` has installed it, and delete the deb and
the rpm packages once their own tests are done. This frees about 5 GiB.
https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=3bb7f633cfc4794a68bd724a8060b472fd6ec5d5&name_0=MasterCI&name_1=Install%20packages%20%28amd_release%29
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [e011b36] Summary: ✅ AI ReviewSummaryThis PR reduces disk pressure in the Final Verdict✅ No blocking findings. |
1 task
alexey-milovidov
pushed a commit
to EilRoviSoft/ClickHouse
that referenced
this pull request
Aug 1, 2026
The `Install packages` job runs for about 890 seconds against a 900 seconds
timeout and times out several times a week. More than half of that time goes into
the debug symbols packages, which no test in the job uses - they only start a
server, an init.d script or a keeper and ask for a version.
The packages are picked up by accident: `clickhouse-{server,client,common}*deb`
also matches `clickhouse-common-static-dbg` (3.4 GiB unpacked) and
`clickhouse-keeper*deb` also matches `clickhouse-keeper-dbg` (2.3 GiB), so the
twelve tests install them ten times over. Measured on
3bb7f63, that is 39 seconds of the 75 seconds of
`Install server deb`, 72 of 96 in `Install server tgz` - the tgz packages pay
twice, because `doinst.sh` copies the unpacked tree instead of moving it - and so
on for the rest.
Take the debug symbols out of the four tests that duplicate coverage:
`Run server init.d` and its `proxy to systemd` variant install exactly the same
packages as `Install server deb`, and the tgz tests run over the same tarballs in
the deb and in the rpm image. Every debug symbols package is still installed once
per package format, so nothing is left untested. This saves 213 seconds.
Related: ClickHouse#112687
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
The tgz tests of the
Install packagesjob keep failing on the AMD runners withIt is not a one-off: master and the release branches hit it on 2026-07-23, 07-25, 07-26 and 07-30, always in
Install server tgz, always in both the deb and the rpm image.The tgz tests run last and are by far the most disk hungry tests of the job.
doinst.shcopies the unpacked tarball into the system instead of moving it, so a package occupies twice its size until the unpacked tree is removed - 6.8 GiB forclickhouse-common-static-dbgalone. At that moment the deb, rpm and tgz packages of the same build, over 6 GiB together, are all still sitting inci/tmp, which is mounted into the container.This removes the unpacked tree once
doinst.shhas installed it, and deletes the deb and the rpm packages once their own tests are done, which frees about 5 GiB. It also printsdf -h /between the phases, since nothing in the report told us how tight the disk was.The
--rmplusdocker killcontainer teardown was left alone on purpose: making it synchronous withdocker rm -fwould serialize the removal of multi-gigabyte writable layers into the critical path, and this job already times out against its 900s limit from time to time.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=3bb7f633cfc4794a68bd724a8060b472fd6ec5d5&name_0=MasterCI&name_1=Install%20packages%20%28amd_release%29