Repository navigation
Remove the unused upstream-style members of RemoteCommand - #202
Merged
Merged
Conversation
…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>
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.
What
RemoteCommandrebuilt the command line Unison runs for its own server, but the guided check sends a different command (checkArgumentsplusversionCommandString). Nothing outside tests read these, and they are removed:shellCommand,upstreamArguments,remoteCommandWords,remoteCommandString,rpcServerCmdlineOverridePrepared.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
RemoteCommandTestsassertions on the removed members now assert the live equivalents:versionCommandString(defaults,servercmd,addversionno, escaped and quoted spaces),remoteExecutableWords, andcheckArgumentsfor user, port and ssh args.RemoteCheckArgvBaselineTestsfrom #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