Skip to content

Report missing Fast Deployment packages as XA0132#12060

Draft
simonrozsival with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-fast-deployment-issue
Draft

Report missing Fast Deployment packages as XA0132#12060
simonrozsival with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-fast-deployment-issue

Conversation

Copilot AI commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

A successful-looking pm install can leave the package absent, including on CI emulators under storage pressure. After the existing reinstall attempt, Fast Deployment previously fell through to run-as, misreporting this condition as XA0137.

  • Missing-package handling
    • Stop deployment when pm path still finds no package after forced reinstall.
    • Report XA0132 (PackageNotInstalled) instead of invoking run-as.
if (!await IsPackageInstalled (PackageName)) {
	LogDiagnosticDataError ("XA0132", Resources.XA0132_PackageNotInstalled);
	PrintDiagnostics ();
	LogCodedError ("XA0132", Resources.XA0132_PackageNotInstalled);
	return;
}
  • Diagnostics

    • Preserve the existing pm path and /data free-space diagnostics for CI/infra investigation.
  • Coverage

    • Add focused tests for pm path output classification.

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
Copilot AI requested a review from simonrozsival July 13, 2026 20:40
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.

Fast Deployment XA0137 (run-as 'couldn't stat') races install on the PRIMARY user (user 0) ~daily in CI

2 participants