Skip to content

Fix E2E runtime boot on Windows (real next binary) - #14

Merged
trac41799 merged 1 commit into
mainfrom
hardening/production
Sep 30, 2026
Merged

trac41799 merged 1 commit into
mainfrom
hardening/production

Conversation

@trac41799

Copy link
Copy Markdown
Owner

Fixes the last failing local gate: the E2E runtime check could never boot a Next.js dev server on Windows.

Root cause (proven, not guessed)

The check ran node node_modules/.bin/next dev, but on Windows .bin/next is a POSIX shell script. Node died instantly with SyntaxError: missing ) after argument list on its basedir=$(...) line — the "60s boot timeout" was 60s of polling a dead server. The captured server log (added in the previous round) is what made this visible.

Fix

  • verification::resolve_next_bin prefers the real JS entry node_modules/next/dist/bin/next on every platform, falling back to the .bin shim. Test: test_resolve_next_bin_prefers_the_real_js_entry.
  • Direct proof (not just a unit test): booted the preserved from-empty POC project's dev server with the fixed path — Ready in 11.7s, /api/health → HTTP 200 {"status":"ok",...}. The 60s window is plenty once the right binary runs.

Gates

Rust 219 lib + 42 integration (2 real-agent tests ignored), Web 341, tsc/lint clean.

What this unblocks

The from-empty path previously stopped at verification_failed only on this check (tsc/build/artifact/delivery all pass). The next from-empty acceptance run should reach succeeded — that run is the final local confirmation.

@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
source-forge Ready Ready Preview Sep 30, 2026 3:39pm UTC

@trac41799
trac41799 merged commit fd6b018 into main Sep 30, 2026
8 checks passed
The E2E runtime check ran node against node_modules/.bin/next, but that
path is a POSIX shell script on Windows, so Node died instantly with a
SyntaxError on its basedir line and the check burned its whole 60s boot
window polling a dead server. resolve_next_bin prefers
node_modules/next/dist/bin/next on every platform. Proven directly: the
preserved POC project's dev server reports Ready in 11.7s and /api/health
returns 200. Test: test_resolve_next_bin_prefers_the_real_js_entry.
Gates: Rust 219 + 42, Web 341, tsc/lint clean.

This branch was successfully deployed

1 active deployment
Preview — 38e08ac8 Deployed Sep 30, 2026 by vercel[bot]
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