fix: better handle concurrent builds - #3301
Open
dsanders11 wants to merge 8 commits into
Open
Conversation
dsanders11
force-pushed
the
fix/concurrent-rebuilds
branch
2 times, most recently
from
April 13, 2026 00:23
49c5a3c to
dad0d06
Compare
dsanders11
marked this pull request as ready for review
April 13, 2026 01:23
Signed-off-by: David Sanders <dsanders11@ucsbalum.com>
Assisted-by: Claude Opus 4.6 Signed-off-by: David Sanders <dsanders11@ucsbalum.com>
Assisted-by: Claude Opus 4.6 Signed-off-by: David Sanders <dsanders11@ucsbalum.com>
Checklist
npm install && npm run lint && npm testpassesDescription of change
Fixes #3165, which unfortunately was not actually fixed by #3170. I'm not sure #3170 had any effect on the issue, as my original changes in #2846 which were extended to all platforms in #3710 were targeting a specific issue on Windows, and did not aim to fix (or know of) the issue in #3165.
The second commit on this branch adds a test which repros the issue being reported in #3165, namely that header files can be seen as partially written when multiple builds are happening concurrently. A failing test run before the other commits on this branch can be seen here.
The remainder of the commits refactor
copyDirectoryto fix the issue, fix another concurrent build issue I came across during testing, and adds more test coverage. This refactor also allows for droppingexponential-backoffas a dependency.