Repository navigation
fix: a service without watch builds from the tree after a daemon restart (#562) - #564
Merged
Merged
Conversation
…art (#562) The first start after a daemon start (down/up, lane stop and up again) ran the build last promoted to main, and only a service with `watch` gets the tree's changes as a candidate afterwards. Without `watch` nothing replaced the restored build: a static bundle of an acceptance profile served the code of its first run until `devstack restart`. `restorable` now restores only a service with `watch`. One without goes through its build; the build id covers every file then, so an unchanged tree reuses its artifact and a changed one builds. ADR-0016 gets an addendum, stack-file.md says how a service without `watch` follows the tree. Bug-Class: stale-artifact 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
The first start after a daemon start (
devstack down/up,lane stopandupagain) ran the build last promoted to main (ADR-0016), and only a service withwatchgets the tree's changes as a candidate afterwards. Withoutwatchnothing ever replaced the restored build: a static bundle of an acceptance profile served the code of its first run untildevstack restart, and the suite ran against it.restorablenow restores only a service withwatch. A service or job withbuildand withoutwatchgoes through its build at that start; the build id covers every file of the tree then, so an unchanged tree reuses its artifact at once (build_reused) and only a changed one builds.upreports it healthy once the tree's code runs.docs/stack-file.md: how a service withoutwatchfollows the treeCHANGELOG.md: FixedReview card
buildand withoutwatchbuilds from the tree at its first start after a daemon start; same inputs reuse the existing artifact.watchrestorablewatch).up --runwould still test the old buildwatchstays refused on a profile's service; the stack file does not change.*_SINCE, profiles grow)Approved by the owner 2026-11-18: points 1, 2 and 3.
Decided on my own: no hint in
statusthat a static artifact predates the tree (the issue's third suggestion); the fix makes it unnecessary.Bug report
restorablestarted the promoted build also for services withoutwatch, andfollow_restoremakes no candidate for thosestale-artifactwithout_watch_the_first_start_builds_from_the_tree(daemon_lifecycle.rs) red on main: after an edit while down,upstarted the same build id; green with the fix, an unchanged tree keeps its idwatch-dependent path in the daemon; the prebuild usesrestorableand is fixed with ita_failed_first_start_restores_againkeeps restoring for services withwatchTested on Windows: fmt, clippy,
daemon_lifecycle(20 passed, 8 need .NET/Docker),devstack-daemon(218). Not reproduced on a pool node (--on); the path there is the same function.Closes #562
🤖 Generated with Claude Code