Repository navigation
fix(daemon): a change saved while a lane's dev server starts reaches it (#631) - #634
Merged
Merged
Conversation
…it (#631) A lane's copy took the worktree's changes only once a service running from it was main, which it becomes when it is ready. A dev server whose first build failed on a half-made change never got the save that completed it and stayed `starting` until its health timeout, the services after it waiting. Now a service that is still starting from the tree counts too (`from_tree`), here and in a lane on a node; the notice about changed `prepare` inputs (#630) uses the same test. Bug-Class: race-on-start Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
What and why
Closes #631.
A lane's copy takes the worktree's changes only while a service runs from
it (
copy_changed). That test looked atmain, which a service becomesonce it is ready. A dev server whose first build failed on a half-made
change is never ready, so the save that completed the change never reached
its copy: it stayed
startinguntil its health timeout (300 s), and theservices after it waited. The pool's telemetry showed it: six
remote_lane_syncedon the node between 11:30 and 11:32Z, nocopy_synced(why: change) until the restart made the service healthy.Now a service that is still starting from the tree (no artifact) counts
too (
from_tree), for a lane here and on a node. The notice about changedprepareinputs (#630) had the same gap and uses the same test. The othermain.is_some()checks mean "serves requests" and stay.Not in this pull request: that a failed first build shows as
failedinstead of
startingfor the whole health timeout, and that serviceswaiting for it say so (follow-up issue).
Verified
a_dev_server_that_is_starting_runs_from_the_copy: red firstat "did not take the worktree's changes", green with the fix; a built
service that is starting does not count.
saved while it is
starting): with 0.53.0 the copy kept the old content8 s later; with this build it has the new one.
cargo fmt,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace(918 passed).Bug-Class: race-on-start
🤖 Generated with Claude Code