altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

release: Build (win32-x64) failed with EISDIR on @babel/traverse while the other targets built (v0.12.10 run, re-run without changes)

Open sahrizvi opened this issue 4 weeks ago • 1 comments

What happened

The v0.12.10 release workflow run https://github.com/AltimateAI/altimate-code/actions/runs/42287757769 failed in Build (win32-x64) while the other seven platform builds and the Test job passed:

building @altimateai/altimate-code-windows-x64
error: EISDIR reading file: "/home/runner/work/altimate-code/altimate-code/node_modules/.bun/@[email protected]+e33be1330ecc2599/node_modules/@babel/traverse"
    at /home/runner/work/altimate-code/altimate-code/node_modules/.bun/@[email protected]+e33be1330ecc2599/node_modules/@babel/traverse
Bun v1.3.14 (Linux x64)

Build (win32-x64-baseline) in the same run, on the same commit and lockfile, built successfully, and Build (win32-x64) passed in the v0.12.9 release run. Nothing in v0.12.10 touches Babel or the build script. The failed job was re-run without a code change; this issue is the paper trail for that re-run.

What to look at

  • The build step runs several bun add installs (@opentui/core, @parcel/watcher, @altimateai/altimate-core) right before bun run packages/opencode/script/build.ts --target-index=6; a package-layout change under node_modules/.bun while the bundler resolves @babel/traverse would explain reading a directory as a file.
  • Whether the bundler resolves @babel/traverse to the package directory because a package.json main/exports entry is missing in that hoisted copy, and whether pinning or pre-installing it removes the race.
  • Add a retry of the build step itself, or make the matrix job re-runnable on its own, so a single flaky target does not block publish for the whole release.

sahrizvi avatar Nov 06 '26 20:11 sahrizvi

Hit again on the v0.12.12 release: Build (linux-x64-baseline) in https://github.com/AltimateAI/altimate-code/actions/runs/44896248023 failed with EISDIR reading .../@babel/traverse. Rerunning the failed jobs with no code change.

sahrizvi avatar Nov 21 '26 10:11 sahrizvi