fix(phase4): use bundled node for Windows version probe - #83
Conversation
The Windows acceptance lane installs and runs 1Helm successfully, but its version assertion called bare node even though the Linux host contract keeps Node at /opt/1helm/node-current/bin/node. Use that stable bundled path and lock it into the Phase 4 regression contract. Co-Authored-By: Claude <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe Windows platform acceptance script now uses 1Helm’s bundled Node binary for WSL version checks. The Phase 4 acceptance test verifies that the bundled path appears in the validation script. ChangesWindows validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/phase4-platform-acceptance.mjs`:
- Line 215: Update the assertion in the phase 4 platform acceptance test to
match the actual version-probe command, including execution of
/opt/1helm/node-current/bin/node with the -p argument, rather than only matching
the path text. Ensure the test cannot pass when the probe uses bare node, either
by asserting the complete command or explicitly rejecting the bare-node form.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 44d0a45c-60f1-4bf1-80bd-e3d6e9f9e021
📒 Files selected for processing (2)
ops/platform-acceptance/windows.ps1test/phase4-platform-acceptance.mjs
| assert.match(windows, /apply-linux-release\.sh/); | ||
| assert.match(windows, /function Assert-DistroVersion/); | ||
| assert.equal((windows.match(/Assert-DistroVersion \$(?:Version|PreviousVersion)/g) || []).length, 4); | ||
| assert.match(windows, /\/opt\/1helm\/node-current\/bin\/node/); |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Match the version-probe command, not only the path text.
Line 215 can match the path in ops/platform-acceptance/windows.ps1 Lines 55-57, even if the executable on Line 60 reverts to bare node. Match test "$(/opt/1helm/node-current/bin/node -p or also assert that the version probe does not use bare node.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@test/phase4-platform-acceptance.mjs` at line 215, Update the assertion in the
phase 4 platform acceptance test to match the actual version-probe command,
including execution of /opt/1helm/node-current/bin/node with the -p argument,
rather than only matching the path text. Ensure the test cannot pass when the
probe uses bare node, either by asserting the complete command or explicitly
rejecting the bare-node form.
Result
Fixes the sole remaining Windows candidate-dress-rehearsal failure. The exact candidate installed successfully and reached health, but
Assert-DistroVersioncalled barenode; the host installer intentionally exposes Node only through/opt/1helm/node-current/bin/node.Change
Evidence
30978297630logged1Helm v0.0.41 is runningbefore failing only withnode: command not foundnpm run typecheckpassednpm run buildpassednpm testpassed: 177 tests, 175 passed, 2 skipped, 0 failedgit diff --checkpassedSummary by CodeRabbit