Repository navigation
Stop bootstrap Arcade repos from consuming shared components - #8599
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 73c352af-0ec4-41b4-9b99-a74e57323849
|
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.
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 forsource-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.
Isn't Arcade in the same bucket? |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 73c352af-0ec4-41b4-9b99-a74e57323849
Fixed in 4b0a884 |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 73c352af-0ec4-41b4-9b99-a74e57323849
|
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. |
Problem
Bootstrap Arcade repositories such as
arcadeandsource-build-assetsshould 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, andAdditionalSourceBuiltNupkgCacheDir.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
BootstrapArcadeReposto 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.