Skip to content

fix(verifier): zero-pad Adler32 checksums to 8 hex characters (#169)#169

Merged
tiborsimko merged 1 commit intocernopendata:masterfrom
tiborsimko:fix-checksum-verification
Dec 17, 2025
Merged

fix(verifier): zero-pad Adler32 checksums to 8 hex characters (#169)#169
tiborsimko merged 1 commit intocernopendata:masterfrom
tiborsimko:fix-checksum-verification

Conversation

@tiborsimko
Copy link
Member

The hex() function does not preserve leading zeros, causing checksum verification to fail when the expected checksum value sent by the CERN Open Data portal has a leading zero (e.g. "03d9681c" vs computed "3d9681c"). This commit fixes the problem.

@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.88%. Comparing base (9b97f7c) to head (b6daa50).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #169   +/-   ##
=======================================
  Coverage   80.88%   80.88%           
=======================================
  Files          12       12           
  Lines         722      722           
=======================================
  Hits          584      584           
  Misses        138      138           
Files with missing lines Coverage Δ
cernopendata_client/verifier.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…endata#169)

The hex() function does not preserve leading zeros, causing checksum
verification to fail when the expected checksum value sent by the CERN
Open Data portal has a leading zero (e.g. "03d9681c" vs computed
"3d9681c"). This commit fixes the problem.
@tiborsimko tiborsimko force-pushed the fix-checksum-verification branch from 2dadcbb to b6daa50 Compare December 17, 2025 08:44
@tiborsimko tiborsimko merged commit b6daa50 into cernopendata:master Dec 17, 2025
24 checks passed
@tiborsimko tiborsimko deleted the fix-checksum-verification branch December 17, 2025 11:59
@tiborsimko tiborsimko self-assigned this Dec 18, 2025
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.

2 participants