Skip to content

Revert "CI: add CI Tests job to PR workflow" - #103251

Merged
maxknv merged 1 commit into
masterfrom
revert-102529-add-testworkflow
Apr 21, 2026
Merged

maxknv merged 1 commit into
masterfrom
revert-102529-add-testworkflow

Conversation

@leshikus

@leshikus leshikus commented Apr 21, 2026 •

Copy link
Copy Markdown
Collaborator

Reverts #102529

Version info

  • Merged into: 26.4.1.1103

@leshikus
leshikus requested a review from maxknv April 21, 2026 10:32
@clickhouse-gh

clickhouse-gh Bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5f34837]


AI Review

Summary

This PR reverts the previously added CI Tests workflow/job wiring and updates the orphan-cleanup test to use a real ClickHouse query-based multi-process test (00058_select_sleep_3). I found one reliability issue in the updated test: a race-prone process-count assertion that can make CI flaky, so the PR should be updated before merge.

Findings

⚠️ Majors

  • ci/tests/test_cleanup_test_groups.py:96 The assertion now checks process count immediately, without the prior short polling window. Process creation is asynchronous, so this can intermittently observe fewer than 7 processes and fail nondeterministically. Restore a bounded polling loop before asserting.
ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ➖
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ➖
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required action: Reintroduce a short bounded wait/poll before asserting len(procs) == 7 in test_cleanup_kills_orphaned_test_process.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 21, 2026
@maxknv
maxknv enabled auto-merge April 21, 2026 10:34
break
time.sleep(0.05)
procs = pgrep(pgid=pgid)
assert len(procs) == 7, "(Before kill) Expect 7 processes (two bash processes + 5 test processes)" + got_procs(procs)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This direct assert len(procs) == 7 is racy and can make the test flaky.

At this point we only know that one *.stdout file has non-empty output; that does not guarantee all 5 background clickhouse-client processes are already visible in the process table. The previous version polled for up to a few seconds before asserting 7 processes.

Please restore a short polling loop (similar to the previous logic) before the assertion, so the test waits until the full process group is observed or times out deterministically.

@leshikus

leshikus commented Apr 21, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fast test passed, waiting for sync to be created

@maxknv
maxknv added this pull request to the merge queue Apr 21, 2026
Merged via the queue into master with commit 64bd470 Apr 21, 2026
98 of 159 checks passed
@maxknv
maxknv deleted the revert-102529-add-testworkflow branch April 21, 2026 12:02
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 21, 2026
leshikus added a commit to leshikus/ClickHouse that referenced this pull request Apr 22, 2026
…02529-add-testworkflow"

This reverts commit 64bd470, reversing
changes made to 2dde042.
euvre pushed a commit to euvre/ClickHouse that referenced this pull request Apr 24, 2026
…02529-add-testworkflow"

This reverts commit 64bd470, reversing
changes made to 2dde042.
euvre pushed a commit to euvre/ClickHouse that referenced this pull request Apr 24, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants