Skip to content

Online migrations of checksums - #118

Draft
Yannicked wants to merge 4 commits into
iterorganization:developfrom
Yannicked:feature/online-migrations
Draft

Online migrations of checksums#118
Yannicked wants to merge 4 commits into
iterorganization:developfrom
Yannicked:feature/online-migrations

Conversation

@Yannicked

Copy link
Copy Markdown
Collaborator

No description provided.

SimonPinches and others added 4 commits July 30, 2026 11:08
imas.checksum.checksum() feeds the files returned by imas_files() into a
single running SHA1 hash in iteration order. imas_files() built the HDF5 and
ASCII file lists from Path.glob(), which returns entries in an arbitrary,
filesystem-dependent order. As a result the same byte-identical IMAS data
could hash to different checksums on Windows vs Linux.

Sort the glob results explicitly by file name so the iteration order is
deterministic and identical across platforms. Sort by p.name rather than
relying on Path comparison, which is itself platform-dependent (Windows folds
case, Linux does not).

Add regression tests for imas_files ordering.
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