Repository navigation
Fix CI-fixer empty-queue PowerShell module discovery - #39522
Merged
Merged
Conversation
Load the installed Management and Utility manifests directly so empty-queue completion does not depend on automatic module discovery inside AWF chroots. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8f522b9d-4994-414a-a03e-f3d7a9043385
kubaflo
temporarily deployed
to
copilot-pat-pool
October 21, 2026 12:41 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39522Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39522" |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
temporarily deployed
to
copilot-pat-pool
October 21, 2026 12:41 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 21, 2026 12:42 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 21, 2026 12:44 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 21, 2026 12:45 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 21, 2026 12:46 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The environment-specific fix remains unverified in the production AWF chroot and needs human confirmation.
No open issues 🎉
What changed in this PR
Addresses intermittent PowerShell module discovery failures in the shared CI-fixer empty-queue helper for main and net11.0.
Changes:
- Explicitly imports Management and Utility module manifests from
$PSHOME. - Preserves existing snapshot validation and completion safeguards.
| File | Description |
|---|---|
.github/scripts/Complete-CiFixEmptyQueue.ps1 |
Loads required modules explicitly before using their cmdlets. |
Review effort: Balanced
Contributor
Author
|
@dalexsoto stamp |
This was referenced Oct 22, 2026
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Explicitly import the installed
Microsoft.PowerShell.ManagementandMicrosoft.PowerShell.Utilitymanifests from$PSHOMEbefore the empty-queue helper uses their cmdlets. This avoids relying on automatic module discovery inside the AWF chroot.The reported run failed at
Get-Contenteven though the queue was authoritatively empty, so the workflow emittedreport_incompleteinstead of completing withnoop. A later scheduled run succeeded with the unchanged helper, showing that the environment failure is intermittent.This five-line change applies to the shared helper used by both
mainandnet11.0. Strict snapshot validation, metadata persistence before expectation registration, registrar exit-code handling, and success-onlynoopgating are unchanged. No workflow sources, generated locks, permissions, dependencies, or pipeline tests are changed. This supplements the helper introduced in #39237; no competing open fix was found.Validation
Get-Contentresolution error in a fresh PowerShell process with$PSModuleAutoLoadingPreference = 'None'; the original helper exited 1 without creating completion artifacts. The original helper succeeds with normal automatic loading.main/ci-scanandnet11.0/ci-scan-net11. Each produces zero-byte coverage, the exact summary header, and exactly onenoopexpectation.gh aw compile ci-status-fix ci-status-fix-net11 --no-emit --strict --no-check-update- passed: 2 workflows succeeded, 0 warnings.git diff --check- passed.a55a3923b3aaea22ac74a06b1b4d02979d533366: all 23 existing empty-queue/bootstrap cases passed, confirmed from the uploaded NUnit results. The complete suite was 2,624 passed, 3 failed. All three failures are the same pre-existing reviewer-model policy assertions seen in the earlier main-targeting PR run, before this change: two local-reviewer GPT-5.6 pin assertions and the hosted review-tests model assertion. Those unrelated tests and model settings were not changed.Hosted boundary: the failing reported run and the later successful run were inspected. This patched revision has not been dispatched in the production AWF chroot; local component reproduction and the passing helper CI cases are not a claim of hosted deployment verification. Azure product validation was filtered out by its trigger conditions; the AzDO build query returned no builds for this PR.
Issues Fixed
Fixes #39476