Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fleet) repair package when it is reinstalled while a previous installation cannot safely be deleted #35119

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bmermet
Copy link
Contributor

@bmermet bmermet commented Mar 14, 2025

What does this PR do?

This PR makes it possible to reinstall packages even if the files from a previous installation of the same version of the package is stil in use. In that case it checks that the directory contains all the expected files and copies any missing file.

The change is scoped to windows for now, to minimise the likelihood of introducing a regression and because that need hasn't surfaced on linux yet.

Motivation

Make package installation more resilient on windows.

Describe how you validated your changes

The new code is unit tested and the behavior of the datadog-installer is checked by numerous E2E tests.

Possible Drawbacks / Trade-offs

This breaks an exisiting behavior that starting an experiment for a package already installed will fail. Is that really a desired property?

Additional Notes

@github-actions github-actions bot added medium review PR review might take time team/windows-agent labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium review PR review might take time team/windows-agent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant