-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added tests for ClickHouse apps help and fixed help issues #45819
Conversation
# We have to use fixed terminal width. It may break other tests results formatting. | ||
|
||
backup_stty_size=$(stty size | awk '{print $2}') | ||
stty columns 120 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, there is no tty in CI,
so it's better to set it to the same value used for a fallback when there is no tty.
Now it should be easier to modify Poco. |
@qoega should we continue? |
I will push changes after PTO. Some apps printed argv[0] with complete path to binary. |
This reverts commit 6e94594.
Test found another real issue with small terminal width
|
- src: root/usr/bin/clickhouse-static-files-disk-uploader | ||
dst: /usr/bin/clickhouse-static-files-disk-uploader | ||
- src: root/usr/bin/clickhouse-su | ||
dst: /usr/bin/clickhouse-su |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Felixoid can you review this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the wrong package to me. All symlinks to clickhouse
rather belong to the clickhouse-server
package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the clickhouse-extract-from-config
is here. Not sure why, but it looks more common than su
. What about clickhouse-static-files-disk-uploader
? Does it belong to client too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea 😃 I found another small tool here and added here as well. I'm ok to move almost all the symlinks to server package. You can know the logic behind our packages. I just found those missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can only guess regarding the clickhouse-static-files-disk-uploader
, if it's useful in both client and server packages. The same regarding clickhouse-extract-from-config
. But the clickhouse-su
clearly belongs to the server package
Failures are unrelated
Only left questions are about symlinks from @Felixoid. When he will have time to look and say what changes are needed. |
The I can't say anything regarding |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Many issues in ClickHouse applications's help were fixed. Help is now written to stdout from all tools. Status code for
clickhouse help
invocation is now 0. Updated help forclickhouse-local
,clickhouse-benchmark
,clickhouse-client
,clickhouse hash
,clickhouse su
,clickhouse-install
.Improved logging for
clickhouse-install
and improved support for installations into prefix.clickhouse stop
,clickhouse start
,clickhouse restart
should work correctly with--prefix
and inno-sudo
environmentDocumentation entry for user-facing changes