Repository navigation
Test the guided check's executable and argv at the executor boundary - #200
Merged
Merged
Conversation
…undary Pins the ssh executable and full argument vector that discovery and verification hand to the executor, for three configurations: user, port, quoted sshargs and addversionno; host only with defaults; and a multi-word servercmd. Also pins that a selected candidate becomes the verified servercmd. The existing tests check only the first six arguments, or the builder in isolation. This is the baseline for removing the unused upstream-style members of RemoteCommand: the same assertions must pass unchanged afterward. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…efault-settings case accurately The discovery assertion stopped at the sh -c prefix, so the script could stop carrying the configured remote executable unnoticed. Assert the candidate-list fragments that hold it (the marker varies, these do not); for a bare-name servercmd the assertion pins that the name is absent from the list and the first well-known path leads. Rename the host-only case: it supplies an explicit ssh executable with default remote settings. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
bcourbage
added a commit
that referenced
this pull request
Nov 8, 2026
…d.effective (#202) 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
Adds
Tests/RemoteCheckArgvBaselineTests.swift: a test-only change that pins the ssh executable and full argument vector the guided remote check hands to the executor, for both sessions (discovery and verification).Cases: user + port + quoted
sshargs+addversionno; host only with defaults; multi-wordservercmd; and a selected candidate becoming the verifiedservercmd. The quoted-sshargscase pins upstream's tokenizer as ported (split on whitespace, quote characters kept in the words).Why
Step 1 of the low-risk cleanup plan. The existing tests check only the first six arguments, or
checkArgumentsin isolation. The next PR removes the unused upstream-style members ofRemoteCommand(upstreamArguments,remoteCommandWords,remoteCommandString,shellCommand,rpcServerCmdlineOverride) andPrepared.effective. These assertions must pass unchanged after that removal.Size
+117 lines, one new test file, no production code touched.
Verified
make teston Heracles: 1539 tests, 0 failures.Not in this PR
The archive Reset/Delete candidate baseline.
locateArchivesand the inline gates are private and tied to modal alerts, so pinning the actual selection and the withheld offer needs a small production seam. That is proposed separately.🤖 Generated with Claude Code