Repository navigation
CI: re-add CI Tests job; skip orphan-cleanup test until latent bug in performance_tests.py is fixed (#103307) - #103295
Merged
Conversation
…oup cleanup test Re-adds the `CI Tests` job after revert in ClickHouse#103251. Two root causes are fixed: - `--init` is removed from the `docker run` invocation in `runner.py`; the `tini` init process it injects conflicts with the privileged Docker-in-Docker environment used by the job. - `ci_tests_job.py` gains a `--skip` option (pytest `-k not <pattern>`) so individual tests can be excluded without modifying test files. The job config now skips `test_cleanup_kills_orphaned_test_process`, which requires process-group bookkeeping symbols (`pgrep`, `_GROUP_PID_PATH`) that are not yet present on all runners. Closes ClickHouse#103251 (revert), re-introduces ClickHouse#102529. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Contributor
|
Workflow [PR], commit [481c9d3] Summary: ✅ AI ReviewSummaryThis PR re-enables the Missing context
Findings❌ Blockers
ClickHouse Rules
Final Verdict
|
leshikus
marked this pull request as ready for review
April 22, 2026 19:07
maxknv
approved these changes
Apr 22, 2026
maxknv
left a comment
Member
There was a problem hiding this comment.
Please check that all jobs have run in CI before the merge. Change the digest somehow in perf tests or add runner.py to the digest config. Also, it seems the title and body do not correspond to the change.
Member
|
Could you update the description to be self-contained (not relying on the reverted PR context)?
|
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.
Re-adds the `CI Tests` job that was reverted in #103251.
Why the original was reverted
#102529 added `--init` (tini as PID 1) to all `docker run` invocations in `runner.py`. This exposed a latent bug in `performance_tests.py`: `ClickHouseServer.start` launched the server without `start_new_session=True`, so the server inherited the driver's process group. `Utils.terminate_process_group` then called `os.killpg(pgid, SIGTERM)` on the shared group, killing the driver. Previously the driver ran as PID 1 (immune to `SIGTERM` by default); `--init` removed that immunity and caused it to exit with code 143.
The proper fix is `start_new_session=True` on the `Popen` calls in `performance_tests.py` — tracked in #103307, which also restores `--init` in `runner.py`.
What this PR does
Re-adds the CI Tests job as a short-term unblock, without `--init`, so that CI Tests runs while #103307 is reviewed:
On skipping `test_cleanup_kills_orphaned_test_process`
This is a workaround, not a permanent decision. The test requires tini as PID 1 and cannot pass without `--init`. It is skipped via the new `--skip` option (not deleted) so it is easy to re-enable once #103307 lands and `--init` is restored.
Changelog category (leave one):
Version info
26.5.1.50