-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[release/3.1] Generate non-stable version for installer #26065
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
Conversation
src/Installers/Windows/Wix.targets
Outdated
| <PropertyGroup> | ||
| <!-- Used for generating stable upgrade codes for bundles --> | ||
| <Version>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).0</Version> | ||
| <Version>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).$(FileRevisionVersion)</Version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is what's used. For 3.1, we should fix this:
<GenerateGuid NamespaceGuid="$(NamespaceGuid)" Values="$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion);$(Platform)">
<Output TaskParameter="Guid" PropertyName="BundleUpgradeCode" />
</GenerateGuid>
For example, if we're building the following bundles, we want something like this (I kept the bundle version to 3 parts)
3.1.44228 x86 46e465cf-b871-370b-972b-07484f8dbb0a
3.1.48943 x86 46e465cf-b871-370b-972b-07484f8dbb0a
3.1.2357 x64 e9cb5174-b032-3f09-8a6c-a4513eaf62e8
3.1.60141 x64 e9cb5174-b032-3f09-8a6c-a4513eaf62e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious: What sets $(FileRevisionVersion)❔
And, a nit if we need this change:
| <Version>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).$(FileRevisionVersion)</Version> | |
| <Version>$(AspNetCoreMajorMinorVersion).$(AspNetCorePatchVersion).$(FileRevisionVersion)</Version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <_FileRevisionVersion>$(VersionSuffixDateStamp)</_FileRevisionVersion> |
dougbu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, WFM but @joeloff's opinion is the one that matters
|
New builds w/ version+1 (last one had a packageIndex failure) https://dev.azure.com/dnceng/internal/_build/results?buildId=823563&view=results |
joeloff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good. We should get a couple of test builds to look at
Maj.Min.x
Maj.Min.x+1
Maj.Min+1
and pick two random official releases and then check that downgrades are blocked, upgrades are processed.
dougbu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If manual tests of upgrades work, WFM
|
Testing confirmed that the behavior is now correct. 3.1.10 removes 3.1.9 when installed, 3.1.9 won't install when 3.1.10 is present, and 3.2.0 installs alongside 3.1.10. |
|
Woohoo! That's great to hear @wtgodbe |
|
@Pilchie this is the PR where I meant to ask you about 3.1.10 ask or tell mode |
|
Same - tell mode with an explicit mail should be fine. |
Generate a non-stable ProductVersion for installers so that updates can occur between installers in the same Major.Minor.Patch band (e.g. previewN to previewN+1)
https://dev.azure.com/dnceng/internal/_build/results?buildId=821089&view=results