Repository navigation
Internal 2xx fixes - #4932
Merged
Merged
Internal 2xx fixes#4932
Conversation
Download non-portable, RID-specific Private.SourceBuilt.Artifacts in the Download Source-Built Archives step so that prep-source-build.sh finds them already present and skips downloading centos artifacts and bootstrapping to portable. Pass --no-bootstrap and --artifacts-rid to the prep script for the excludeRuntimeDependentJobs case. Co-authored-by: Copilot <[email protected]>
Use curl -o with an explicit output filename instead of curl -O, which derives the filename from the full URL including SAS token query strings, causing 'File name too long' errors on authenticated downloads. Co-authored-by: Copilot <[email protected]>
For non-1xx feature bands, the SDK used is a previous source-built SDK, not a Microsoft SDK. Rename the build job suffix from MsftSdk to PreviousSourceBuiltSdk when excludeRuntimeDependentJobs is true to accurately reflect this. The existing PreviousSourceBuiltSdk legs (which use withPreviousSDK) are excluded for non-1xx since they are redundant. Introduce an sbBuildSuffix variable to avoid repeating the conditional logic in consuming templates. Co-authored-by: Copilot <[email protected]>
The removed PreviousSourceBuiltSdk leg had enablePoison: true. Carry that forward to the centos signing/artifact leg when excludeRuntimeDependentJobs is true. Co-authored-by: Copilot <[email protected]>
mthalman
marked this pull request as ready for review
February 18, 2026 22:35
Fixes some issues that were introduced in https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet/pullrequest/58074 - Restore 'Offline_' prefix in sbBuildSuffix endsWith check so only offline legs get DotNetSourceOnlyPublishArtifacts=true, matching the original 'Offline_MsftSdk' behavior before commit 1247ba8. - Add IsPublishPass2 guard to the recursive Publish MSBuild call in PublishSourceBuild.props to prevent CreatePrivateSourceBuiltArtifactsArchive from triggering again on the second pass. Caused by publishing in conjunction with poisoning enabled. ---- #### AI description (iteration 1) #### PR Classification Bug fix addressing an infinite loop in the source-build publish pass. #### PR Summary This PR refines conditional checks to prevent repeated publishing during source-build. - In `eng/PublishSourceBuild.props`, the publish target condition now includes an extra check (`$(IsPublishPass2)` not equal to true) to avoid duplicate execution. - In `eng/pipelines/templates/stages/source-build-and-validate.yml`, the build name condition is updated to use an "Offline_" prefix format for correctly flagging source-build artifact publishing. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
#### AI description (iteration 1) #### PR Classification This pull request fixes source build issues for internal builds by updating pipeline configurations, tool detection logic, and dependency versions. #### PR Summary The changes update various scripts and pipeline templates to ensure robust internal builds with the latest dependencies and correct feed setups. - **`/eng/common/tools.ps1`**: Improved Visual Studio requirement detection by adding error handling and conditional checks for tool settings. - **`/eng/pipelines/templates/steps/vmr-validate-installers.yml` & `/eng/pipelines/pr.yml`**: Added an inline PowerShell task to configure internal NuGet feeds and refined PR build conditions to skip specified authors. - **`/eng/common/core-templates/post-build/post-build.yml`**, **`/eng/common/core-templates/job/publish-build-assets.yml`**, & **`/eng/common/templates/variables/pool-providers.yml`**: Upgraded image settings from vs2019 to vs2022 to align with updated build environment requirements. - **`/global.json`**, **`/eng/Version.Details.xml`**, & **`/eng/Versions.props`**: Updated .NET tool and Arcade SDK versions to newer revisions. - **`/repo-projects/scenario-tests.proj`**: Added a configuration to retain internal NuGet feed prefixes, ensuring tests use the correct sources. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
NikolaMilosavljevic
approved these changes
Feb 20, 2026
Member
Author
|
/backport to release/10.0.3xx |
Contributor
|
Started backporting to |
Contributor
|
@mthalman backporting to git am output$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Move build steps into a shared 'if' condition for excludeRuntimeDependentJobs
Using index info to reconstruct a base tree...
M eng/pipelines/templates/jobs/vmr-build.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/templates/jobs/vmr-build.yml
Applying: Relabel SDK download step
Applying: Download RID-specific source-built artifacts instead of centos
error: sha1 information is lacking or useless (eng/pipelines/templates/jobs/vmr-build.yml).
error: could not build fake ancestor
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 0003 Download RID-specific source-built artifacts instead of centos
Error: The process '/usr/bin/git' failed with exit code 128 |
mthalman
added a commit
to mthalman/dotnet
that referenced
this pull request
Feb 23, 2026
Co-authored-by: Copilot <[email protected]> Co-authored-by: Matt Thalman <[email protected]>
ViktorHofer
reviewed
Aug 13, 2026
| <MSBuild Projects="$(MSBuildProjectFullPath)" | ||
| Targets="Publish" | ||
| Condition="'$(DotNetSourceOnlyPublishArtifacts)' == 'true'" | ||
| Condition="'$(DotNetSourceOnlyPublishArtifacts)' == 'true' and '$(IsPublishPass2)' != 'true'" |
Member
There was a problem hiding this comment.
I just noticed that this fix isn't present in main and forward ported it via #8276. I would double check that there isn't anything else from this PR missing.
This was referenced Aug 13, 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.
Port of the changes from https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet/pullrequest/58074
Problem
Non-1xx feature band branches (2xx, 3xx, etc.) exclude runtime-dependent components from their builds. They only build SDK tooling and reuse the shared runtime from the 1xx band. Because the runtime isn't built, the bootstrap process (which downloads CentOS artifacts and bootstraps them to be portable) cannot work. Since the SDK being used is non-portable, it results in an attempt to get a non-portable CrossGen package which doesn't exist from the PSB artifacts (which are currently portable) -- see https://dev.azure.com/dnceng/internal/_build/results?buildId=2906286&view=logs&j=0c2a1884-6715-550d-a904-b6e3cc3a6e36&t=3cbdffe4-1ca5-5d9e-d978-72178c29357a. Instead, the pipeline needs to download non-portable, RID-specific previously source-built artifacts directly instead.
Additionally, when downloading archives from authenticated (internal) storage, curl -O derives the output filename from the full URL including the SAS token query string, resulting in a "File name too long" error (seen on AlmaLinux).
Fix