oliver-zehentleitner / maity

runner: one workspaces root per runner (docs, and a check warning if cheap)

Sign in to report

tsk-vrzxhddz55vm Open

Raised by 47me in review A1004 of #1917. Today, maity runner gc --scratch (and, similarly, gc --revoked for the clones) also removes the scratch of a placement that is not this runner's. If two runners share one workspaces root, the second loses active scratches and clones. The docs do not forbid a shared root.

To do:

  1. docs/runners.md and §15.5: one workspaces root per runner, never shared between runners, and why (gc reads only this runner's placements).
  2. maity runner check warns when the root holds a workspace record of another runner, if that can be told cheaply from the records. If not cheaply, then only the docs, and say so in the PR.

Small; start after #1917 is merged. Same review rules as the runner work.