Repository navigation
Conversation
Without this patch, when hitting Tab, this spits out to the terminal: awk: cmd. line:1: (FILENAME=- FNR=2552) warning: Invalid multibyte data detected. There may be a mismatch between your data and your locale -A: command not found -C: command not found -Cluster: command not found -E: command not found -H: command not found -V: command not found -b: command not found This is due to multiple reasons: - ClickHouse generates invalid UTF-8 sequence in some cases - `LANG=c` alone insufficient for `awk`, it may be overridden by `LC_ALL` - Examples in help text being split and interpreted as options This commit adds `LC_ALL` for `awk`, and change the option check to a stricter glob than merely "anything beginning with a dash and longer than 1".
|
Workflow [PR], commit [ab772cc] Summary: ❌
AI ReviewSummaryThis PR pins both Bash-completion PR MetadataThe
Findings💡 Nits
Final Verdict✅ Approve. No unresolved code findings; the changelog formatting correction is nonblocking. |
…ter walk `_list_commits_page` ran one `gh api repos/ClickHouse/ClickHouse/commits` call and raised on the first non-zero exit or timeout, and the per-TU master first-parent walk makes ~20 such calls per job. GitHub fails single requests (HTTP 503 and 504, a body cut short so `--jq` reports `unexpected end of JSON input`, a stalled body) while the requests around them succeed, so one blip errored the whole check: 9 jobs on 9 PRs between 2026-10-03 and 2026-10-14, the failing anchors 11-15 days deep in walks whose earlier fetches had just succeeded, and the same commits passing on other runs. Retry the listing up to 3 times (after 5 s, then 10 s), keeping the 120 s per-call timeout. A timeout, an HTTP 5xx or 429, or a failure whose stderr names no HTTP status is retried; any other 4xx (unknown sha, permissions) fails at once, since `gh` reports an HTTP error as `gh: <message> (HTTP <status>)`. After the last attempt the error propagates as before, so the walk stays fail-close as the `extend_master_shas` docstring requires. The praktika `GH` helpers retry but pass no subprocess timeout, which ClickHouse#115201 kept on this call site on purpose. CI reports: - https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=124959&sha=1d61eebf3fe5ed809d4811ea947169074a3e1712&name_0=PR&name_1=Build%20profile%20diff (ClickHouse#124959) - https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125328&sha=ab772cc3b97c2e6777f2ef60723bcbeb5a5f29e3&name_0=PR&name_1=Build%20profile%20diff (ClickHouse#125328) - https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=122585&sha=bf8b2d2470663e1b5703c2014b7887fe2d5dd239&name_0=PR&name_1=Build%20profile%20diff (ClickHouse#122585) - https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119371&sha=88edddd16dcd4250ac56e1642f964a03763097f4&name_0=PR&name_1=Build%20profile%20diff (ClickHouse#119371) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without this patch, when hitting Tab, this spits out to the terminal:
This is due to multiple reasons:
LANG=calone insufficient forawk, it may be overridden byLC_ALLThis commit adds
LC_ALLforawk, and change the option check to a stricter glob than merely "anything beginning with a dash and longer than 1".Changelog category (leave one):
Bug Fix (user-visible misbehavior in an official stable release)
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Workflow [PR]
Sync PR [sync-upstream/pr/125328]