Repository navigation
Conversation
`test_docker_library` and `validate_bugfix_tests` ran the official-images `test/run.sh` with no timeout. A test is a chain of `docker run` calls, so one that never returns held `Docker server image` until the 18000s job cap, which then reported an empty ERROR. That happened on PR ClickHouse#124125: the `head-distroless-amd64` test `clickhouse-distroless-custom-user` printed nothing for 4h43m (job 122900647059). ClickHouse#113869 bounded the buildx loop only. Run both through praktika `Shell.run(timeout=RUN_SH_TIMEOUT)`, which sends SIGTERM to the whole process group and SIGKILL 100s later. A GNU `timeout` around `run.sh` would not do: in the distroless image `clickhouse-client` is PID 1 with no SIGTERM handler, so a sig-proxying `docker run` survives SIGTERM and keeps the output pipe open. 600s is 3.8x the slowest healthy run in 90 days (157s, no run over 300s). `test_docker_library` passes `Shell.check` as the callable of `from_commands_run`, so the image's info keeps the test output and gains praktika's timeout warnings and the partial line that names the hung test. In `validate_bugfix_tests` a run killed by a signal is an ERROR "did not finish", never "fails on master as expected": `run.sh` prints the test marker before it runs the test, so a killed run's output contains it. 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 / |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261028-212700 |
|
cc @Felixoid, could you review this and add the |
|
Workflow [PR], commit [3b1b7ee] Summary: ✅ AI ReviewSummaryPR #128093 bounds both docker-library execution paths with a 600-second watchdog, distinguishes signaled bugfix-validation runs from expected test failures, and supports checkout reuse and invocation-specific readiness retries. Reviewed the complete diff and current code at Missing context / blind spots
Final VerdictStatus: ✅ Approve |
AI review of a later commit does not approve the PR, see the AI Review comment.
5dc530e to
0f910dc
Compare
test_docker_library also takes a test_tries override, passed to run.sh as CLICKHOUSE_TEST_TRIES, and reuses an existing official-images checkout. Both come from clickhouse-private, so the function is the same in both repos.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Docker server imageon #124125 printed nothing for 4h43m inside thehead-distroless-amd64docker-library tests,then died on the 18000s job cap with an empty
ERROR: https://github.com/ClickHouse/ClickHouse/actions/runs/40687127725/job/122900647059(report).
#113869 bounded the
buildxloop; its review noted this tail phase was still unbounded.docker_library.pyrunstest/run.shwith no timeout, both per image (test_docker_library) and per test(
validate_bugfix_tests). Onedocker runthat never returns therefore holds the whole job. A GNUtimeoutis notenough: in the distroless image
clickhouse-clientis PID 1 with no SIGTERM handler, so a sig-proxyingdocker runsurvives SIGTERM and keeps the output pipe open.
Both calls now go through
Shell.run(timeout=600). It sends SIGTERM to the whole process group, then SIGKILL after100s. The slowest healthy run in 90 days took 157s. On expiry the image result is
FAIL, and its info names the hungtest and carries praktika's timeout warnings. In bugfix validation, a killed run is an
ERROR"did not finish",never "fails on master as expected".
Validated locally (no tests for test infrastructure) with two scratch tests that hang: a client that never returns,
and a
docker runthat survives SIGTERM. Without the change both were still running at 900s. With a 60s bound theyfail at 62s and 160s; with the shipped 600s the first fails at 601s. On the
head,head-alpineandhead-distrolessimages, runs with and without the change give the same results.Workflow [PR]
Sync PR [sync-upstream/pr/128093]