Skip to content

Fix update-dependencies checksum resolution logic - #2907

Merged
mthalman merged 1 commit into
dotnet:nightlyfrom
mthalman:update-deps2
Jun 21, 2021
Merged

mthalman merged 1 commit into
dotnet:nightlyfrom
mthalman:update-deps2

Conversation

@mthalman

Copy link
Copy Markdown
Member

Given that the binaries stored in blob storage for preview bits are not immutable (some get signed just prior to release and overwrite the original non-signed files), we need to adjust what the update-dependencies tool uses for its checksum source.

The best authority for checksum values on release day is https://dotnetcli.blob.core.windows.net/dotnet/checksums/<product-version>-sha.txt. This file aggregates all the checksums and is updated with final checksum values even before the final files have been copied to blog storage. So I moved this checksum source to be the first one that is checked.

But there is an existing issue in the logic which prevents that checksum source from being used for preview releases. A preview release version has a value like 6.0.0-preview.5.21301.5 (it contains the build number). But the actual release checksum file for this is https://dotnetcli.blob.core.windows.net/dotnet/checksums/6.0.0-preview.5-sha.txt (without the build number). So the logic is broken today because it will attempt to look for the file at https://dotnetcli.blob.core.windows.net/dotnet/checksums/6.0.0-preview.5.21301.5-sha.txt and get a 404. I've fixed this by checking for whether the version is a preview version and trimming the build version off.

@mthalman
mthalman requested a review from MichaelSimons June 18, 2021 14:15
@ghost ghost added the area-infrastructure label Jun 18, 2021
@mthalman

Copy link
Copy Markdown
Member Author

/azp run dotnet-docker-nightly-pr

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mthalman
mthalman merged commit 0224393 into dotnet:nightly Jun 21, 2021
@mthalman
mthalman deleted the update-deps2 branch June 21, 2021 13:54
@mthalman mthalman mentioned this pull request Jul 12, 2021
39 of 40 tasks
mthalman added a commit to mthalman/dotnet-docker that referenced this pull request Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants