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
fix(cli): refuse missing managed mounts when the desired volume already exists #4429
The additive-mount admission in 9bd1e20 checks the wrong Docker volume name.
At tools/cli/src/lib/deployment/runtime-apply.ts:385-386, expected named mounts already store a fully qualified source (for example tale_static-assets). Line 422 prefixes that value again and queries tale_tale_static-assets, while projectVolumeSet contains the actual Docker names such as tale_static-assets.
Consequently a release transition or legacy adoption with a missing container mount and an already-existing desired volume passes the new additive predicate. The intended invariant, stated at lines 415-416, requires refusal because this is not proof of an empty new store. This also affects pending-operation retries admitted with the inventory. Normal same-bundle ready receipts and post-up strict verification still refuse missing mounts.
Static reproduction: project=tale; desired mount=static-assets:/app/static-assets; container retains its other correct mounts but lacks this mount; inventory contains tale_static-assets. Expected: refuse before mutation. Actual predicate: !Set([tale_static-assets]).has(tale_tale_static-assets) === true. No live data loss is claimed.
Suggested repair: query projectVolumes.has(mount.source), using the already-qualified identity. Add a regression for existing desired volume + missing mount, with no mutations, and retain coverage for genuinely absent additive volumes, missing bind mounts, ready-receipt drift and pending retries.
Severity: P2 (data-custody correctness); release review requests changes. Source-only review under TALE-966; no tests or deployments run. Deduplication searched volume, additive, and runtime custody issues; no matching existing issue found.
Activity
fix(cli): correct managed volume inventory lookup (#4436)