Repository navigation
Skip 05397_clickhouse_local_locked_path_untouched on macOS - #128088
Conversation
macOS has the flock(2) system call but not the util-linux flock(1) command. On the darwin runner the test's `flock -x <status> clickhouse local ...` failed with "flock: command not found", the second clickhouse-local never started, and `2>&1 | grep` hid the error, so `Fast test (arm_darwin)` failed on every PR that contains the test (added by ClickHouse#116042) with only the "Another server instance ..." line missing. Hold the lock with a python3 `fcntl.flock` holder instead. It is the same flock(2) call StatusFile uses, the lock is held while the child runs, the child does not inherit the lock fd, and the exit code is the child's, as with flock(1). ci/jobs/scripts/clickhouse_proc.py already probes this lock with fcntl.flock. Validated on Linux: with a fake flock that exits 127 first in PATH the old test fails with exactly the darwin diff and the new one passes; with the lock line removed the new test fails; 50/50 randomized runs pass. 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; No findings were raised on this change, so nothing was adjudicated. Session id: cron:clickhouse-review-slot-8:20261028-203500 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261028-202200 |
|
cc @yakov-olkhovskiy, could you review this and add the |
|
Workflow [PR], commit [59f220c] Summary: ✅ AI ReviewSummaryPR #128088 adds Missing context / blind spots
Final VerdictStatus: ✅ Approve. No changes requested. |
CI finish ledger - e48ed37Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
The changed test passed on Session id: cron:our-pr-ci-monitor:20261029-003003 |
rienath
left a comment
There was a problem hiding this comment.
Just add 05397_clickhouse_local_locked_path_untouched to blacklist s.t. it doesn't run on darwin
Per review: instead of replacing flock(1), tag the test no-darwin. It holds the status lock with util-linux flock(1), which the macOS runner does not have, so the locked-path check never runs there. The test body is restored to master's version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
flock(1) in 05397_clickhouse_local_locked_path_untouched, macOS does not have it05397_clickhouse_local_locked_path_untouched on macOS
Include the macOS test skip from #128088. Related: #128099 CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=128099&sha=05f7239cd5beea0df722161bbc89a4b0dc42857e&name_0=PR&name_1=Fast%20test%20%28arm_darwin%29
Related: #116042
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
05397_clickhouse_local_locked_path_untouchedis skipped on macOS, where the util-linuxflockcommand it uses is not available.Description
05397_clickhouse_local_locked_path_untouched(added by #116042) fails inFast test (arm_darwin)on every PR whose merge commit contains it (150 FAIL rows in 24 hours, all in that check), e.g. #113173. It passes on every Linux check.The test holds the
statuslock withflock(1), a util-linux command that macOS does not have, so on darwinclickhouse localnever starts and the expectedAnother server instance in same directory is already runningline is missing.As requested in review, the test is now tagged
no-darwin; its body is unchanged from master.tests/clickhouse-testparses the tag ({'no-darwin'}; none on the master file) and skips such tests on Darwin: the existingno-darwintests areSKIPPEDin 230 of 230Fast test (arm_darwin)runs over the last 24 hours.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/128088]
Version info
26.11.1.889-master(included in26.11and later)