-
Notifications
You must be signed in to change notification settings - Fork 711
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
Set build number to arcade build revision for VMR builds #6305
Conversation
@jeffkl @nkolev92 The now VMR uses an official build id that is unified across all repos it builds. This typically only affects the pre-release version information for packages. This is in contrast to before where the build IDs were propagated by the individual repos into the VMR and essentially hardcoded. We can't use that approach anymore since it would mean that builds would keep producing the exact same packages. I noticed something about NuGet that I wanted to run by you. Most repos set their assembly versions as Major.0.0.0. NuGet appears to do: Major.Minor.Patch.Revision instead. So it varies build to build. Today in your official build you build two flavors. A non-RTM set that has revision = build revision of the day, and an RTM version which has revision == 0. The non-RTM bits get inserted into both VS and the .NET SDK. Question: With required the VMR changes, this will mean that the revision number for the assembly versions is going to differ between the VS inserted NuGet packages and the ones inserted into the SDK. Is this going to be an issue? |
I don't think so, we don't always insert into both VS and .NET and so sometimes the build/revision is out of sync. @nkolev92 would know more though... |
No, it's not an issue, we've just preferred having the versions be the same to reduce the number of assemblies loaded in VS. |
Not yet. First shipped build will be p4.
What do you mean by this? |
I meant to say for development. Basically sounds like our builds leading to BAR publishing are only going to be used for dev builds. |
The BAR publishing will stay for now, but the only thing used will just be the source information. The packages aren't useful to .NET any longer. At some point we can get rid of that altogether if you want, and a new commit to a nuget branch will just flow directly into the VMR (via PR) to be built The VMR right now starts all its revisions at .100. This means that it's extremely unlikely to collide with the official builds for repos that keep them. |
My tests look good. Merge when ready. |
Bug
Fixes: dotnet/source-build#4936
Description
In VMR builds, the official build id's revision wasn't getting propagated to NuGet, so we were always getting builds with 32767 as the package revision.
PR Checklist