Skip to content

Cherry pick #125512 to 26.7: Never stop the server process from the line editor of the embedded client - #125868

Merged
robot-clickhouse-ci-1 merged 7 commits into
backport/26.7/125512from
cherrypick/26.7/125512
Oct 15, 2026
Merged

robot-clickhouse-ci-1 merged 7 commits into
backport/26.7/125512from
cherrypick/26.7/125512

Conversation

@robot-ch-test-poll2

Copy link
Copy Markdown
Contributor

Original pull-request #125512

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Before you resolve anything

Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

alexey-milovidov and others added 6 commits October 12, 2026 21:36
…ient

The embedded client (`/webterminal` and the SSH interface) runs `replxx` inside
the server process. Pressing Ctrl-R and then Ctrl-Z stopped the whole server
with `SIGSTOP`: the incremental history search of `replxx` handled Ctrl-Z by
itself with `raise(SIGSTOP)`, bypassing the key binding that disables suspending.

- Update `replxx` so that Ctrl-Z in the history search goes through the key binding.
- In the embedded mode, always disable suspending, regardless of `ignore_shell_suspend`.
- In the embedded mode, do not install the process-wide `SIGWINCH` handler: the
  pseudoterminal is not the controlling terminal of the server, so it is useless,
  and the server process must not have its signal handlers changed by a session.

Closes: ClickHouse/clickhouse-private#80920

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`master` of `replxx` now contains the fix of Ctrl-Z in the incremental history
search. The new commit merges it with the history recall changes used by
ClickHouse and fixes Ctrl-V blocking after the esc delay support from `master`.

Related: ClickHouse/replxx#45
Related: ClickHouse/replxx#46

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Address review: the previous bump to the merge of `replxx` `master` with
the ClickHouse changes also pulled in the `vi`/editing-mode series, the
`Esc`-delay handling, prompt indentation and thread-local terminal state.
The `Esc`-delay handling broke Meta+Up history recall, which made
`04909_client_hints_history_navigation` fail (`meta_up_recall_no_hints`)
in every stateless test job:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125512&sha=latest&name_0=PR
#125512

Go back to `00cd994`, which is the current `replxx` pointer on `master`
plus only the one-file fix for `Ctrl-Z` in the incremental history search.
The broader `replxx` upgrade should go into a separate PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…in-embedded-client

Resolve the conflict in `tests/integration/test_webterminal/test.py` by keeping both new tests.
…dded-client

Never stop the server process from the line editor of the embedded client
@robot-ch-test-poll2 robot-ch-test-poll2 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Oct 14, 2026
…flicts

Use a dedicated `replxx` commit for 26.7: the fix of Ctrl-Z in the incremental
history search cherry-picked onto the `replxx` commit used by 26.7, without the
history recall changes from `master`. Drop the test of TAB completion that came
from the conflict context, as it is not in 26.7.

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

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants