Skip to content

warm: a second service with the same prepare inputs and cwd fails (version: path not found) #297

Closed

Description

@7schmiede

What happens

With [prepare] warm = ["origin/main"] (0.24.0, Windows, local warm), the second of two services that share the same prepare inputs and cwd fails to warm:

{"event":"prepare_store_put","service":"web","key":"7d07…","files":61282,"prepare_ms":61838,…}
{"event":"prepare_store_hit","service":"web","key":"7d07…",…}
{"event":"prepare_warmed","service":"web","had":false,"place":"local","ref":"origin/main",…}
{"event":"prepare_store_version_failed","service":"e2e-ui","version":"node --version","level":"warn",
 "error":"Das System kann den angegebenen Pfad nicht finden. (os error 3)"}   # = "The system cannot find the path specified"
{"event":"prepare_warm_failed","service":"e2e-ui","error":"its `version` (`node --version`) failed","place":"local","ref":"origin/main"}

The two services:

[services.web]
kind    = "devserver"
cwd     = "app"
prepare = { run = "npm ci", inputs = ["app/package-lock.json"], outputs = ["app/node_modules"], link = ["app/node_modules"], version = "node --version" }

[services.e2e-ui]
kind      = "tool"
autostart = false
cwd       = "app"
prepare   = { run = "npm ci", inputs = ["app/package-lock.json"], outputs = ["app/node_modules"], version = "node --version" }

node --version works from that directory in the worktree and in a lane. After the run, .devstack/warm/ holds only done.json and nodes.json, so the checkout version ran in seems to be gone by the time the second service gets its turn.

Expected

Both services warmed, or the second one recognised as having the same key (same run, cwd, inputs, version) and taken from the entry the first one just made. The failure is retried "at the next commit", so it repeats on every push to the ref.

Environment

devstack 0.24.0, Windows 11, main tree's daemon (local warm, not a node).

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

Metadata

Metadata

Assignees

No one assigned

    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