Skip to content

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Jan 27, 2022

Quite often users ask for daily builds with some recent fix inside, so they(us) need to quickly find the corresponding dotnet/runtime commit used in that latest daily build.
My understanding that currently you need to do something like this: dotnet/runtime#63285 (comment)

This PR saves dotnet/runtime's commit directly into productCommit-rid.txt so anyone can quickly match dotnet/runtime and the latest daily build right on the https://github.com/dotnet/installer/blob/main/README.md#installers-and-binaries page by clicking on "blue labels"

@marcpopMSFT marcpopMSFT requested a review from mmitche February 2, 2022 22:41
<WriteLinesToFile
File="$(ArtifactsShippingPackagesDir)productCommit-$(Rid).txt"
Lines="$(BUILD_SOURCEVERSION)%0A$(PackageVersion)"
Lines="installer%3A$(BUILD_SOURCEVERSION)%2C%20$(PackageVersion)%0Aruntime%3A$(DepRuntimeCommit)%2C%20$(DepRuntimeVersion)%0A"
Copy link
Member

Choose a reason for hiding this comment

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

I think there are various things that consume this file, and we can't update the format without breaking them. It might be easier to create a new file for the runtime version.

Copy link
Member

Choose a reason for hiding this comment

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

Do we know what those things are? Making a new file would be fine, but it is going to take a lot more work to plumb it through to the README.

It we want programs to consume this information, maybe we should make a new file that programs can consume, and that we can add to over time without breaking those programs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed PR to produce a new file productCommits-$(Rid).txt

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I take back my feedback. I was confusing the productCommit-$(Rid).txt file which is part of the packages output folder with the .version and .toolsetversion files which are included in the SDK folder of the product.

Feel free to change the productCommit-$(Rid).txt file as you see fit. It is possible there's something that consumes it, but if so it would be in our build infrastructure, and we should be able to update it in response to the change.

Copy link
Member Author

Choose a reason for hiding this comment

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

changed to productCommit-$(Rid).txt 🙂

<WriteLinesToFile
File="$(ArtifactsShippingPackagesDir)productCommit-$(Rid).txt"
Lines="$(BUILD_SOURCEVERSION)%0A$(PackageVersion)"
Lines="installer%3A$(BUILD_SOURCEVERSION)%2C%20$(PackageVersion)%0Aruntime%3A$(DepRuntimeCommit)%2C%20$(DepRuntimeVersion)%0A"
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I take back my feedback. I was confusing the productCommit-$(Rid).txt file which is part of the packages output folder with the .version and .toolsetversion files which are included in the SDK folder of the product.

Feel free to change the productCommit-$(Rid).txt file as you see fit. It is possible there's something that consumes it, but if so it would be in our build infrastructure, and we should be able to update it in response to the change.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

This LGTM.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

This LGTM. Thanks @EgorBo!

Overwrite="true"
Encoding="ASCII" />

<GetDependencyInfo

Choose a reason for hiding this comment

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

In the same spirit, can WinForms version to be retreived and placed in this file? I would guess that SDK/WPF and WindowsDesktop versions maybe interested to somebody.

@akoeplinger
Copy link
Member

@dsplaisted can we merge this? I hit a case today where it would've been useful :)

@dsplaisted dsplaisted merged commit d354b6a into dotnet:main Mar 3, 2022
@dsplaisted
Copy link
Member

@dsplaisted can we merge this? I hit a case today where it would've been useful :)

Done!

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.

5 participants