Skip to content

Remove the unused upstream-style members of RemoteCommand - #202

Merged
bcourbage merged 1 commit into
mainfrom
cleanup/remove-unused-remote-command-members
Nov 8, 2026
Merged

bcourbage merged 1 commit into
mainfrom
cleanup/remove-unused-remote-command-members

Conversation

@bcourbage

Copy link
Copy Markdown
Owner

What

RemoteCommand rebuilt the command line Unison runs for its own server, but the guided check sends a different command (checkArguments plus versionCommandString). Nothing outside tests read these, and they are removed:

  • shellCommand, upstreamArguments, remoteCommandWords, remoteCommandString, rpcServerCmdlineOverride
  • Prepared.effective (no readers)

The struct keeps what the check sends: remoteExecutableWords, host, user, port, sshargsWords. The doc comment now describes that role instead of upstream's server command.

Tests

The RemoteCommandTests assertions on the removed members now assert the live equivalents: versionCommandString (defaults, servercmd, addversionno, escaped and quoted spaces), remoteExecutableWords, and checkArguments for user, port and ssh args. RemoteCheckArgvBaselineTests from #200 is unchanged and must pass as is.

Size

Production -42 net in two files; tests -2 net. Removes the whole upstream-style command-building path from compose. No behavior change to what ssh is asked to run.

Verified

Full local run before the final test rename: 1549 tests, 0 failures. Three later local reruns could not start ("test runner hung before establishing connection"), so CI is the verification for the final head.

🤖 Generated with Claude Code

…d.effective

RemoteCommand rebuilt the command line Unison runs for its server
(shellCommand, upstreamArguments, remoteCommandWords, remoteCommandString,
rpcServerCmdlineOverride), but the guided check sends its own diagnostic
command through checkArguments and versionCommandString. Nothing outside
the tests read those members. Prepared.effective had no readers either.

The struct keeps what the check sends: the executable words, host, user,
port and ssh argument words. The tests that pinned the removed members now
assert the live equivalents (versionCommandString, remoteExecutableWords,
checkArguments). The executor-boundary tests added in #200 are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bcourbage
bcourbage merged commit 15d6bd5 into main Nov 8, 2026
2 checks passed
@bcourbage
bcourbage deleted the cleanup/remove-unused-remote-command-members branch November 8, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant