Skip to content

Stop bootstrap Arcade repos from consuming shared components - #8599

Merged
mthalman merged 3 commits into
dotnet:mainfrom
mthalman:mthalman-remove-sba-shared-components
Aug 25, 2026
Merged

mthalman merged 3 commits into
dotnet:mainfrom
mthalman:mthalman-remove-sba-shared-components

Conversation

@mthalman

@mthalman mthalman commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Problem

Bootstrap Arcade repositories such as arcade and source-build-assets should resolve their build dependencies from previously source-built (PSB) packages. However, the VMR orchestration also supplied them with current 1xx shared-components inputs through package-version properties, NuGet source mappings, and AdditionalSourceBuiltNupkgCacheDir.

When PSB and shared components are at different servicing levels, the shared-components package versions can override PSB versions and create a torn bootstrap state. Bootstrap repositories can also restore incidental dependencies from the shared-components feed even though they should not depend on those components.

Solution

Use BootstrapArcadeRepos to exclude every bootstrap Arcade repository from shared-components inputs while preserving the existing behavior for all other repositories. Bootstrap repositories now receive package versions and restore inputs from PSB only; shared-components version properties, NuGet mappings, and the additional package cache are omitted from their builds.

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

Copilot-Session: 73c352af-0ec4-41b4-9b99-a74e57323849
Copilot AI lite review requested due to automatic review settings August 24, 2026 17:22
@mthalman
mthalman requested review from a team as code owners August 24, 2026 17:22
@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.

Pull request overview

This PR adjusts the VMR source-build orchestration so source-build-assets (SBA) no longer receives or consumes “shared components” inputs (feeds, mappings, package-version props, and the extra nupkg cache), ensuring SBA bootstraps exclusively from previously-source-built (PSB) artifacts and avoiding torn bootstrap states when servicing levels diverge.

Changes:

  • Introduces a per-repository switch (_UseSharedComponentsInputs) that disables shared-components inputs specifically for source-build-assets.
  • Updates repo-project NuGet feed injection, source mapping inputs, and package version props generation to honor _UseSharedComponentsInputs.
  • Updates/extends tests to validate SBA configs do not include shared-components as a mapped source-build input, even if the source is present in packageSources.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/Microsoft.DotNet.Tests/PackageSourceMappingsTests.cs Updates SBA source list and adds a regression test ensuring shared-components aren’t mapped for SBA.
repo-projects/Directory.Build.targets Gates shared-components NuGet source injection, build-source lists, and shared-components package version props generation on _UseSharedComponentsInputs.
repo-projects/Directory.Build.props Defines _UseSharedComponentsInputs as enabled for all repos except source-build-assets, and gates AdditionalSourceBuiltNupkgCacheDir accordingly.

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

@ViktorHofer

ViktorHofer commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

source-build-assets is a bootstrap repository whose build dependencies should come from previously source-built (PSB) packages.

Isn't Arcade in the same bucket?

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

Copilot-Session: 73c352af-0ec4-41b4-9b99-a74e57323849
@mthalman mthalman changed the title Stop source-build-assets from consuming shared components Stop bootstrap Arcade repos from consuming shared components Aug 24, 2026
@mthalman

Copy link
Copy Markdown
Member Author

source-build-assets is a bootstrap repository whose build dependencies should come from previously source-built (PSB) packages.

Isn't Arcade in the same bucket?

Fixed in 4b0a884

Comment thread repo-projects/Directory.Build.props Resolved
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 73c352af-0ec4-41b4-9b99-a74e57323849
@mthalman
mthalman requested a review from ViktorHofer August 24, 2026 20:08
@mthalman
mthalman merged commit 76efd23 into dotnet:main Aug 25, 2026
11 checks passed
@mthalman
mthalman deleted the mthalman-remove-sba-shared-components branch August 25, 2026 12:24
@akoeplinger

Copy link
Copy Markdown
Member

should we backport this?

@mthalman

Copy link
Copy Markdown
Member Author

should we backport this?

I don't think there's a need to. There's already a different solution that exists in 10.0.4xx that's not quite as elegant but it still works.

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