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
Static service in a profile reuses its old build after a source change (no watch allowed) #562
devstack up --profile acceptance --run --on <node> in a worktree: web builds, build id caf6fee6....
Change a source file under app/libs/... in the worktree (not committed).
devstack lane stop, then the same devstack up --profile acceptance --run --on <node> again.
The second start does not build web: it goes from stopped to healthy in under a second with the same build id caf6fee6..., and the suite runs against the bundle from step 1. A built service (api, with watch) does rebuild from the changed tree.
devstack builds web afterwards shows only the first build. devstack restart web builds a new id and the change is live, so the source of the lane is current; only the start reuses the old artifact.
What I expected
A static service rebuilds when its sources change, like a built service with watch. Otherwise a lane that is reused for a second acceptance run checks an old bundle and reports results for code it never ran.
What I tried
watch on the profile's static service is rejected:
unknown field `watch`, expected one of `kind`, `build`, `output`, `run`, `stop`, `spa`, `forward`, `cwd`, `health`, `env`
watch on the base service is allowed, but it is a dev server that reloads itself, so restart_on is the documented key there and watch would change the dev server's behaviour.
Suggestion
Either allow watch on a profile service (and key the static build id on it), or derive the build id of a kind = "static" service from its cwd/build inputs by default. Until then, a hint in status that a static artifact predates the working tree would help.
Workaround: devstack up --profile acceptance --on <node>, then devstack restart web, then devstack run e2e.
Activity
fix: a service without watch builds from the tree after a daemon rest…