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

Skip uninstall attempt when installed package version is not present #4685

Merged
merged 4 commits into from
Jul 30, 2024

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Jul 29, 2024

Issue

We are seeing crashes from the installed package version being null, but only during upgrades with a dependency when attempting to uninstall said dependency (either due to user request or manifest).

Change

Simply exit the two workflow tasks involved with the uninstall if the installed package version is not present.

Validation

Added a new test to exercise an upgrade that adds a dependency that is not installed and that dependency has UpgradeBehavior: uninstallPrevious.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner July 29, 2024 20:52
florelis
florelis previously approved these changes Jul 29, 2024
@JohnMcPMS JohnMcPMS changed the title Skip uninstall attempt when installed package version is present Skip uninstall attempt when installed package version is not present Jul 29, 2024
@JohnMcPMS
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JohnMcPMS JohnMcPMS merged commit 32e3bf9 into microsoft:master Jul 30, 2024
8 checks passed
@JohnMcPMS JohnMcPMS deleted the fix-crash branch July 30, 2024 22:23
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.

2 participants