Skip to content

Download shared components outside of prep script#2403

Merged
mthalman merged 2 commits into
dotnet:release/10.0.1xxfrom
mthalman:dev/mthalman/sbissue5332-2
Sep 15, 2025
Merged

Download shared components outside of prep script#2403
mthalman merged 2 commits into
dotnet:release/10.0.1xxfrom
mthalman:dev/mthalman/sbissue5332-2

Conversation

@mthalman

Copy link
Copy Markdown
Member

Fixes dotnet/source-build#5332

Moves the logic for downloading the shared component artifacts out of the prep-source-build script so that it can be explicitly initiated by the VMR pipeline only. This avoids the scenario described by dotnet/source-build#5332.

To implement this, I refactored the prep script so that the archive downloading is in a separate standalone script. This allows the prep script and the pipeline logic to share a common implementation for this download logic.

Comment thread eng/download-source-built-archive.sh
@mthalman mthalman merged commit 6d6d031 into dotnet:release/10.0.1xx Sep 15, 2025
10 checks passed
@mthalman mthalman deleted the dev/mthalman/sbissue5332-2 branch September 15, 2025 16:22
@mthalman

Copy link
Copy Markdown
Member Author

/backport to main

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@mthalman backporting to "main" failed, the patch most likely resulted in conflicts:

$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Download shared components outside of prep script
Using index info to reconstruct a base tree...
M	eng/pipelines/templates/jobs/vmr-build.yml
M	eng/pipelines/templates/stages/source-build-and-validate.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/templates/jobs/vmr-build.yml
CONFLICT (content): Merge conflict in eng/pipelines/templates/jobs/vmr-build.yml
Auto-merging eng/pipelines/templates/stages/source-build-and-validate.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Download shared components outside of prep script
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

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