Skip to content

Use SB artifacts RID#1910

Merged
mthalman merged 2 commits into
dotnet:mainfrom
mthalman:2xx-artifacts-rid
Aug 19, 2025
Merged

Use SB artifacts RID#1910
mthalman merged 2 commits into
dotnet:mainfrom
mthalman:2xx-artifacts-rid

Conversation

@mthalman

Copy link
Copy Markdown
Member

Contributes to #1011

To support non-1xx feature bands for source-only builds, the prep script downloads the SB artifacts that came were produced from the corresponding 1xx build. This is known as the shared components artifacts tarball.

However, the logic to determine the URL from which to download this tarball is incorrect. The filename contains the RID value. The script is using Arcade scripts to get the RID but that RID doesn't align with the RID defined in the tarball. The RID for the tarball is actually defined by the pipeline (example). To fix this, we need to align with the RID being used by the pipeline.

The prep script already happens to have an artifactsRid option. But that applies to the downloading of the PSB artifacts, which today is only ever valid to use the centos.<version>-x64 RID since that is the only artifacts tarball we publish from where this downloads from. So, without any other changes, setting artifactsRid wouldn't work in cases like almalinux.8-x64.

Instead, we can consolidate the manner in which we retrieve SB artifacts between PSB and shared components. Today these are referenced in different ways. PSB artifacts get published as part of the SB release process and referenced from https://builds.dotnet.microsoft.com/source-built-artifacts/assets. And shared components artifacts are published via Arcade from VMR builds and are referenced from https://ci.dot.net/public/source-build.

These changes align the reference of the artifacts so that we always consume the artifacts published by Arcade at https://ci.dot.net/public/source-build. This allows artifactsRid to be set in all cases and be able to retrieve the corresponding tarball for both PSB and shared components.

Furthermore, this means that SB artifact publishing can be removed from the SB release process as these won't be consumed anymore.

@MichaelSimons MichaelSimons left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make sure an issue is opened to track the release pipeline publishing cleanup?

@mthalman mthalman enabled auto-merge (squash) August 19, 2025 17:13
@mthalman mthalman merged commit 0d1ea18 into dotnet:main Aug 19, 2025
11 checks passed
@mthalman mthalman deleted the 2xx-artifacts-rid branch August 19, 2025 19:13
@mthalman

Copy link
Copy Markdown
Member Author

Can you make sure an issue is opened to track the release pipeline publishing cleanup?

dotnet/source-build#5317

@mthalman

Copy link
Copy Markdown
Member Author

/backport to release/10.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants