Skip flaky/broken tests on release/10.0.4xx#54277
Conversation
There was a problem hiding this comment.
Pull request overview
Skips two known failing/flaky tests on release/10.0.4xx to reduce CI noise, aligning the skips with tracked GitHub issues.
Changes:
- Skip
StaticWebAssets_BackCompatibilityPublish_Hosted_Worksdue to a known flaky file lock issue (#53660). - Move the
mvc_fs-90case out ofAllWebProjectsRestoreAndBuildand into its own skipped test referencing #40073.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs | Adds a skip to a flaky back-compat publish test. |
| test/dotnet-new.IntegrationTests/WebProjectsTests.cs | Extracts the F# MVC net9.0 test case and skips it behind a tracked issue. |
- Skip AllWebProjectsRestoreAndBuild for F# MVC net9.0 (mvc_fs-90): The F# MVC template includes Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation which at version 9.0.16 may not be available on CI NuGet feeds yet, causing NU1202 restore failures. See #40073. - Fix GZipCompress file lock flakiness (#53660): Add retry logic (3 retries with backoff) to GZipCompress.Execute() for IOException during file I/O. The legacy .NET 5 back-compat Blazor publish path compresses files in parallel and can hit transient file locks from antivirus or parallel test execution. Follows the same pattern as GenerateBundle.cs. - Revert test skip on StaticWebAssets_BackCompatibilityPublish_Hosted_Works since the root cause (GZipCompress) is now fixed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
665752b to
40c12ae
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
This is copilots attempt at a fix for the issues I ran into in #54267 that should not impact our tests. For the gzip one, it's a retry as the file was locked. It's a bit hacky and it's in product code so I'm open to alternatives. For the templating change, it suggested we'd need to modify on the templating side so I figure we'd disable here and fix in main as downlevel fsharp mvc templating coverage may be ok to miss from 10 servicing. |
|
|
||
| try | ||
| const int maxRetries = 3; | ||
| for (int retry = 0; retry <= maxRetries; retry++) |
There was a problem hiding this comment.
Thoughts on doing a weighted retry here? Would that increase the likelihood of success?
There was a problem hiding this comment.
never mind, that is already being done....
Summary
Skips two test failures that are causing noise on release/10.0.4xx CI builds (e.g., PR #54267 build 1417760).
1. \AllWebProjectsRestoreAndBuild(mvc_fs-90)\ — TemplateEngine (all platforms)
The F# MVC template targeting net9.0 includes an explicit dependency on \Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation >= 9.0.16. This package version is not yet available on the CI's Azure DevOps NuGet feeds, causing \NU1202\ restore failures. NuGet resolves to the 10.0.0 version instead, which is incompatible with net9.0.
Fix: Extracted the \mvc_fs-90\ InlineData case into a separate [Fact(Skip = ...)]\ method referencing #40073.
2. \StaticWebAssets_BackCompatibilityPublish_Hosted_Works\ — FullFramework (Windows)
Known flaky file lock on .gz\ compression temp files in the legacy .NET 5 back-compat publish path (\BlazorWebAssembly.5_0.targets\ line 650). Already tracked as a Known Build Error.
Fix: Added \Skip\ attribute referencing #53660.
Neither failure is related to any code changes — they are pre-existing test infrastructure issues.