Repository navigation
Fix update-dependencies checksum resolution logic - #2907
Merged
Merged
Conversation
MichaelSimons
approved these changes
Jun 18, 2021
Member
Author
|
/azp run dotnet-docker-nightly-pr |
|
Azure Pipelines successfully started running 1 pipeline(s). |
39 of 40 tasks
mthalman
added a commit
to mthalman/dotnet-docker
that referenced
this pull request
Jul 12, 2021
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.
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 ishttps://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 athttps://dotnetcli.blob.core.windows.net/dotnet/checksums/6.0.0-preview.5.21301.5-sha.txtand get a 404. I've fixed this by checking for whether the version is a preview version and trimming the build version off.