Skip to content

Avoid flaky Blazor test temp-directory cleanup - #20798

Merged
Ankit Jain (radical) merged 2 commits into
mainfrom
copilot/fix-ci-flaky-test-delete-temp-dir
Oct 8, 2026
Merged

Ankit Jain (radical) merged 2 commits into
mainfrom
copilot/fix-ci-flaky-test-delete-temp-dir

Conversation

Copilot AI commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

The publish-properties test can pass its assertions but fail on Windows when immediate deletion of its temporary directory encounters a lock. Reuse the test suite’s best-effort temporary-directory cleanup.

  • Change: Use TestFileSystemService for the test directory; keep the Release-configuration assertions unchanged.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Co-authored-by: radical <1472+radical@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI failure for flaky AddBlazorGatewayTests Avoid flaky Blazor test temp-directory cleanup Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20798

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20798"

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Tests selector

1 / 98 PR test projects · 0 PR jobs, from 1 changed file.

Selected PR test projects (1 / 98)

Aspire.Hosting.Blazor.Tests

Selected PR jobs (0)

none


How these were chosen — grouped by what changed

🧪 tests/Aspire.Hosting.Blazor.Tests/AddBlazorGatewayTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Blazor.Tests

Job reasons

none


Selection computed for commit 0d34bf1.

@radical
Ankit Jain (radical) merged commit d378406 into main Oct 8, 2026
52 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Oct 8, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

4 participants