Skip to content

verify-release-file.sh: check .sha512 files with sha512sum -c#8906

Merged
GGraziadei merged 1 commit into
apache:masterfrom
GGraziadei:fix-verify-release-file-sha512
Jul 19, 2026
Merged

verify-release-file.sh: check .sha512 files with sha512sum -c#8906
GGraziadei merged 1 commit into
apache:masterfrom
GGraziadei:fix-verify-release-file-sha512

Conversation

@GGraziadei

Copy link
Copy Markdown
Member

What is the purpose of the change

dev-tools/rc/verify-release-file.sh always reports SHA file is not correct for release candidates, even when the checksum is valid. The script compares the output of gpg --print-md SHA512 (uppercase hash, split in 8-char blocks across multiple lines) textually with the published .sha512 file, but release .sha512 files are generated in sha512sum format (lowercase continuous hash followed by the file name), so the diff never matches.

This replaces the gpg --print-md + diff comparison with sha512sum -c, which verifies the checksum regardless of formatting.

How was the change tested

Ran the script against the apache-storm-2.8.9-rc1 artifacts from dist.apache.org:

  • before: Signature seems correct / SHA file is not correct (false negative on every file)
  • after: Signature seems correct / apache-storm-2.8.9-src.tar.gz: OK — SHA file is correct

🤖 Generated with Claude Code

The script compared the output of 'gpg --print-md SHA512' textually
against the published .sha512 file, but release .sha512 files are
generated in sha512sum format, so the diff always failed and the script
reported 'SHA file is not correct' even when the hash matched.

Verified against the apache-storm-2.8.9-rc1 artifacts: the script now
reports 'SHA file is correct' for a valid file.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@GGraziadei
GGraziadei merged commit f67e6d4 into apache:master Jul 19, 2026
7 checks passed
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.

3 participants