Skip to content

Pool lane: dev server doesn't rebuild a change saved during its failed first build; service stays 'starting' for the whole health timeout #631

Done

Description

@7schmiede

What happened

devstack 0.53.0, Windows host. A worktree lane started with devstack up --profile minimal and ran on a Linux pool node (natively watched Angular dev server ng serve, a .NET API, a SQL container).

  1. Right after devstack up, while the lane was still starting, I edited TypeScript files in the worktree. One file referenced an export that I added to a second file a minute later.
  2. The dev server's first build ran on the in-between state and failed (Application bundle generation failed … 11:29:33Z, two type errors pointing at the missing export).
  3. At about 11:31Z I saved the second file with the export. No further build followed: the dev server log still ended with the two errors and Watch mode enabled. Watching for file changes..., and devstack status kept showing the SPA service as starting.
  4. The API service stayed stopped meanwhile. devstack up ended after 300 s with <spa-service> failed: not healthy after 300 s: https://127.0.0.1:<port>/: io: Connection refused; only then did the API build and start.
  5. devstack restart <spa-service> fixed it at once: the next build compiled the current files (Application bundle generation complete … 11:34:32Z) and the service went healthy.

The same kind of edit after the service was healthy (later in the session) was rebuilt normally.

Expected

A file saved while the dev server is still in its first (failed) build is synced to the node and rebuilt, as later in the lane's life. If a service cannot become healthy because its first build failed, devstack status says so (failed with the build error) instead of starting for the whole health timeout, and services that wait for it don't sit stopped without a hint.

Related

#507 (fixed in 0.45.0) had the same symptom (stale build until restart) but a different cause: a file in a newly created nested directory. Here no directory was created, the edits were to existing files.

Unclear from my side

Whether the change at ~11:31Z reached the node's copy (and the watcher ignored it), or was never synced because the lane was still in its start phase. The pool's telemetry for that lane should show it (remote_lane_synced / copy_synced around 11:31Z on 2026-11-26).

🤖 Generated with Claude Code

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions