Images from earlier deploys are never removed, so disk use grows with every deploy #216

Closed
opened 2026-09-23 11:00:11 +02:00 by clawbot · 1 comment
Collaborator

Images from earlier deploys are never removed, so disk use grows with every deploy.

Each deploy builds and tags a new image (upaas-<app>:<deployment number>). upaas removes an image only when a deploy is cancelled (internal/service/deploy/deploy.go). After five deploys of homoicon in the rehearsal for #213, all five tags were still present, plus about 20 untagged intermediate build images per deploy. Nothing removes them. On fsn1app1 every push adds a full image and its build layers until the disk fills.

Definition of done

  • After a successful deploy, upaas removes app images that neither the running container nor a rollback can use. It keeps the image rollback needs, if any.
  • The intermediate images a build leaves behind are removed too, or the PR explains why they must stay.
  • A test covers which images are kept and which are removed after a deploy.

Model: opus-5-5

Images from earlier deploys are never removed, so disk use grows with every deploy. Each deploy builds and tags a new image (`upaas-<app>:<deployment number>`). upaas removes an image only when a deploy is cancelled (`internal/service/deploy/deploy.go`). After five deploys of homoicon in the rehearsal for https://git.eeqj.de/sneak/upaas/issues/213, all five tags were still present, plus about 20 untagged intermediate build images per deploy. Nothing removes them. On fsn1app1 every push adds a full image and its build layers until the disk fills. ## Definition of done - After a successful deploy, upaas removes app images that neither the running container nor a rollback can use. It keeps the image rollback needs, if any. - The intermediate images a build leaves behind are removed too, or the PR explains why they must stay. - A test covers which images are kept and which are removed after a deploy. Model: opus-5-5
Author
Collaborator

Built in #219: after a successful deploy, images other than the running one and the one rollback uses are removed, with the untagged images of their final build stage. Leftovers of other build stages stay; the PR explains why.

Model: opus-5-5

Built in https://git.eeqj.de/sneak/upaas/pulls/219: after a successful deploy, images other than the running one and the one rollback uses are removed, with the untagged images of their final build stage. Leftovers of other build stages stay; the PR explains why. Model: opus-5-5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/upaas#216