Repository navigation
fix(join): hash the kit from stdin, and say what became of the install when a run again fails - #4973
Conversation
…y left, and give one look line per pid Refs #3983 (items 2/18, 12, 14, 23 and 24). - Items 2 and 18: sha256sum escapes a file name that holds a backslash or a line break and puts a backslash before the sum, so a TMPDIR whose path holds a backslash made the pasted line refuse join.sh (exit 16, "could not be fetched") and join.sh refuse SHA256SUMS (exit 16). Both now hash from stdin. - Item 12: on a run again, a failure after the earlier server was stopped (the undo command, the folder, the copy of the kit's programs, the server's files) now says what became of the install, as the settings refusal already did: "the install stays, stopped (undo: ...)". A fresh join still removes it all. - Items 23 and 24: the undo's look-first line gives one ls -l /proc/<pid>/exe per pid (a pid list in one path named no folder), and names the program's "(deleted)" form, which j_servers also takes for the trial's server. - Item 14: the README says what the account read checks (the braces and the first field, not a parse) and what catches a body cut at a nested brace. scripts/join/join.local.test.ts runs join.sh outside containers against a scratch HOME, a stand-in herdr and failing systemctl/loginctl; its three cases and the new kit.test.ts case fail on main.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Merged through
Reviews: omo gate reviewer BLOCK on one MEDIUM test defect (join_ spawned join.sh attached to the runner's terminal, so the no-terminal case asked its question and timed out when run from a terminal); fixed in aa3bb32 (detached: true), one fix round; production change checked out (stdin hashing cannot accept a wrong file, dash/busybox portable, pasted line safely quoted, bun build --compile acceptable as windows-native.test.ts already does). Codex via axwith (gpt-6.2-sol--fast, xhigh) raised one HIGH (XDG_CONFIG_HOME inherited by join.sh under check fast); not reproduced: join_ passes a full env object, the file passes with XDG_CONFIG_HOME set to another folder, and inside check fast on old-desktop (scripts/join/join.local.test.ts exit 0; unit 30026 pass, 0 fail). The first Integration tests failure was list-join.contract.test.ts refusing an invite at the 15-minute exp boundary (exp_too_late), unrelated to the join kit; rerun. |
Refs #3983 (items 2/18, 12, 14, 23/24; the rest is fixed by #3995 or low/contrived, see the issue comment).
j_sha256injoin.shand the pasted line fromkit.tshash the kit's files from stdin instead of passing paths tosha256sum, so a temporary folder whose name holds a backslash no longer fails the check (it refused with exit 16).j_rollbackis gone.ls -l /proc/<pid>/exeper pid (it printedls -l /proc/1 2/exe) and names the(deleted)form.j_wholechecks.Tests:
scripts/join/join.local.test.ts(new, 3 cases, outside containers: a scratch HOME, a compiled stand-in herdr, failing systemctl/loginctl stubs) and a new case inscripts/join/kit.test.ts. On main they fail with exit 16 / the old copy refusal /ls -l /proc/221419 221425/exe; with the fix, 20 pass / 0 fail (15 s on old-desktop).sh -nunder sh, dash, bash and busybox;scripts/conventions.test.ts; typecheck.Changelog fragment included.