GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — The e2e dev server can crash on a V8 abort under Node 26, failing every test after it · Issue #798 · jwh3times/LeaseBook

The e2e dev server can crash on a V8 abort under Node 26, failing every test after it #798

New issue
Copy link
New issue
Copy link
Closed
#799
Closed
The e2e dev server can crash on a V8 abort under Node 26, failing every test after it#798
#799
Copy link
Labels
bugSomething isn't working

Description

@jwh3times
jwh3times
opened on Nov 18, 2026
Issue body actions

What happened

The E2E (Playwright + a11y) job failed on PR #796 because the Vite dev server crashed partway
through the run. The PR changed only .claude/settings.json and CHANGELOG.md. The server is
Playwright's webServer, npm run dev on :5373 (web/playwright.config.ts). Its Node process
aborted inside V8:

[WebServer] abort: Lazy deopt after a fast API call with return value is unsupported
[WebServer] ==== JS stack trace =========================================

The JS stack in the crash dump runs through Buffer internals (byteLength, concat, compare,
allocUnsafeSlow, copyBytesFrom) beneath an HTTP response's onResponseFinish on a socket. From
that point every test got net::ERR_CONNECTION_REFUSED at http://localhost:5373/login, and the run
ended with 25 failed, 2 flaky, 9 did not run and 116 passed (7.8m).

  • Run: https://github.com/jwh3times/LeaseBook/actions/runs/44260108109, attempt 1, job 134651089867
  • Node: actions/setup-node with node-version: '26', which resolved to 26.13.1 (linux-x64)

What we know

  • It's intermittent on that version, not a regression in a new release. The re-run of the same
    job on the same commit, also on Node 26.13.1, passed. So did main's E2E on ddd94914 the same
    day.
  • It's a V8 abort, not a JS exception. The process dies without a catchable error, so the
    first sign is a wall of connection-refused failures, not a failing assertion. Reading the
    [WebServer] lines above the first failure is what identifies it.
  • I found no upstream report of this exact message. A web search for the abort text turned up
    nothing for Node or V8 specifically. Confirming that is part of this issue.

Why it matters

The job is a required check, and the ruleset needs every required check green. When the crash hits,
the PR can't merge until someone reads the log and re-runs the job. It also costs a full E2E
re-run of roughly 8 minutes. A reader who doesn't look for the [WebServer] abort: line can
mistake the failure for a product regression.

Expected behavior

The dev server stays up for the whole suite, or a crash is reported as a server crash and not as
dozens of unrelated test failures.

Possible directions (not decided)

  • Search the Node and V8 trackers for the abort text, and report it upstream with the stack if it's
    new.
  • Pin CI's node-version to an exact release once a known-good one is identified. The four
    node-version: '26' entries in .github/workflows/ci.yml float today, so a fix or a regression
    arrives without a commit.
  • Serve the e2e SPA from the production build (vite preview or the host) instead of the dev
    server, if the crash turns out to be specific to the dev server's request path.
  • Make a server crash fail fast with a clear message rather than letting the rest of the suite run
    into connection-refused errors.

Record each further occurrence as a comment (run link, Node version, the first [WebServer] abort
line), so the frequency is known before choosing among these.

