Skip to content

Clean leftovers of previous run before MSI install test#984

Merged
RazvanLiviuVarzaru merged 1 commit into
MariaDB:devfrom
vaintroub:msi-install-preclean
Jul 4, 2026
Merged

Clean leftovers of previous run before MSI install test#984
RazvanLiviuVarzaru merged 1 commit into
MariaDB:devfrom
vaintroub:msi-install-preclean

Conversation

@vaintroub

Copy link
Copy Markdown
Member

The amd64-windows-packages worker is currently stuck: every build since 43478 fails the MSI install step in ~1.5s with data directory exists and is not empty, because a previous run left a non-empty C:\Program Files\MariaDB\data behind (an uninstall that failed to remove files, or a killed run - the MSI RemoveDataDirectory action is deliberately Return=ignore, so a locked file can leak the datadir even from a successful-looking uninstall).

Make the install script precondition explicit instead of trusting the previous run cleanup: stop and delete a leftover service and remove a leftover installation directory before installing. This also heals the currently stuck worker on the next run.

A killed run, or an uninstall that failed to remove files, leaves a
non-empty data directory. Every subsequent MSI install on the worker
then fails with 'data directory exists and is not empty'.
Currently the case on amd64-windows-packages (builds 43478+).
@RazvanLiviuVarzaru RazvanLiviuVarzaru self-requested a review July 4, 2026 07:17
@RazvanLiviuVarzaru RazvanLiviuVarzaru merged commit 99fac3f into MariaDB:dev Jul 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants