forge: re-load the Forgejo agent image after every podman prune #247
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!247
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/agent-image-after-prune"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Incident 2026-09-08: publish-store-uploads run 19914 (TestFlight 179) failed at
Gate (Release Uploads)withdocker pull key-store-agent:latest … denied— the weeklykey-store-podman-image-prune(podman image prune --all --force, PR #176) removes the runner's job image whenever no container references it (between jobs, always), andkey-store-agent-container-image.service(RemainAfterExit) only loads it at activation. Manual remediation that worked:systemctl restart key-store-agent-container-image.service.Fix: both prune units (
key-store-podman-image-pruneand nixpkgs' dailypodman-prune) getAfter=the loader andExecStartPost=systemctl restart key-store-agent-container-image.service(blocking, so a failed reload fails the prune and its existing failure notice fires); the loader gainsOnFailure=key-store-failure-notice@%n. Exclusion via label filter was rejected because it would also retain every supersededkey-store-agent:<sha>image (the disk growth the prune exists to stop). Ordering/deadlock reasoning verified against systemd 260job.c; loader script audited idempotent.nix-instantiate --parseok; module-level eval renders the intended unit files (full flake eval skipped: the Mac's root disk is nearly full).🤖 Generated with Claude Code
50a4ba619f83edacce08