Skip to content

La Casa Del Dolor: report startup failures, fix encrypted disk paths, avoid false shutdown failures - #128774

Merged
alexey-milovidov merged 1 commit into
masterfrom
lacasa-harness-fixes
Nov 3, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
lacasa-harness-fixes

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Fixes in the La Casa Del Dolor harness for the failures it reports on master since it was added in #94148.

Startup failures reported as dolor.py exception. With with_dolor the server runs as a foreground exec in a container whose entrypoint is tail -f /dev/null, so the container stays running when the server dies. wait_until_port_is_ready only failed fast on an exited container, so it waited the whole 300 s for a server that had exited a second after starting, and the job then reported only the Python traceback. All 9 such failures since 2026-10-12 were servers that exited at startup. Now:

  • the wait fails as soon as the server exec ends, with its exit code and the tails of clickhouse-server.err.log and stderr.log (only with with_dolor, where the exec id is always that of the current server);
  • before reporting dolor.py exception, the job runs the log parser over the node's logs, so e.g. the master failure below is reported as UndefinedBehaviorSanitizer: undefined behavior (STID: 2551-36b1) (the server-side fix for it is a separate PR).

Encrypted disks with an absolute path. The path of an encrypted disk is relative to the disk it wraps (wrapped_disk->getPath() + path). Over a local object_storage disk an absolute path is rejected with PATH_ACCESS_DENIED and the server refuses to start. Now it is relative.

False Server shutdown failures. dolor.py force kills a server that has not stopped within 30 s.

  • shutdown_wait_backups_and_restores = 1 (the default, and half of the runs) waits for running backups and restores without a time limit, by design; 9 of 13 Server shutdown failures were that. It is now always 0, so the server cancels them within shutdown_wait_unfinished. The backup and restore error paths that ignore the cancellation are fixed in the server separately.
  • A shutdown can spend shutdown_wait_unfinished twice (cancelling backups and restores, then waiting for the connections that ran them), so it is capped at (SERVER_STOP_WAIT_SECONDS - 10) / 2.

Examples:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=4944813cca464e86af5d1e763b132ed6a1fc2bb0&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28arm_asan_ubsan%29
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=b08434c5500c10180f0c43fedb0f5e860b20f46f&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28amd_debug%29

Related: #94148

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/128774]

Version info

  • Merged into: 26.11.1.1184-master (included in 26.11 and later)

…ailures

Startup: with `with_dolor` the server runs as a foreground exec in a container
that stays alive on its own, so `wait_until_port_is_ready` kept waiting for
300 s after the server had exited, and the job reported a bare
`dolor.py exception`. Now the wait fails as soon as the server exec ends, with
its exit code and the tails of the server's error log and stderr, and the job
names the server's own failure (e.g. a sanitizer report) when its logs have one.

Encrypted disks were generated with an absolute `path`, but it is relative to
the wrapped disk; over an object storage disk the server refused to start with
`PATH_ACCESS_DENIED`.

Shutdown: `shutdown_wait_backups_and_restores = 1` waits for running backups and
restores without a time limit, by design, so it is now always 0. A shutdown can
spend `shutdown_wait_unfinished` twice, so it is capped at half of the window
`dolor.py` allows.

Examples:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=4944813cca464e86af5d1e763b132ed6a1fc2bb0&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28arm_asan_ubsan%29
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=b08434c5500c10180f0c43fedb0f5e860b20f46f&name_0=MasterCI&name_1=La%20Casa%20Del%20Dolor%20%28amd_debug%29

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1df78c7]

Summary: ✅


AI Review

Summary

The PR improves startup failure diagnostics in La Casa Del Dolor, generates relative paths for encrypted disks, and keeps shutdown waits within the harness deadline. No actionable findings at 1df78c714bf01593244e19f877e080db666e0534. Focused checks passed, including classification of the linked UBSan startup report.

Missing context / blind spots
  • ⚠️ Full Docker and fuzzer execution was not run locally; CI validation was pending during review. Local checks used mocked Docker responses and exercised the actual settings generator and log parser.
Final Verdict

Status: ✅ Approve

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Nov 3, 2026
Merged via the queue into master with commit 929eeb1 Nov 3, 2026
179 checks passed
@alexey-milovidov
alexey-milovidov deleted the lacasa-harness-fixes branch November 3, 2026 09:28
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 3, 2026
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-ClickHouse__ClickHouse that referenced this pull request Nov 5, 2026
… disk

An encrypted disk with a `path` makes `DiskEncrypted` create that
directory on the wrapped disk at startup. The generator could give an
object storage disk `readonly = 1` and then wrap it in an encrypted disk
with a relative path (ClickHouse#128774), so the server could never start: on a
readonly local `plain_rewritable` disk the write is refused and the
rollback retries READONLY without end (master La Casa Del Dolor
(amd_debug), sha 5601c73).

Record which disks were generated readonly, and give an encrypted disk
no `path` when the bottom disk of its chain is one of them; it then uses
that disk's root and needs no write. `random.randint` stays the first
operand, so the random stream and every other generated config are
unchanged (checked on 20000 seeds x 4 generator variants).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker This issue / pr blocks a new release comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). pr-ci 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.

2 participants