Activity

  1. jwh3times
    added
    bugSomething isn't working
    needs-triageMaintainer needs to evaluate this issue
    on Nov 18, 2026
  2. jwh3times commented on Nov 18, 2026

    @jwh3times
    jwh3times
    on Nov 18, 2026
    OwnerAuthor
    More actions

    This was generated by AI during triage.

    Triage notes

    How often it happens. I read every failed E2E job, across every attempt, in the CI runs since
    2026-10-31: 200 runs, 16 of them failed or re-run. The V8 abort appears once, on this PR's
    first attempt (run 44260108109), on Node 26.13.1, with 74 ERR_CONNECTION_REFUSED lines. The other
    12 failed E2E jobs have no abort and no connection-refused errors, so they are unrelated failures.
    Most green runs since 2026-11-12 used Node 26.13.1 too, so the crash is rare and not a regression in
    that version.

    Decision. At one occurrence, pinning Node or moving e2e off the dev server would be a
    speculative fix. The dev server is also load-bearing: ADR-055's e2e browser coverage reads the Vite
    dev server's modules through its source maps, so serving e2e from vite preview or the host would
    need an ADR change. This brief covers only what's worth doing now either way. It makes the crash
    identifiable when it happens, and checks upstream. The options in the issue body stay open, to be
    revisited if the comment log shows the crash recurring.

    Agent Brief

    Category: bug
    Summary: When the e2e SPA dev server dies mid-run, CI should say so plainly, and the V8 abort
    should be checked against upstream.

    Current behavior:
    The Playwright e2e suite starts the SPA with the Vite dev server (npm run dev, port 5373)
    through Playwright's webServer config. If that Node process aborts mid-run, as it did once with
    abort: Lazy deopt after a fast API call with return value is unsupported, Playwright neither
    notices nor stops. Every remaining test fails with net::ERR_CONNECTION_REFUSED. The job ends with
    dozens of failures (25 failed, 9 did not run here) and nothing in the summary, annotations or job
    conclusion that names a server crash. The only clue is a [WebServer] abort: line, followed by a
    V8 crash dump, buried in a log thousands of lines long. A reader can easily take it for a product
    regression.

    Desired behavior:

    1. The crash is named. When an e2e CI job's Playwright run finishes and its output shows the
      SPA dev server died, the job emits a GitHub Actions ::error annotation. It names the cause
      ("the e2e dev server crashed mid-run; the failures after it are connection-refused fallout,
      re-run the job") and quotes the first abort or exit line. Two things count as dying:

      • a [WebServer] abort: line, or V8's ==== JS stack trace crash header from the web server;
      • the server process exiting before the suite completes.

      The annotation appears on the run summary page without opening the log. This applies to every
      CI job that starts the SPA dev server through Playwright's webServer: today that is
      E2E (Playwright + a11y) and E2E (Stripe stand-in).

    2. Pass and fail are unchanged. A job with a crashed server still fails. A green run emits no
      annotation and looks the same as today. The annotation is added information, never a reason to
      pass.

    3. Upstream is checked. The Node.js and V8 issue trackers are searched for the abort text. A
      comment on this issue links any existing report, or a new one, filed with the stack from
      run 44260108109. If neither tracker has it and filing isn't appropriate, the comment says so.

    Key interfaces:

    • The e2e jobs' Playwright step in the CI workflow, and the Playwright output the job keeps. The
      detection reads the run's output after the run. It must not change how Playwright starts or
      reuses the web server.
    • The [WebServer] prefix Playwright puts on a webServer process's stdout and stderr: the
      marker that tells a server line from a test line.
    • If the detection is a script, it lives with the repository's other scripts/*.mjs checks and
      follows their conventions, including the node:test suite those scripts carry and the listing
      of script tests that CI checks.

    Acceptance criteria:

    • On a log containing a [WebServer] abort: line (the job log of run 44260108109, attempt 1,
      or a trimmed fixture of it), the detection emits exactly one ::error annotation, quoting the
      abort line.
    • On a log from a green e2e run, and on one from an ordinary test failure with no server crash,
      the detection emits nothing.
    • Proven red: the detection is shown to fire on a crash it wasn't written against. Either kill
      the dev server mid-run in a local or CI e2e run and show the annotation appears, or feed a
      log whose server died a different way (an exit, not an abort). Per
      docs/agents/verification.md, a check never seen firing is not trusted.
    • Both e2e CI jobs that start the dev server run the detection. A job whose server is healthy
      keeps its current conclusion and output.
    • A comment on this issue records the upstream search: links to an existing Node or V8 report,
      a newly filed one, or a statement that none exists and why none was filed.
    • The fast checks in docs/agents/ship.md pass, including the script tests and their listing.

    Out of scope:

    • Pinning node-version in CI, or changing the Node version anywhere.
    • Serving e2e from vite preview, the production build or the host. This conflicts with ADR-055's
      dev-server coverage and would need an ADR.
    • Retrying, restarting or auto-re-running the dev server, Playwright or the job. Making a crash
      pass would hide it.
    • Stopping the suite early when the server dies. That's a possible follow-up once detection exists.
    • Local runs (npm run e2e, e2e:fresh, e2e:coverage). CI is where the ruleset gates.
    • Other e2e or CI flakiness without this signature.
  3. jwh3times
    added
    ready-for-agentFully specified, ready for an AFK agent
    and removed
    needs-triageMaintainer needs to evaluate this issue
    on Nov 18, 2026
  4. jwh3times commented on Nov 18, 2026

    @jwh3times
    jwh3times
    on Nov 18, 2026
    OwnerAuthor
    More actions

    Upstream search

    This is a known Node.js bug, fixed on Node's main branch but not yet in a 26.x release as of
    26.13.1. I filed no new upstream report.

    • Report: nodejs/node#66870, "Abort 'Lazy
      deopt after a fast API call with return value is unsupported' in Buffer.byteLength called from
      maybePrepareFinalChunk / res.end(string)". Closed as completed on 2026-11-01. It describes the
      same workload: a Vite dev server on Linux CI under sustained Playwright traffic, aborting, then
      net::ERR_CONNECTION_REFUSED for everything after it.
    • Fix: nodejs/node#67136, "buffer: limit UTF-8
      fast calls to safe one-byte strings", merged to main on 2026-11-01 (bf246cf). An alternative,
      #67134, was closed unmerged.
    • Not in 26.13.1. That's the version our crash ran on. It was a security-only release
      (2026-11-11), and its notes don't mention #67136 or byteLength. So pinning to an existing 26.x
      release can't fix this, and CI's floating node-version: '26' picks up the fix automatically once
      a 26.x release carries it.

    Our crash matches the upstream stack frame for frame. The frames, from V8's dump in run
    44260108109:

    • Buffer.byteLength (node:buffer:926)
    • maybePrepareFinalChunk (node:_http_outgoing:1174)
    • ServerResponse.end (node:_http_outgoing:1302)
    • Vite's send
    • viteTransformMiddleware

    The one difference is the string's size: 95,173 characters here, against 43.6 million in the
    upstream report. So a very large response isn't required to trigger it.

    A workaround exists, but this issue doesn't take it. Several projects start the dev server with
    the V8 flag --no-turbo-fast-api-calls. The flag isn't allowed in NODE_OPTIONS, so it has to go
    on the node command line. Changing how the dev server starts is outside this issue's scope; it
    belongs to a follow-up if the crash recurs before a fixed 26.x release ships.

  5. jwh3times
    closed this as completedin #799on Nov 19, 2026
  6. jwh3times
    removed
    ready-for-agentFully specified, ready for an AFK agent
    on Nov 19, 2026
  7. jwh3times commented on Nov 19, 2026

    @jwh3times
    jwh3times
    on Nov 19, 2026
    OwnerAuthor
    More actions

    Outcome

    Shipped in #799, released as v0.39.4. Every workflow Playwright run now goes through
    scripts/e2e-server-crash.mjs. When a web server dies mid-run, the job gets one
    E2E web server crashed error annotation that quotes the first sign. The run's output and exit
    code are unchanged. A guard in the wrapper's tests fails any workflow Playwright run that skips it.
    docs/agents/merging.md ("Watching CI") says how to read this failure.

    What changed about the problem since it was filed:

    • Upstream: it's a known Node bug (Abort "Lazy deopt after a fast API call with return value is unsupported" in Buffer.byteLength called from maybePrepareFinalChunk / res.end(string) nodejs/node#66870), fixed on Node's main branch but not in
      any 26.x release as of 26.13.1. Pinning an existing 26.x release can't help. CI's floating
      node-version: '26' picks up the fix once a release carries it.
    • Not tied to huge responses: our crash came from a 95,173-character response, not the
      43.6-million-character one in the upstream report.
    • If it recurs before a fixed 26.x ships, the next step is the workaround several projects
      use: start the dev server with the V8 flag --no-turbo-fast-api-calls. It has to go on the node
      command line, because NODE_OPTIONS doesn't accept it. That would be a new issue; this one
      stays closed.

    Keep recording occurrences as comments here (run link, Node version, the annotation's first sign),
    so the frequency stays visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.