Guard cohort rollout storage and deployment lifecycle #1539

Merged
PlasticDigits merged 3 commits from fix/cohort-rollout-readback into main 2026-10-18 07:14:15 +00:00
Owner

The rollout coordinator rejected Coolify's application-prefixed volume name, and a status check could interrupt an active build because the old container appeared exited. Both failures occur before the new indexer serves.

Bind exactly one application-owned named /state volume by full name, returned UUID and resource ID; reject host paths and extra/file mounts. Track the current deployment ACK UUID, application identity and action/run receipt; pending builds/actions stay read-only. Explicit cleanup cancels only a bound deployment and still removes the owned job credential when deployment identity or cancellation fails. The existing credential-free build can be adopted through a narrowly bound read-only transition.

Validation: 18 focused controls pass in 0.149s, including wrong scope/UUID/mounts, pending/finished/failed builds, stale receipts, missing ACKs and cleanup exceptions. Independent review and normal hooks pass. The first real storage refusal is retained; no build started or database credential was injected in that attempt, and its owned job was stopped. No application source, migration SQL or worker/DB operation changed.

Refs #1211 and #1537. Rollout procedure and retained failure.

The rollout coordinator rejected Coolify's application-prefixed volume name, and a status check could interrupt an active build because the old container appeared exited. Both failures occur before the new indexer serves. Bind exactly one application-owned named `/state` volume by full name, returned UUID and resource ID; reject host paths and extra/file mounts. Track the current deployment ACK UUID, application identity and action/run receipt; pending builds/actions stay read-only. Explicit cleanup cancels only a bound deployment and still removes the owned job credential when deployment identity or cancellation fails. The existing credential-free build can be adopted through a narrowly bound read-only transition. Validation: 18 focused controls pass in 0.149s, including wrong scope/UUID/mounts, pending/finished/failed builds, stale receipts, missing ACKs and cleanup exceptions. Independent review and normal hooks pass. The first real storage refusal is retained; no build started or database credential was injected in that attempt, and its owned job was stopped. No application source, migration SQL or worker/DB operation changed. Refs #1211 and #1537. [Rollout procedure and retained failure](docs/qa/issue-1211/deployment.md#exact-release-standalone-migration).
fix: bind migration snapshot storage to Coolify application
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
14b1afac2a
fix: track migration deployment lifecycle before cleanup
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
f290e6caa8
PlasticDigits changed title from Bind cohort migration storage to its Coolify application to Guard cohort rollout storage and deployment lifecycle 2026-10-18 06:13:05 +00:00
fix: await migration worker receipt after deployment completes
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
935bf90e97
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic!1539
No description provided.