Repository navigation
Conversation
laozhej
marked this pull request as ready for review
November 22, 2026 04:07
9 of 13 tasks
laozhej
force-pushed
the
fix/151-ssh-e2e
branch
from
November 26, 2026 04:15
e42a298 to
d292969
Compare
8 of 14 tasks
Signed-off-by: Asahi Arataki <[email protected]>
laozhej
force-pushed
the
fix/151-ssh-e2e
branch
from
November 27, 2026 06:03
d292969 to
405aa8c
Compare
This branch has not been deployed
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 changed
Adds an OpenSSH fixture job to the e2e workflow on every pull request. A small Debian container accepts a freshly generated client key on a random loopback port. Eight tests exercise the real
execSSHpath, private-key loading,sshTest,kernelInfo,networkInfo,diskUsageon/tmp,healthCheck, and nonzero exit/stderr handling. The runner removes its container and temporary keys on exit.The optional live-Pi suite now has explicit 60-second test timeouts, probes
/var/loginstead of/, and runs only its own test file. Manual dispatch withoutPI_CONFIGURED=truereports a configuration error. Live-Pi secrets are never used on pull requests.CONTRIBUTING.mddocuments both test paths.Why
Closes #151. Previously, scheduled tests were skipped when no Pi was configured, and the suite's default timeout was shorter than normal SSH operations. The new fixture provides a real SSH test path without depending on home-lab hardware or credentials.
Type
Testing
cd mcp-server && npm run build && npm testpassespytest tests/ -v --tb=shortpassesLocal Node 22.23.0: build and
npm run typecheckpass; 609 tests pass, with 10 live-Pi and 8 OpenSSH-fixture tests skipped. All 273 Python structure tests pass. Shell syntax, workflow YAML/trigger checks andgit diff --checkpass.The hosted OpenSSH fixture job passed all eight tests against the container. Docker is unavailable locally, so this validation ran on GitHub-hosted Ubuntu. The optional live-Pi job correctly skipped on this pull request.
Checklist
Implemented and checked with Codex assistance. The commit includes the required DCO sign-off. Production tool behavior, versions and generated site files are unchanged.