Skip to content

Fix MTP handshakes in source-build test pipelines - #8858

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
mthalman:mthalman-fix-mtp-handshake
Sep 1, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
mthalman:mthalman-fix-mtp-handshake

Conversation

@mthalman

Copy link
Copy Markdown
Member

Problem

Error or behavior: Source-build SDK diff and license-scan tests exited with code 5 before running tests following the MTP migration in #8060.

Root cause: dotnet test forwarded the MSBuild -flp argument to the MTP xUnit application, which rejected it as an unknown option.

Description

Fix: Remove -flp from both pipeline invocations while retaining binlog and console logging. Local validation confirmed successful MTP handshakes and filtered test discovery.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2ec4e16f-2908-43e1-9f0c-51b3a44c35bc
Copilot AI lite review requested due to automatic review settings August 31, 2026 15:25
@mthalman
mthalman requested review from a team as code owners August 31, 2026 15:25
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Pull request overview

This PR updates the VMR’s source-build validation pipelines to avoid passing MSBuild’s -flp (file logger parameters) through dotnet test after the Microsoft.Testing.Platform (MTP) migration, preventing early failures during test execution.

Changes:

  • Removed -flp:LogFile=... from the vmr-license-scan stage’s dotnet test invocation.
  • Removed -flp:LogFile=... from the sdk-diff-tests job’s dotnet test invocation.
File summaries
File Description
eng/pipelines/templates/stages/vmr-license-scan.yml Drops -flp from the license-scan test invocation to avoid MTP rejecting the forwarded option.
eng/pipelines/templates/jobs/sdk-diff-tests.yml Drops -flp from SDK diff tests to prevent the same MTP command-line rejection.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing. Isn't it weird that dotnet test supports -clp but not -flp?

@mthalman
mthalman enabled auto-merge (squash) August 31, 2026 18:49
@akoeplinger
akoeplinger disabled auto-merge September 1, 2026 10:29
@akoeplinger

Copy link
Copy Markdown
Member

AzDO build passed but didn't report to GitHub, merging

@akoeplinger
akoeplinger merged commit 1c0cb9d into dotnet:main Sep 1, 2026
10 of 11 checks passed
@akoeplinger

Copy link
Copy Markdown
Member

Isn't it weird that dotnet test supports -clp but not -flp?

sounds weird to me too. I assume there's a filter of flags which are passed to msbuild somewhere?

@akoeplinger

Copy link
Copy Markdown
Member

/backport to release/11.0.1xx

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0.1xx (link to workflow run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants