Skip to content

Shorten Windows desktop test project path - #56503

Merged
marcpopMSFT merged 2 commits into
mainfrom
marcpopmsft-weekly-test-cleanup-734
Oct 28, 2026
Merged

marcpopMSFT merged 2 commits into
mainfrom
marcpopmsft-weekly-test-cleanup-734

Conversation

@marcpopMSFT

Copy link
Copy Markdown
Member

🤖 This is part of the weekly test issue cleanup effort.

Give SupportedOSPlatformVersionCanBeSetInDirectoryBuildTargets a concise explicit project name instead of inheriting its long test method name. The project name is repeated in the generated project directory, project filename, and GeneratedMSBuildEditorConfig filename, which pushed the Full Framework Windows Helix path over MAX_PATH.

Under the same intentionally elongated local test root, this reduces the generated editorconfig path from 433 to 355 characters. Under the normal test root, the resulting path is approximately 246 characters.

Fixes #56499

Validation:

  • scripts\RunTests.cs with the exact test filter and desktop MSBuild
  • Repeated with an intentionally elongated DOTNET_SDK_TEST_EXECUTION_DIRECTORY

Use a concise explicit project name so the generated editorconfig path stays below MAX_PATH on Full Framework test legs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 20:41
@marcpopMSFT
marcpopMSFT requested a review from a team as a code owner October 5, 2026 20:41
@azure-pipelines

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

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

Review effort: Lite
Findings: None

What changed in this PR

Updates a Windows Desktop build test to use an explicitly named TestProject, likely to improve identification/isolation of the test project created for the scenario.

Changes:

  • Set an explicit project name ("SupportedOSPlatform") when constructing TestProject in SupportedOSPlatformVersionCanBeSetInDirectoryBuildTargets.
File Description
test/​Microsoft.NET.Build.Tests/​GivenThatWeWantToBuildAWindowsDesktopProject.cs Names the TestProject instance explicitly in the SupportedOSPlatform version test.

Co-authored-by: Daniel Plaisted <daplaist@microsoft.com>
@joeloff

joeloff commented Oct 12, 2026

Copy link
Copy Markdown
Member

I'm hitting this is in 10 branches too, I assume we're back porting this?

@marcpopMSFT
marcpopMSFT merged commit a75806c into main Oct 28, 2026
23 checks passed
@marcpopMSFT
marcpopMSFT deleted the marcpopmsft-weekly-test-cleanup-734 branch October 28, 2026 23:47
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.

SupportedOSPlatformVersion test fails when editorconfig path exceeds MAX_PATH

5 participants