SLVS-2936 Increase VSTest timeouts - #6701
SLVS-2936 Increase VSTest timeouts#6701georgii-borovinskikh-sonarsource wants to merge 8 commits into
Conversation
SummaryIncreases VSTest timeouts to reduce flakiness in CI runs, and modernizes the test execution approach. Key changes:
|
|
|
||
| - name: Upload test results artifact | ||
| uses: actions/upload-artifact@v4 | ||
| if: success() || failure() |
There was a problem hiding this comment.
success() || failure() excludes cancelled(). If the GitHub Actions job hits its runner-level timeout and is cancelled — which is the most common outcome when a test hangs beyond vstest's own VSTEST_TESTHOST_SHUTDOWN_TIMEOUT — the blame artifacts are never uploaded. That's precisely the scenario this step exists to diagnose.
Change to always() so the artifacts are captured regardless of how the job ends.
| if: success() || failure() | |
| if: always() |
- Mark as noise
| serverStarter2.MockedLogger.Received(1).LogVerbose(Arg.Any<MessageLevelContext>(), Resources.HttpRequestFailed, Arg.Is<string>(x => x.Contains(exceptionMessage))); | ||
| } | ||
|
|
||
| [Ignore] // todo |
There was a problem hiding this comment.
[Ignore] with // todo leaves no trail. This test verifies a meaningful contract — that Dispose() actually stops the HTTP listener. Without a linked tracking issue or a description of why it's failing, this has a high chance of sitting ignored indefinitely.
MSTest's [Ignore] accepts a message: [Ignore("SLVS-XXXX: brief description of failure")]. Please link the ticket.
- Mark as noise
There was a problem hiding this comment.
Both previously flagged issues remain unresolved. The artifact upload step still uses if: success() || failure() (no fix for the cancellation gap), and [Ignore] // todo on Dispose_StopsServer still has no tracking reference.
The new commit moves the artifact upload step earlier in the job (before "Report Test Results") and replaces --blame with --blame-crash. Neither change addresses either open issue.



Part of