Repository navigation
fork(#48): watch the dev-rebuild signal file by its real path (macOS, slice 13) - #76
Merged
nachumi-a2zoperations merged 1 commit intoNov 17, 2026
Conversation
… slice 13)
The process-host dev-rebuild plugin signals a new source file by rewriting a
file in a temp directory that it hands to rolldown's addWatchFile. On macOS
the temp directory is reached through a symlink (/var/folders, or /tmp under
the test runner), and rolldown's watcher never reports a file watched by a
symlinked path: no rebuild follows, and creating a process-host source file
does not reach a running dev build. Resolve the signal directory to its real
path.
process-host-dev-rebuild.test.ts: 4/4 failed on macOS before ("Timed out
waiting for ERROR"), 4/4 pass after; Linux is unaffected (no symlink). The
plugin is the same on upstream main.
Refs #48
Signed-off-by: Nachumi Eliyahu <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #48 (slice 13). One line of build-plugin code, no test change.
Cause
config/build-plugins/process-host-dev-rebuild.tssignals "a process-host source file was created" by rewriting a file in amkdtempSync(tmpdir())directory and handing it to rolldown'saddWatchFile./var/folders/…normally,/tmp/<id>under the test runner. Both point into/private.addWatchFilefile, edit it, count rebuilds):/tmp0,/var/folders/…/T0,/private/tmp1.process-host-dev-rebuild.test.tstimes out ("Timed out waiting for ERROR"). Linux has no symlink there and passes.Fix
signalDirectory = realpathSync(mkdtempSync(...)). Everything else the plugin watches already arrives as real paths: resolving the root as well changed nothing (tried, dropped).Evidence (MacBook, Node 24.22.1, rolldown 1.2.14)
process-host-dev-rebuild.test.ts: 4/4 failed before; 4/4 pass after, two runs. With only this line reverted, 2 fail.check:changed --base=origin/blowzer/fork-only: 12/12.Where #48 stands (re-measured today at fork-only
a10cd4e6)--maxWorkers=1(cross-version checkout lock contention, a 120 s and a 30 s timeout, the known-flaky browser-extension test). The fifth is this file.The plugin is identical on upstream
main, so the same macOS gap exists upstream. Filing it there is the owner's call.