Repository navigation
Run only shell-free tests for distroless images in the docker library check (26.4) - #119533
Merged
Merged
Conversation
… check Since #119494 swapped the 26.4 distroless base to `gcr.io/distroless/base-nossl-debian13`, the images have no shell and no coreutils. The `docker library image test` in `Docker server image` and `Docker keeper image` still ran the `docker-library/official-images` global tests against them, so `utc` and `no-hard-coded-passwords` died with `exec: "date": executable file not found in $PATH` and `exec: "cut": executable file not found in $PATH`. That makes both jobs red on every pull request targeting 26.4. Port master's fix: `config.sh` gains distroless-safe test lists and marks the distroless image variants as `explicitTests`, so the runner does not add the global tests, and `test_docker_library` generates a small config fragment that maps the arch-suffixed local CI tags (the runner derives `clickhouse/clickhouse-server:head-distroless-amd64` as `clickhouse/clickhouse-server:amd64`) to those lists. Verified locally against a fresh clone of `docker-library/official-images` with the test selection printed instead of executed: before the change the server distroless image selected `utc no-hard-coded-passwords override-cmd clickhouse-initdb-skip-user-setup clickhouse-override-tcp-port clickhouse-basics` (exactly the 6 tests of the failing CI run) and the keeper one selected `utc no-hard-coded-passwords override-cmd`; after it they select `clickhouse-basics clickhouse-distroless-no-shell clickhouse-distroless-initdb` and `clickhouse-distroless-no-shell`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
|
Workflow [BackportPR], commit [68583ec] Summary: ✅ |
1 task
alexey-milovidov
deleted the
fix/distroless-docker-library-tests-26.4
branch
September 12, 2026 08:32
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.
Since #119494 swapped the 26.4 distroless base image to
gcr.io/distroless/base-nossl-debian13, the distroless images have no shell and no coreutils. Thedocker library image testin theDocker server imageandDocker keeper imagejobs still ran thedocker-library/official-imagesglobal tests against them, soutcandno-hard-coded-passwordsdie withand both jobs are red on every pull request targeting 26.4 since 2026-09-11 16:22 UTC (the 26.4 release-branch CI itself is red the same way).
masteris unaffected because it already restricts the test set for distroless images; this change ports that fix to 26.4.What it does:
ci/jobs/scripts/docker_server/config.shgains distroless-safe test lists and marks the distroless image variants asexplicitTests, so the runner does not add the global tests. The file is now byte-identical tomaster.test_docker_libraryinci/jobs/docker_server.pygenerates a small config fragment for the arch-suffixed local CI tags: the official-images runner derivesclickhouse/clickhouse-server:head-distroless-amd64asclickhouse/clickhouse-server:amd64, so the plain:distrolesskey alone never matches.Verified locally against a fresh clone of
docker-library/official-images, with the test selection printed instead of executed:clickhouse-server:head-distroless-amd64utc no-hard-coded-passwords override-cmd clickhouse-initdb-skip-user-setup clickhouse-override-tcp-port clickhouse-basics(exactly the 6 tests of the failing CI run)clickhouse-basics clickhouse-distroless-no-shell clickhouse-distroless-initdbclickhouse-keeper:head-distroless-amd64utc no-hard-coded-passwords override-cmdclickhouse-distroless-no-shellclickhouse-server:head-amd64(unchanged)26.3 has the identical gap and gets the same fix in #119532. 25.8 is red the same way, but its docker job still runs from the older
tests/ci/docker_server.py, which does not use the repositoryconfig.shat all, so it needs a separate, differently shaped fix.Related: #119494
Related: #119493
Related: #119492
Changelog category (leave one):
🤖 Generated with Claude Code
Version info
26.4.6.5