Skip to content

Delete the launcher's logs of an image with it - #270

Merged
Gabriel-Darbord merged 1 commit into
mainfrom
launch-logs-are-pruned
Nov 22, 2026
Merged

Gabriel-Darbord merged 1 commit into
mainfrom
launch-logs-are-pruned

Conversation

@Gabriel-Darbord

@Gabriel-Darbord Gabriel-Darbord commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Each start writes the VM's output to a pair of log files in the launcher's logs directory, and a delete removed the image's directory but never those, so they piled up for images long gone.

The launcher now bounds them itself: a start keeps the logs of its image's last starts and sweeps those of images the store no longer holds, and its own delete removes an image's logs. A delete here removes the directory itself, so it now calls the launcher's deleteLaunchLogs with the image's name on disk once the directory is gone. A launcher that cannot be opened fails nothing: the image is gone, and the next start sweeps its logs.

The logs a failed start names stay valid until two more starts of that image, or its delete. On upgrade, the first start sweeps every log of an image that no longer exists.

A delete removed the image's directory and left the launcher's logs of its
starts behind for good. It now asks the launcher to delete them once the
directory is gone, which needs pharo-launcher-mcp's deleteLaunchLogs, so the
pin moves to the release that has it. A launcher that cannot be opened fails
nothing: the image is gone, and the launcher's next start sweeps the logs of
images that no longer exist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Gabriel-Darbord
Gabriel-Darbord marked this pull request as ready for review November 22, 2026 23:38
@Gabriel-Darbord
Gabriel-Darbord merged commit 693089c into main Nov 22, 2026
3 checks passed
@Gabriel-Darbord
Gabriel-Darbord deleted the launch-logs-are-pruned branch November 22, 2026 23:39
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