Skip to content

fleet runner: vitest summary write hits EACCES on $GITHUB_STEP_SUMMARY (split from #13337) #13537

Closed

Description

@dezren39

Wart

Split out of #13337 (recorded there as the secondary wart, same runs):

When the web unit tests run through the fleet-command runner (fleet-build image, runuser -u vscode), vitest's GitHub Actions reporter tries to write its run summary to $GITHUB_STEP_SUMMARY and fails:

Could not write summary to `options.summary.outputPath` Error: EACCES: permission denied, open '/__w/_temp/_runner_file_commands/step_summary_...'

The error is logged after the test run; it does not fail the job by itself (the #13337 SIGSEGV was the failure). Fix shapes: run vitest as a user that can write the runner temp dir, pre-create/chown the step-summary file in the executor prep, or disable the summary reporter in that environment.

Refs

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T17:51:09Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane AU16 (sandbox fix lane, coordinated by Archer) claiming this issue.

    Premise + ownership check: issue open, no labels, comments count-confirmed at 1 (bot Kaneo link only), no prior claim, no user/* label, no design/ratification gate, no flag hold. Parent #13337 is claimed by Lane AAB for the SIGSEGV/Bun-pin half only (PR #13538); this summary-write wart was split out as separate work and is not in AAB's scope.

    Plan: find where the fleet-command runner drops privileges to the unprivileged user (executor prep / workflow in the fleet machinery), and make the step-summary target writable for that user — pre-create/chown $GITHUB_STEP_SUMMARY (and the file-commands dir if needed) in executor prep, or equivalently disable/redirect the summary write in that environment — choosing the smallest shape that keeps native GitHub Actions runs unchanged. Verify by a fleet dispatch of the web unit tests (the #13337 repro route) showing no EACCES summary error, plus a re-read of the failing-run evidence quoted in #13337.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Landed and verified. Closing.

    Fix: dezren39/fleet PR #109, merged as c4e83d2cae35468f41ad3c55f0d5331cc1b44d43.

    Root cause: the dispatch surfaces run every step as root in the fleet-build container, and the runner creates each step's file-command files ($GITHUB_STEP_SUMMARY, $GITHUB_ENV, $GITHUB_OUTPUT, $GITHUB_PATH, $GITHUB_STATE under /__w/_temp/_runner_file_commands/) owned by the host runner user — so a command that drops privileges (runuser -u vscode, the documented pattern) cannot append to them. The files are per-step, so executor prep (its own step) cannot fix them in advance.

    Change: new .github/scripts/fleet-file-commands.sh makes the current step's file-command files writable by any user in the container (parent directory writable instead when a file does not exist yet, so the process can create it); best-effort, never fails the step. It runs at the top of the step that executes the command on all three dispatch surfaces: the fleet-command composite action's Run command step, fleet-run's two Run command steps, and fleet-dispatch-test's Execute job commands step. Sync-forks run 45237401344 at the merge commit succeeded, so the mirrors (developing-today/fleet, developing-today-forks/fleet) carry it too.

    Verification (fleet dispatch, dezren39/fleet surface):

    1. Mechanism probe — run 45237550278 at the merge commit, conclusion success: the command ls -l "$GITHUB_STEP_SUMMARY" shows the file -rw-rw-rw- after the fix ran in the step, and the runuser -u vscode append printed SUMMARY_WRITE_OK.
    2. The fleet-build runner: vitest worker SIGSEGV on pkgs/id/web screen-codec.test.ts (pre-existing on main) #13337 repro verbatim — run 45239191220: vitest ran end to end and completed its reporting phase; the log contains zero Could not write summary lines and no EACCES (the pre-fix runs 45186141844 / 45184839566 quoted in fleet-build runner: vitest worker SIGSEGV on pkgs/id/web screen-codec.test.ts (pre-existing on main) #13337 show the error in the same sequence). The run still fails on the screen-codec SIGSEGV — that is fleet-build runner: vitest worker SIGSEGV on pkgs/id/web screen-codec.test.ts (pre-existing on main) #13337's own half (Bun 1.4.2 in the image; Lane AAB's pin is PR fix(nix): pin Bun to the official 1.4.5 build in the toolchain shells (#13337) #13538, still open) and is untouched by this fix.
    3. Pre-merge: all three edited YAML files parse; the helper is bash -n clean. A pre-fix probe dispatch was attempted but its checkout step died on a GitHub API rate limit before the command ran, so the baseline rests on the quoted fleet-build runner: vitest worker SIGSEGV on pkgs/id/web screen-codec.test.ts (pre-existing on main) #13337 run logs.

    One process note: the contents API served a stale copy of fleet-command.yml during premise work (an older jobs-matrix shape); the on-disk clone and the run logs agree that the live surface is the composite action, which is where the fix went.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions