Update VersionTools and add IsReleaseOnlyPackageVersion #1434
Merged
epananth merged 4 commits intodotnet:masterfrom Oct 9, 2020
Merged
Update VersionTools and add IsReleaseOnlyPackageVersion #1434epananth merged 4 commits intodotnet:masterfrom
epananth merged 4 commits intodotnet:masterfrom
Conversation
Member
Author
Closed
2 tasks
Member
Author
|
Need to revert this change -> dotnet/arcade#6319 :/ |
riarenas
reviewed
Oct 9, 2020
| Commit = GetAzDevCommit(), | ||
| IsStable = IsStableBuild.ToString(), | ||
| PublishingVersion = manifestBuildData.PublishingVersion.ToString() | ||
| PublishingVersion = (PublishingInfraVersion)manifestBuildData.PublishingVersion, |
Contributor
There was a problem hiding this comment.
Can you explain why this cast is now required?
Member
Author
There was a problem hiding this comment.
For the older MicrosoftDotNetVersionToolsVersion PublishingVersion was int, the newer MicrosoftDotNetVersionToolsVersion
PublishingVersion is an enum.
Contributor
There was a problem hiding this comment.
Should we be concerned that someone passes an invalid number here? the direct cast won't fail if provided an invalid int.
Member
Author
There was a problem hiding this comment.
That part of validation is done in arcade, since we are just passing the value I think we should be good.
riarenas
approved these changes
Oct 9, 2020
Contributor
riarenas
left a comment
There was a problem hiding this comment.
LGTm, just the question about safeguarding against invalid enum values.
2 tasks
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.


For the IsReleaseOnlyPackageVersion to show in the merged manifest
First part was Arcade master change -> dotnet/arcade#6340
Release 3.x -> dotnet/arcade#6319
For the merged manifest, we need to update the MicrosoftDotNetVersionToolsVersion to the latest version and add the IsReleaseOnlyPackageVersion attribute in the manifest.
Test Build from arcade-services to generated updated Maestro task -> https://dev.azure.com/dnceng/internal/_build/results?buildId=846200&view=results
Test build from arcade with the updated maestro task , arcade sdk and feeds task -> https://dev.azure.com/dnceng/internal/_build/results?buildId=846325&view=results