-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Clarify No installed package matching the input criteria was found
in upgrade flow
#2877
Conversation
354ef15
to
c463ba6
Compare
c463ba6
to
6063bec
Compare
@yao-msft - Could I trouble you for a few moments of your time? |
Sorry, I'll take a look now. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
3d7d06b
to
ea744ea
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
##[error]There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab. I can't seem to find the Tests tab to tell me which one is failing ;-; |
Looks like some tests were looking for the strings you changed: |
@yao-msft - Can you trigger the pipelines and hopefully the unit tests pass this time around? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The failing test is UpdateFlow_UpdateExeSpecificVersionNotApplicable at D:\a\1\s\src\AppInstallerCLITests\UpdateFlow.cpp(513) |
Ah. That makes sense. I don't know why I didn't see that before. Thank you for the detail (and the patience with me, as for some reason my computer refuses to run the unit tests, even though I know I've set the certificates) |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
InstallExeFoundExistingConvertToUpgradeNoAvailableUpgrade e2e test failed at AppInstallerCLIE2ETests.InstallCommand.InstallExeFoundExistingConvertToUpgradeNoAvailableUpgrade() in \src\AppInstallerCLIE2ETests\InstallCommand.cs:line 591 |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I apologize in advance if the unit tests fail again. I keep getting certificate errors anytime I try to run them locally and I can't figure out why. I've followed the steps in the readme to generate the cert and start the local web server, but no dice |
Those are for e2e tests. And yes it's quite complex to setup. For unit tests, I think you can just run the AppInstallerCliTests.exe, and it should just start. And if there are any test failures, I can help fix them directly if you are ok. |
This change provides a separate message when there are no matching search results found. In order to keep things clean, I switched the boolean parameter to an enum to allow for more fine-grained control over the messaging and to keep it extensible.
I also decided to not use the existing
No applicable upgrade found
message, as there is a difference between an upgrade being available and an upgrade being applicable. The message for applicability is still used when an upgrade is available, but an install attempt finds no upgrade that is applicable.Edit: Since #2861 was merged, I rebased this PR due to a merge conflict and changed the
SearchPurpose
enum to a higher scope level to increase re-use. I did re-validate all of the happy-paths after the rebase.Microsoft Reviewers: Open in CodeFlow