You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pool lane: natively watched dev server keeps building stale file content until restart #507
devstack 0.44.0, Windows host. A worktree lane ran on a pool node (RUNS ON = a Linux pool node, profile with a native Angular dev server ng serve plus a .NET API). Lane status: 2/11 running, node_modules linked.
I edited two TypeScript files in the worktree on the Windows host. The dev server's log showed a failed build with type errors from the first version of those edits (Application bundle generation failed).
I fixed both files in the worktree. For about four minutes nothing changed afterwards: devstack status reported the SPA service as healthy with no not yet active line, and devstack logs <spa-service> still ended with the old errors, pointing at the old line content (source: () => … at a line that no longer contained it). No new build output appeared, even after touching one of the files again.
devstack restart <spa-service> fixed it immediately: the next build compiled the current file content and succeeded.
In the same lane, the .NET service did pick up a change in the same window: a new migration showed up as a held candidate, and promote ran it.
Expected
Like a lane running locally: a saved file in the worktree reaches the copy on the pool node, and the dev server rebuilds it. If the change can't be synced, devstack status should say so (for example a not yet active: syncing line) instead of reporting healthy with stale content.
Unclear from my side
I can't tell whether the file never reached the node's copy or whether it arrived and the dev server's file watcher missed it. The .NET service may be fine only because devstack builds its candidate itself, while the Angular service relies on its own watcher.
Workaround
devstack restart <service> after editing files of a natively watched service on a pool lane.
From the pool's telemetry (0.44.0, lane on a Linux node)
Every line of the lane, in order (UTC). The answer to "did the file reach the node's copy, or did the watcher miss it": it reached the copy, and the dev server's watcher saw it.
Each remote_lane_synced (worktree → the node's mirror) is followed about 0.15 s later by a copy_synced (mirror → the lane's copy the dev server runs from) with the same number of files, in about 50 ms. No sync failed, no copy_not_synced.
Where a rebuild follows a copy, it starts 0.15–0.5 s after the copy is done.
copy done
rebuild starts
took
result
16:17:46.206
16:17:46.675
6.9 s
failed (the first version of the edit)
16:18:12.000
16:18:12.291
0.9 s
failed
16:18:34.815 (2 files: the fix)
16:18:35.105
6.5 s
failed, the old errors
16:18:37.293 (1 file)
16:18:41.509 (queued)
0.9 s
failed, the old errors
16:19:30.219 (1 file)
none
restart 16:22:51
healthy, current content
So the rebuild at 16:18:35 began after both corrected files were complete in the copy, and still reported the errors of the content before: the dev server rebuilt from what it held, not from the disk. The telemetry has no file names (by design), so the 16:19:30 file may not be one the dev server watches.
A candidate on devstack's side (not proven)
The lane's copy is written in place (File::create, truncate and write) and its modification time is then set to the time the sync started, before the write (crates/devstack-build/src/snapshot.rs, copy_hashed). A watcher or compiler cache that decides by modification time may take such a file as unchanged. Locally (Windows) the same code runs, with different file system events.
To reproduce
A pool lane with a small Angular project on a Linux node; change two files a few seconds apart, as here; then compare the copy's content and modification time (stat) inside the lane's container with what the dev server reports. Then try the copy written atomically (temporary file, rename) with the modification time of the write.
Worth considering either way: devstack notices a copy of watched files that no rebuild follows (or a rebuild that reports what it reported before) and says so in devstack status, instead of healthy.
Correction to the comment above: "the dev server rebuilt from what it held" was wrong. The session's own record shows that the rebuilds at 16:18:35 and 16:18:41 were right; the file with those errors was fixed only at 16:19:27, and that change (copied at 16:19:30) is the one no rebuild followed.
The cause, reproduced on the node: the file was new, in a new directory inside a new directory, which the lane's copy made in one go; Angular's watcher (@parcel/watcher) never watched the inner one. Fixed in #508, released in 0.45.0.
Activity
7schmiede commentedon Nov 10, 2026
From the pool's telemetry (0.44.0, lane on a Linux node)
Every line of the lane, in order (UTC). The answer to "did the file reach the node's copy, or did the watcher miss it": it reached the copy, and the dev server's watcher saw it.
remote_lane_synced(worktree → the node's mirror) is followed about 0.15 s later by acopy_synced(mirror → the lane's copy the dev server runs from) with the same number of files, in about 50 ms. No sync failed, nocopy_not_synced.So the rebuild at 16:18:35 began after both corrected files were complete in the copy, and still reported the errors of the content before: the dev server rebuilt from what it held, not from the disk. The telemetry has no file names (by design), so the 16:19:30 file may not be one the dev server watches.
A candidate on devstack's side (not proven)
The lane's copy is written in place (
File::create, truncate and write) and its modification time is then set to the time the sync started, before the write (crates/devstack-build/src/snapshot.rs,copy_hashed). A watcher or compiler cache that decides by modification time may take such a file as unchanged. Locally (Windows) the same code runs, with different file system events.To reproduce
A pool lane with a small Angular project on a Linux node; change two files a few seconds apart, as here; then compare the copy's content and modification time (
stat) inside the lane's container with what the dev server reports. Then try the copy written atomically (temporary file, rename) with the modification time of the write.Worth considering either way: devstack notices a copy of watched files that no rebuild follows (or a rebuild that reports what it reported before) and says so in
devstack status, instead ofhealthy.🤖 Generated with Claude Code
7schmiede commentedon Nov 10, 2026
Correction to the comment above: "the dev server rebuilt from what it held" was wrong. The session's own record shows that the rebuilds at 16:18:35 and 16:18:41 were right; the file with those errors was fixed only at 16:19:27, and that change (copied at 16:19:30) is the one no rebuild followed.
The cause, reproduced on the node: the file was new, in a new directory inside a new directory, which the lane's copy made in one go; Angular's watcher (
@parcel/watcher) never watched the inner one. Fixed in #508, released in 0.45.0.🤖 Generated with Claude Code