Commit 2dcabb1
zola, tamarin-prover: fix reproducibility
Both were flagged `unknown` by a build-twice audit of the 87 packages added
since the last fleet run. They turned out to be completely different problems.
zola — the reproducibility guide was applied halfway. The recipe already cites
minimal-repro's guide and strips build paths, but never pinned codegen. rustc's
default release build shards codegen across parallel units that finish in
thread-completion order, so functions are EMITTED in a different order each
build. Measured on 0.22.1: 16.89% of bytes differed while the total size stayed
identical, and 69% of differing windows had a byte-exact twin elsewhere in the
other build — a size-preserving permutation, i.e. ordering, not codegen
variance. Adds `-C codegen-units=1` (ordering) and
`-C symbol-mangling-version=v0` (legacy mangling embeds a per-session hash).
Same fix as nushell and difftastic.
tamarin-prover — not GHC, and not the toolchain. Its version banner embeds the
wall-clock compile time via a TemplateHaskell splice that calls getCurrentTime
while compiling; it asks the clock directly, so SOURCE_DATE_EPOCH never reaches
it. Exactly 26 bytes of a 135 MB binary differ, and the Haskell codegen is
otherwise bit-identical — the GHC determinism work is holding fine. Rewrites the
splice to a fixed instant derived from SOURCE_DATE_EPOCH, locating the source
file by content so an upstream file move fails loudly instead of silently
reverting to a wall clock.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent defad31 commit 2dcabb1
2 files changed
Lines changed: 44 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
70 | 100 | | |
71 | 101 | | |
72 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
10 | 21 | | |
11 | 22 | | |
| |||
0 commit comments