Repository navigation
Fix MTP handshakes in source-build test pipelines - #8858
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2ec4e16f-2908-43e1-9f0c-51b3a44c35bc
|
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. |
There was a problem hiding this comment.
🟢 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 thevmr-license-scanstage’sdotnet testinvocation. - Removed
-flp:LogFile=...from thesdk-diff-testsjob’sdotnet testinvocation.
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
left a comment
There was a problem hiding this comment.
Thanks for fixing. Isn't it weird that dotnet test supports -clp but not -flp?
|
AzDO build passed but didn't report to GitHub, merging |
sounds weird to me too. I assume there's a filter of flags which are passed to msbuild somewhere? |
|
/backport to release/11.0.1xx |
|
Started backporting to |
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 testforwarded the MSBuild-flpargument to the MTP xUnit application, which rejected it as an unknown option.Description
Fix: Remove
-flpfrom both pipeline invocations while retaining binlog and console logging. Local validation confirmed successful MTP handshakes and filtered test discovery.