theStack
commented at 12:03 pm on November 28, 2022:
contributor
This is a small follow-up to #25650 (commit 614d4682badaadac74b825a45aaee9c2309a3e81) with three fixes/improvements:
fix “Checksum did not match” detection, which was not adapted to the new SHA256_SUMS structure and hence never executed (the list of tarball names isn’t directly in the dictionary’s values anymore, but has to be extracted from the 'tarball' field of each value)
make both help text and default tag download order deterministic by sorting default tags
--tags argument help text: add missing space between “for” and “backwards”
script: small fixups/improvements for get_previous_releases.py
This is a small follow-up to #25650 (commit
614d4682badaadac74b825a45aaee9c2309a3e81) with three fixes/improvements:
- fix "Checksum did not match" detection, which was not adapted to the new
SHA256_SUMS structure and hence never executed (the list of tarball
names isn't directly in the dictionary's values anymore, but has to be
extracted from the 'tarball' field of each value)
- make both help text and default tag download order deterministic by
sorting default tags
- "--tags" argument help text: add missing space between "for" and
"backwards"
9b5feb76bc
DrahtBot
commented at 12:03 pm on November 28, 2022:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviews
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
DrahtBot added the label
Consensus
on Nov 28, 2022
fanquake removed the label
Consensus
on Nov 28, 2022
fanquake added the label
Tests
on Nov 28, 2022
fanquake requested review from josibake
on Nov 28, 2022
fanquake requested review from Sjors
on Nov 28, 2022
maflcko renamed this:
script: small fixups/improvements for get_previous_releases.py
test: small fixups/improvements for get_previous_releases.py
on Nov 28, 2022
maflcko removed the label
Tests
on Nov 28, 2022
DrahtBot added the label
Tests
on Nov 28, 2022
Sjors approved
Sjors
commented at 12:54 pm on November 28, 2022:
member
tACK9b5feb76bc9458eec806db677af6161b56b8b23f. Tested that if I change a checksum, or remove a release, it catches that.
josibake approved
josibake
commented at 12:55 pm on November 28, 2022:
member
I modified the sha256 sum for v23 and then ran ./test/get_previous_releseases.py -b v23.0 to verify I got the expected error of “Checksum did not match.”
This could be addressed in a follow-up, but I did notice while testing that if the binaries have been previously downloaded the script will use the cached version and skip checking the sha256sum. Seems like it would be better to still check the sha256sum even if using the cached binary as the binary could have been corrupted/modified since it was previously downloaded.
EDIT: regarding cached binaries, we delete the tarball after we check it and it doesn’t seem worth it to keep the tarball around just so that we can re-verify the checksum and unzip it every time we want to use it, so nvm
maflcko merged this
on Nov 28, 2022
maflcko closed this
on Nov 28, 2022
theStack deleted the branch
on Nov 28, 2022
sidhujag referenced this in commit
a807bc429f
on Dec 1, 2022
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-12-22 15:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me