Repository navigation
v1.178
A connection per set of ssh options, and the Mac app check on server changes (#605)
The v1.177 Mac app build failed in deploy/mac/check_app.sh with "a library's ssh options were not used" (run 40455265494). Nothing was published.
Cause
#603 named the shared ssh socket by ssh's %C alone. %C is a hash of the local host, remote host, port, user and jump host, and does not cover a library's other options. In the check, the gufi_query-only library is first added without options, and Query opens a connection to it. Its options are then changed to -o UserKnownHostsFile=... -o StrictHostKeyChecking=accept-new. The connection test with the new options rode on the open connection, so ssh never logged in with them and the library's own known_hosts file was not written. #600 had kept one socket per set of options for this reason.
Fix
- The socket name is
%C-<8 hex>when the library has ssh options, the hash taken over its options with each-okeyword in lower case (optionsTaginserver/src/remoteExec.ts). With no options it stays%C, so a library given as an alias and one given asuser@hoststill share one connection. The 12-character fallback for a long socket folder is unchanged. - Grouping for stacked search and Query uses the same rule: the effective destination from
ssh -G(user, host name, port, jump hosts, proxy command) plus the options hash. A stacked location runs one ssh with the first member's options, so its members must have the same options. - The mac-app workflow now also runs on pull requests that change
server/src/**orindexer/**. Before, it ran only fordeploy/mac/**, which is why #603 did not runcheck_app.sh.check_app.shdoes not exercise the web client, soweb/srcis not added. The release input stays onworkflow_dispatchonly.
Tests
server/test/sshOptions.test.mjs:
- Two libraries on one host, one with
-ooptions and one without, get two sockets:%Cand%C-<hash>. Asssh -G -F /dev/nullexpands them, the sockets differ. An alias anduser@hostwith no options expand to the same socket, and the same holds when both have the same options. A keyword in another case gives the same socket. - End to end with GUFI: two libraries on one host, one with
-o UserKnownHostsFile=... -o StrictHostKeyChecking=accept-newand one without. Query runs them as two locations, and every ssh for the library with options carries them while the other's carry none. They also have different ControlPaths. Search makes two walks, one with the options. - Both tests fail on main and pass with this change. The test that checks a jump host gets its own socket now also checks that an options-only library gets its own.
Server suite on Node 26: 665 tests, 656 pass, 9 skipped, 0 fail.
Change log through v1.178 (#606)
Regenerated with node scripts/release-notes.mjs --changelog --next v1.178 before tagging v1.178.