Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don't force shipping versions to be used in VMR builds #11625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

jkoritzinsky
Copy link
Member

@jkoritzinsky jkoritzinsky commented Mar 25, 2025

Fixes failures like https://dev.azure.com/dnceng-public/public/_build/results?buildId=991991&view=results

Context

When MSBuild is being built in the VMR, sometimes later-built packages can end up with different versions than earlier-built packages. That's not good, but it doesn't cause failures.

However, these later-built packages can have different (higher) versions of dependency projects that had already been built with the lower versions. This causes downgrade failures like the following intermittently for any VMR jobs triggered around the end of the PST workday:

Detected package downgrade: Microsoft.Build.Tasks.Core from 17.15.0-ci-25175-01 to centrally defined 17.15.0-ci-25174-01. Update the centrally managed package version to a higher version.
Msbuild.Tests.Utilities -> Microsoft.Build.Runtime 17.15.0-ci-25174-01 -> Microsoft.Build.Tasks.Core (>= 17.15.0-ci-25175-01)
Msbuild.Tests.Utilities -> Microsoft.Build.Tasks.Core (>= 17.15.0-ci-25174-01)

Changes Made

Don't build MSBuild with shipping versions in the VMR unless the VMR passes an official build ID.

Testing

Local validation

Notes

This needs to be in the VMR before we switch to flat flow as after that switch, we'll move source-build to use the same versioning rules as unified-build and they'll start getting destabilized in the same way.

@jkoritzinsky jkoritzinsky requested a review from a team as a code owner March 25, 2025 23:03
@jkoritzinsky jkoritzinsky requested a review from a team March 25, 2025 23:04
@jkoritzinsky jkoritzinsky moved this to In Progress in .NET Unified Build Mar 25, 2025
@jkoritzinsky
Copy link
Member Author

@rainersigwald can you merge when you have a chance? I don't have permissions.

@rainersigwald rainersigwald merged commit 8777dca into dotnet:main Mar 27, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in .NET Unified Build Mar 27, 2025
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.

3 participants