Report missing Fast Deployment packages as XA0132 - #12060
Merged
Conversation
Co-authored-by: simonrozsival <374616+simonrozsival@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix race condition with run-as command in Fast Deployment
Report missing Fast Deployment packages as XA0132
Jul 13, 2026
simonrozsival
marked this pull request as ready for review
July 14, 2026 10:47
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Fast Deployment’s post-pm install verification so that if pm path <pkg> still fails to report the package after a forced reinstall, deployment stops and reports XA0132 (PackageNotInstalled) instead of continuing into the run-as probe (which previously could misreport this condition as XA0137). Adds unit tests covering the pm path output classification helper.
Changes:
- Stop FastDeploy deployment and emit
XA0132whenpm pathstill shows no package after a reinstall attempt. - Refactor
pm pathoutput detection intoFastDeploy.IsPackageInstalledOutput. - Add unit tests validating
pm pathoutput classification.
Show a summary per file
| File | Description |
|---|---|
| src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/DebuggingTasksTests.cs | Adds unit tests for pm path output classification via FastDeploy.IsPackageInstalledOutput. |
| src/Xamarin.Android.Build.Debugging.Tasks/Tasks/FastDeploy.cs | Treats persistent missing-package after reinstall as XA0132 and factors pm path output parsing into a helper. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
jonathanpeppers
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A successful-looking
pm installcan leave the package absent, including on CI emulators under storage pressure. After the existing reinstall attempt, Fast Deployment previously fell through torun-as, misreporting this condition as XA0137.pm pathstill finds no package after forced reinstall.PackageNotInstalled) instead of invokingrun-as.Diagnostics
pm pathand/datafree-space diagnostics for CI/infra investigation.Coverage
pm pathoutput classification.