Skip to content

Fix installer deletion reporting#990

Merged
tw93 merged 10 commits into
tw93:mainfrom
M-Hassan-Raza:fix/installer-delete-results
May 28, 2026
Merged

Fix installer deletion reporting#990
tw93 merged 10 commits into
tw93:mainfrom
M-Hassan-Raza:fix/installer-delete-results

Conversation

@M-Hassan-Raza
Copy link
Copy Markdown
Contributor

Fixes #982.

Installer cleanup could report fewer removals than selected without explaining which files failed. This changes deletion to build a stable plan, revalidate file identity and size before removing, route removals through mole_delete, and report incomplete cleanup with a nonzero exit.

Tested with:
./scripts/check.sh
MOLE_TEST_NO_AUTH=1 bats tests/installer.bats tests/installer_fd.bats tests/installer_zip.bats
MOLE_TEST_NO_AUTH=1 bats tests/file_ops_mole_delete.bats
MOLE_TEST_NO_AUTH=1 MOLE_TEST_JOBS=2 BATS_FORMATTER=tap ./scripts/test.sh

@M-Hassan-Raza M-Hassan-Raza requested a review from tw93 as a code owner May 27, 2026 16:49
@tw93 tw93 merged commit b6062cd into tw93:main May 28, 2026
9 checks passed
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.

mo installer silently skips files, reports fewer removed than selected

2 participants