fix(dev): add openssh to lab service PATH for AFK git-over-ssh #69
No reviewers
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos!69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/lab-afk-ssh-on-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Every Start AFK run fails immediately with:
Root cause
PR #68 added
pkgs.gitto the lab systemd service PATH but notpkgs.openssh. Project origins are SSH remotes (forgejo@git.cloonar.com:…), andgit fetch origininAddWorktree(git.go:62) forks thesshbinary via a PATH lookup. With nosshon the service PATH the fork fails before the worktree is ever created, so the run never starts (and rolls the issue label back).Fix
Add
pkgs.opensshtosystemd.services.lab.pathinhosts/fw/vms/dev/modules/lab/default.nix. The lab service already runs asdominikwithHOME=/home/dominik, so the existing SSH key and known_hosts apply oncesshis reachable. Also covers the latergit pushof theafk/<N>branch.Verification
Reproduced the exact error by forcing git's bare-
sshPATH lookup (GIT_SSH_COMMAND=ssh) withsshabsent from PATH; the identicalgit fetch originsucceeds once openssh is on PATH. (A naive local repro was misleading because this notebook's git binary hardcodes an absolute ssh store path — but the error's baresshname proves the microvm git relies on PATH.) Pre-commit dry-build offw: OK.Note on test coverage
No clean regression seam: the Go tests substitute a fake
Git, so they can't catch a missing runtime PATH package, and the pre-commit gate is eval-only — it never instantiates the running service. Undeclared runtime-PATH deps are structurally invisible to both gates.