Skip to content

[M3.5b] Remove replaced containers; release history with diff - #182

Merged
samuelmbabhazi merged 2 commits into
mainfrom
feat/m3.5b-release-history
Nov 7, 2026
Merged

samuelmbabhazi merged 2 commits into
mainfrom
feat/m3.5b-release-history

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

What changed

Replaced containers are removed. The drain step stopped previous replicas and left them on disk. It now chains stop_container (graceful) then remove_container. Recovery after a failed deployment force-removes new replicas that never served traffic. Volumes are never removed, and RemoveContainer needs no confirmation token without remove_volumes.

Release history. The application page lists releases, newest first, with a diff of each against the previous one. The line diff moved out of the configuration editor store into config-diff.ts, shared by both.

PLAN. M3.5b is split: image retention (deploy.keep_images) becomes M3.5c because it needs a new agent action, which is an action-list change for the owner to approve.

Why

Without removal, every deployment leaves a stopped container behind per replica. Rollback does not depend on them: it creates new containers from the release's pinned image.

How it was tested

  • pipeline.spec.ts: order of stop then remove, one removal per replaced replica, failure injection and resume through the new step.
  • agent-steps.spec.ts plus regenerated vectors, decoded by Go compat_test.go (threshold raised to 10).
  • Web test: the oldest release offers no comparison, and the diff shows the changed port.
  • Local gate only (CI off). Integration tests were not run and nothing has run on a real server, so a real Docker removal in a deployment is unverified.

Security considerations

No action-list change: RemoveContainer already exists and is validated in the agent. Anonymous volumes are kept, since remove_volumes stays false. The release list uses the existing environment.read route; configurations hold secret names only.

Checklist

  • Tests for new behavior
  • No new shell invocation, no new secret exposure path
  • SPEC and PLAN updated
  • Integration tests (need Docker)

@samuelmbabhazi
samuelmbabhazi merged commit 18c8d1a into main Nov 7, 2026
@samuelmbabhazi
samuelmbabhazi deleted the feat/m3.5b-release-history branch November 7, 2026 11:41
samuelmbabhazi added a commit that referenced this pull request Nov 7, 2026
## What changed

Rewrites the PLAN's "Next tasks" list, which still named work merged in
#182 to #195. It now groups what remains by what it is waiting on: a VM,
an owner decision, billing, or nothing.

## Why

So the next person, or session, starts from what is true.

## How it was tested

Documentation only. For the record, the final `main` at #195 was run
locally against PostgreSQL 18.4:

- Integration suite: 314 passed, 3 failed. The 3 expect `23503` for `ON
DELETE RESTRICT`, which PostgreSQL 18 reports as `23001`.
- Browser suite: 17 of 17 passed.

## Security considerations

None.

Signed-off-by: review <[email protected]>
Co-authored-by: review <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant