Repository navigation
Let an explicit OptProf drop override the source branch - #17757
Merged
akoeplinger merged 1 commit intoNov 10, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 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
AlesProkop
marked this pull request as ready for review
November 2, 2026 12:14
akoeplinger
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to dotnet/msbuild#14019
Context
An explicit
VisualStudioIbcDropalready takes precedence over branch lookup, but validation rejects it when a default source branch is populated.Changes Made
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\OptProfResult: 1 passed. The same test failed with the original guard restored.
To double check: