Skip to content

[CI] test: keep real SSH command contracts on Node - #26226

Merged
nwparker merged 1 commit into
mainfrom
nwparker/ssh-command-node-contracts
Oct 7, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/ssh-command-node-contracts

Conversation

@nwparker

@nwparker nwparker commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The SSH command tests execute real PowerShell and shell scripts, create installation markers, and race real lock files. Run this file under Node, matching the application runtime and the existing policy for native runtime contracts.

What Changed

Add ssh-remote-commands.test.ts to the existing actual-Node registry. The Bun coordinator still runs the rest of the suite; this file uses the existing Node project. No test, assertion, deadline, skip, command, or production code changes.

Why

These cases check real interpreter and filesystem behavior, so their runtime should match production. The renderer import PR exposed two failures in this unchanged file: PowerShell returned its fatal-host message, and a stale-lock command exceeded its existing 15-second deadline. The logs do not establish the crash cause; this PR corrects the runtime boundary rather than claiming a diagnosed Bun bug.

Linked Issue

N/A — maintainer test-runtime work.

Visual Proof

N/A — test runtime routing only.

Testing

  • Existing runtime boundary and sequencer tests: 8 cases passed locally on macOS.
  • Independent source review: the SSH test and production commands match the failed CI source byte for byte; all original cases remain.
  • Full Linux ARM PR CI passed, including the real PowerShell contracts under actual Node.

Observed before/after case outcomes (including the subsequent passing Bun run):

SSH cases on Linux ARM Bun: failing renderer CI Bun: passing clock CI Node: routed PR CI
Passed 23 25 25
Failed 2 0 0
Existing platform skips 4 4 4

Before: run 37626233012, source f53c7b1, unchanged SSH test source. No speed or historical 2× claim applies to this correction. The subsequent clock run passed these same interpreter cases under Bun, so the initial failures are intermittent and do not demonstrate a Bun cause. The routing change is justified by production-runtime fidelity; it is not evidence that the underlying intermittent failure is fixed. Native interpreter execution stays in isolated CI.

Review

Independent review checked the one-path change and existing runtime registry. All 30 CI contexts passed or completed as applicable. CodeRabbit reviewed the exact head with zero actionable comments and a passing documentation check. The full suite retains all 11,678 physical files, 112,609 passing cases, one existing expected failure and 1,052 existing skips, with zero errors or omissions.

Agent skill upstream boundary

  • Not applicable; no upstream skill material copied.

Notes

All physical files and cases still run. Real interpreter behavior, platform skips, SSH execution boundaries, and folder workspace behavior are retained.

Checklist

  • Small and focused
  • Explained behavior, mechanism, and reason
  • Visual proof N/A with reason
  • Self-reviewed and independently reviewed
  • Cross-platform and SSH boundaries considered
  • Final required CI passed; local boundary tests, changed-code checks, and normal commit hooks passed. Build and UI validation N/A.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bbc2db59-4576-4d0a-ac2f-539766ef3bc2
📥 Commits

Reviewing files that changed from the base of the PR and between 0d82899 and af1dd1f.

📒 Files selected for processing (1)
  • config/scripts/vitest-node-runtime-files.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

The NODE_RUNTIME_INCLUDE test-file list now includes src/main/ssh/ssh-remote-commands.test.ts.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to af1dd

No actionable issue with the test routing is established. The pending Linux ARM run remains a normal validation check, not evidence of a merge-blocking defect.

🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description covers the required sections and gives specific change, rationale, and testing details. However, it says Linux ARM PR CI passed, while the PR objectives say that CI is still unchecked … Reconcile the Linux ARM CI status. If the run passed, update the PR objectives to reflect that; if it is still pending, correct the Testing section and its reported results.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: routing real SSH command contract tests to Node.
Full details: Description check

Explanation

The description covers the required sections and gives specific change, rationale, and testing details. However, it says Linux ARM PR CI passed, while the PR objectives say that CI is still unchecked and the results are pending.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 40d35fb into main Oct 7, 2026
30 checks passed
@nwparker nwparker changed the title test: keep real SSH command contracts on Node [CI] test: keep real SSH command contracts on Node Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant