Skip to content

Let an explicit OptProf drop override the source branch - #17757

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
AlesProkop:alesprokop-optprof-drop-precedence
Nov 10, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
AlesProkop:alesprokop-optprof-drop-precedence

Conversation

@AlesProkop

Copy link
Copy Markdown
Member

Related to dotnet/msbuild#14019

Context

An explicit VisualStudioIbcDrop already takes precedence over branch lookup, but validation rejects it when a default source branch is populated.

Changes Made

  • Removed the source-branch conflict check; left the separate drop-ID check unchanged.
  • Added one offline regression test exercising the real acquisition target and checking the explicit drop download without branch discovery.

Testing

With MSBUILDFORCEMULTITHREADED=1:

.\.dotnet\dotnet.exe test src\Microsoft.DotNet.Arcade.Sdk.Tests\Microsoft.DotNet.Arcade.Sdk.Tests.csproj --no-restore --configuration Release --filter "FullyQualifiedName=Microsoft.DotNet.Arcade.Sdk.Tests.VisualStudioOptimizationDataTests.ExplicitDropTakesPrecedenceOverSourceBranch" -bl:artifacts\log\Release\OptProf-regression-fixed.binlog --logger "trx;LogFileName=OptProf-regression-fixed.trx" --results-directory artifacts\TestResults\OptProf

Result: 1 passed. The same test failed with the original guard restored.

To double check:

Copilot AI balanced review requested due to automatic review settings November 2, 2026 12:12

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

No active review issues are recorded for the change allowing explicit optimization-data drops to take precedence over source-branch discovery.

No open issues 🎉

What changed in this PR

Allows an explicit VisualStudioIbcDrop to take precedence over a populated source branch in Arcade’s optimization-data acquisition flow.

Changes:

  • Removes the source-branch conflict check while retaining drop-ID conflict validation.
  • Adds an offline regression test verifying explicit-drop download without branch discovery.
  • Copies the acquisition targets into the test assets.
File Description
src/​Microsoft.DotNet.Arcade.Sdk/​toolset/​VisualStudio.AcquireOptimizationData.targets Allows an explicit drop alongside a source branch.
src/​Microsoft.DotNet.Arcade.Sdk.Tests/​VisualStudioOptimizationDataTests.cs Tests explicit-drop precedence using a fake download tool.
src/​Microsoft.DotNet.Arcade.Sdk.Tests/​Microsoft.DotNet.Arcade.Sdk.Tests.csproj Includes the acquisition targets in test output.

Review effort: Balanced

@akoeplinger
akoeplinger merged commit b12bfba into dotnet:main Nov 10, 2026
12 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 11, 2026
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.

3 participants