Skip to content

[main] Update dependencies from microsoft/testfx - #54524

Merged
Evangelink merged 11 commits into
mainfrom
darc-main-d60256cd-a0b0-4c59-85c4-b0bef84167e8
Jun 9, 2026
Merged

Evangelink merged 11 commits into
mainfrom
darc-main-d60256cd-a0b0-4c59-85c4-b0bef84167e8

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

This pull request updates the following dependencies

From https://github.com/microsoft/testfx

…260531.6

On relative base path root
Microsoft.Testing.Platform From Version 2.3.0-preview.26274.1 -> To Version 2.3.0-preview.26281.6
MSTest From Version 4.3.0-preview.26274.1 -> To Version 4.3.0-preview.26281.6
@DonnaChen888
DonnaChen888 requested a review from a team as a code owner June 1, 2026 07:33
@Evangelink

Copy link
Copy Markdown
Member

@copilot resolve the merge conflicts in this pull request

…b0-4c59-85c4-b0bef84167e8

# Conflicts:
#	eng/Version.Details.props

Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
auto-merge was automatically disabled June 3, 2026 20:33

Head branch was pushed to by a user without write access

Copilot AI commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Addressed in b234a14.

Copilot AI requested a review from Evangelink June 3, 2026 20:33
@Evangelink
Evangelink enabled auto-merge June 3, 2026 20:39
@SimonZhao888

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s), but failed to run 1 pipeline(s).

SimonZhao888 and others added 4 commits June 5, 2026 09:28
…260607.5

On relative base path root
Microsoft.Testing.Platform From Version 2.3.0-preview.26274.1 -> To Version 2.3.0-preview.26307.5
MSTest From Version 4.3.0-preview.26274.1 -> To Version 4.3.0-preview.26307.5
…efault text, env-var formatting) and adapt crash test regex

MTP 26307.5 changes:
- --show-stderr/--show-stdout default text now mentions LLM/AI agent
  detection (' (or ''Failed'' when an LLM/AI agent environment is
  detected).').
- Trailing whitespace removed from --environment help lines and the
  blank line between 'multiple variables.' and 'Examples:' is now truly
  empty.
- A new dynamic 'Running tests from <abs-path>\TestProject.dll (<tfm>|<arch>)'
  line is emitted between 'Waiting for options and extensions...' and
  the Platform Options section. It varies per machine/run, so scrub it
  with Verify settings.ScrubLinesContaining(""Running tests from"").
- Empty RunArguments are now rendered as '' instead of ' ', so the
  crash test regex is loosened to '.*?'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Evangelink

Copy link
Copy Markdown
Member

Pushed a follow-up commit (222be94) to address the 2 MTP-specific test failures introduced by the MTP 26307.5 bump:

Failure 1 — MTPHelpSnapshotTests.VerifyMTPHelpOutput (TestBuild Linux/macOS/Windows + FullFramework Windows)

Three independent snapshot drifts:

  1. --show-stderr / --show-stdout default text changed to mention the new LLM/AI agent detection: Default is 'All' (or 'Failed' when an LLM/AI agent environment is detected).
  2. The -e, --environment help block had trailing spaces removed and the blank separator between multiple variables. and Examples: is now truly empty (was 2 spaces).
  3. MTP now emits a new Running tests from <abs-path>\TestProject.dll (<tfm>\|<arch>) line between Waiting for options and extensions... and Platform Options:. This is dynamic per machine/run, so it's scrubbed via settings.ScrubLinesContaining(""Running tests from"").

Failure 2 — RunMTPProjectThatCrashesWithExitCodeZero_ShouldFail

MTP now renders empty RunArguments as '' (empty) instead of ' ' (single space). Loosened the regex from RunArguments ' ': to RunArguments '.*?': so it tolerates either form.

These are pure test-side adjustments — no product code changed. Confirmed locally that the cleaned snapshot exactly matches the Helix-captured help output from the latest failing run (modulo a single trailing blank line, which Verify normalizes).

@Evangelink
Evangelink enabled auto-merge June 9, 2026 06:49
The darc-generated snapshot update stripped trailing spaces and the
final newline, but the actual Microsoft.Testing.Platform help output
emits trailing whitespace on the environment variable description
lines. Restoring them so VerifyMTPHelpOutput matches on Helix.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Evangelink

Copy link
Copy Markdown
Member

I pushed ea87834 to fix the failing MTPHelpSnapshotTests.VerifyMTPHelpOutput test on all 3 platforms (Win/Linux/macOS).

Root cause: The auto-update to MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt in this PR stripped trailing whitespace and the trailing newline, but the actual Microsoft.Testing.Platform output still emits:

  • a trailing space after Sets the value of an environment variable.
  • a trailing space after Creates the variable if it does not exist, overrides if it does.
  • two trailing spaces on the blank line between the description and the Examples: block
  • a final newline at end of file

I verified the fixed file byte-for-byte against the captured received output from the Helix run (build 1455253, MTPHelpSnapshotTests.VerifyMTPHelpOutput.received.txt, after applying the ScrubLinesContaining("Running tests from") scrubber that was added in this PR).

@Evangelink
Evangelink merged commit afa93aa into main Jun 9, 2026
25 checks passed
@Evangelink
Evangelink deleted the darc-main-d60256cd-a0b0-4c59-85c4-b0bef84167e8 branch June 9, 2026 09:18
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants