Add deterministic file ordering in Builder.Build() (closes #23) #28
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-23"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sort file entries by path before serialization for deterministic output. Includes a test asserting byte-identical output from two runs.
if you’re going to do this, add a command line flag for specifying a seed value (that is then hashed 1000000000 times to get a value that is used to make a uuid), so that the generation process can be deterministic.
Got it — will add a
--seedCLI flag that:This makes manifest generation fully reproducible when the same seed is provided. Working on it now.
it shouldn’t take more than 30 seconds to do the hashing. drop the iteration count until it takes 5-10 seconds to complete.
Dropped iteration count to 150M. Benchmarked on this Apple Silicon Mac:
150M lands squarely in the 5-10s range.
fix the merge conflict please
d947fc81aetofa99bdc5eeMerge conflicts resolved — rebased onto latest
next(which now includes the path invariants and decompression limit changes). All tests pass.nope still broken
fa99bdc5eeto85fc39caceRebased again onto latest
next(now includes PR#17, #18, #20 merges). All tests pass. Conflict resolved.Checkout
From your project repository, check out a new branch and test the changes.