Skip to content

Update VersionTools and add IsReleaseOnlyPackageVersion #1434

Merged
epananth merged 4 commits intodotnet:masterfrom
epananth:updated-task-ep
Oct 9, 2020
Merged

Update VersionTools and add IsReleaseOnlyPackageVersion #1434
epananth merged 4 commits intodotnet:masterfrom
epananth:updated-task-ep

Conversation

@epananth
Copy link
Member

@epananth epananth commented Oct 9, 2020

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

@epananth
Copy link
Member Author

epananth commented Oct 9, 2020

Asset Manifest
image

Merged Manifest
image

Link to the artifacts -> https://dev.azure.com/dnceng/internal/_build/results?buildId=846325&view=artifacts&type=publishedArtifacts

@epananth
Copy link
Member Author

epananth commented Oct 9, 2020

Need to revert this change -> dotnet/arcade#6319 :/

Commit = GetAzDevCommit(),
IsStable = IsStableBuild.ToString(),
PublishingVersion = manifestBuildData.PublishingVersion.ToString()
PublishingVersion = (PublishingInfraVersion)manifestBuildData.PublishingVersion,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why this cast is now required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the older MicrosoftDotNetVersionToolsVersion PublishingVersion was int, the newer MicrosoftDotNetVersionToolsVersion
PublishingVersion is an enum.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be concerned that someone passes an invalid number here? the direct cast won't fail if provided an invalid int.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That part of validation is done in arcade, since we are just passing the value I think we should be good.

https://github.com/dotnet/arcade/blob/ba32978d76e590e1a5cde6b754eb4e9b8d212c73/src/Microsoft.DotNet.VersionTools/lib/src/BuildManifest/Model/BuildIdentity.cs#L90

Copy link
Contributor

@riarenas riarenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTm, just the question about safeguarding against invalid enum values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants