Repository navigation
fix(install): don't skip clickhouse steps when compose ps output is large - #4624
Merged
aldy505 merged 2 commits intoNov 26, 2026
Merged
Conversation
…arge `grep -q` exits on first match; under `set -o pipefail` the SIGPIPE sent to `compose ps` makes the pipeline fail, so upgrade-clickhouse.sh and cleanup-clickhouse.sh silently skipped their work. Drop -q and discard grep's output instead. Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>
aminvakil
suggested changes
Nov 19, 2026
aminvakil
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for fixing this.
Please remove the tests and comments.
Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>
Contributor
Author
|
Thanks @aminvakil, removed the test and the comment in the latest push. This comment was drafted with Claude Code. |
aminvakil
approved these changes
Nov 19, 2026
Contributor
Author
|
Hi @aminvakil, thanks for approving this. Is anything else needed before it can be merged? I'm happy to rebase or adjust if that helps. |
Collaborator
|
Hi @pcbeingused333, PR is good AFAICS. It will get merged once a maintainer has time to review and merge this. |
aldy505
approved these changes
Nov 26, 2026
aldy505
left a comment
Collaborator
There was a problem hiding this comment.
Apologies for the long wait. I'll get this merged today.
aldy505
enabled auto-merge (squash)
November 26, 2026 13:27
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.
Fixes #4621
Cause:
install/upgrade-clickhouse.shandinstall/cleanup-clickhouse.shdetect an existing ClickHouse with$ps_command | grep -q clickhouse.grep -qexits at the first match, so the writer (compose ps) can get SIGPIPE; withset -o pipefailthe pipeline then reports failure and the whole ClickHouse block is skipped without any message.Fix: use
grep clickhouse >/dev/null(as suggested in the issue) so grep reads all input before exiting.Test: new
_unit-test/clickhouse-ps-guard-test.shstubsdcwith apsthat prints ClickHouse first followed by a large amount of output, sources both scripts and checks thatstart_service_and_wait_ready clickhouseis reached. It fails before the change and passes after.Scope: reproduces on upgrade (existing install with a ClickHouse container listed by
compose ps); fresh installs have no ClickHouse container yet, so the block is skipped there by design.Disclosure
This change was prepared with the help of an AI coding assistant (Claude Code); the submitter is responsible for it.
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.