You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
release-tools: nixfmt linux-arm64 determinism_check fails on 32 HaskellCabalLibrary outputs (part of #14209) #14400
Found by the release dry run for #14363. Run https://github.com/devhusdk/rules_dx/actions/runs/44876826441 fails tools / hackage (nixfmt, linux-arm64). The build passes, then //tools/testing:determinism_check reports 32 nondeterministic actions. All 32 are HaskellCabalLibrary outputs in bazel-out/aarch64-fastbuild-ST-*: 18 are _install/lib/libHS<pkg>-<ver>-ghc9.10.3.so and 14 are _install/<pkg>-<ver>_iface directories, in packages such as ansi-terminal, hashable, megaparsec, nixfmt and scientific. The nixfmt-exe-nixfmt binary is not in the list.
#14237 added the check, and this run is its first on this leg. The hlint and ormolu linux-arm64 legs stopped earlier on #14379, and the haskell linux legs stopped on #14371, so they are likely to hit the same failure next.
Where
.github/workflows/release-tools.yml:459-475 (hackage flags and the determinism_check call)
the haskell_cabal_library actions for @haskell_nixfmt_hackage (they build shared libraries even under --features=fully_static_link)
Fix
Diff one .so and one _iface pair between the two output bases that determinism_check writes under --out, and name the source of the difference.
Then make those actions deterministic. Either stop building the shared libraries in the musl fully_static_link configuration or pass the GHC flags that remove the difference. Do not exempt the actions from the check.
Proof: the hackage (nixfmt, linux-arm64) leg of a release.yml dry run passes.
Draft fix in #14430. It covers both causes: the .so RUNPATH kept an absolute sandbox path to the GHC closure dir, and the .hi files recorded the absolute path of the rts ghcversion.h. The 17 nixfmt Hackage libraries now pass determinism_check on linux_x86_64_musl.
Next slice: file the tweag/rules_haskell issue (this session gets 403), add its Upstream: line to both patches so //patches:headers_test passes, then do a release dry run of the nixfmt linux-arm64 leg.
The haskell linux-x86_64 leg of release-tools.yml (#13734) hits the same pattern. On origin/main (e164a04), I ran the leg's determinism check locally with CI's flags (--platforms=//tools/platforms:linux_x86_64_musl --features=fully_static_link --spawn_strategy=processwrapper-sandbox --disk_cache= --noremote_accept_cached) on //haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source. It failed with Error: "104 nondeterministic actions".
All 104 are HaskellCabalLibrary outputs (.so and _iface) from 53 @haskell_weeder_hackage_* packages. Nothing else differs. Three examples:
Blocked: #14430 is ready, carries its Upstream: headers and is on the train. What remains is owner-only: file the tweag/rules_haskell issue (#14473), and run a release.yml dry run of the hackage (nixfmt, linux-arm64) and haskell linux legs. Evidence can't set the musl --platforms/--features flags.
Activity
TrapsterDK commentedon Nov 21, 2026
Draft fix in #14430. It covers both causes: the
.soRUNPATH kept an absolute sandbox path to the GHC closure dir, and the.hifiles recorded the absolute path of the rtsghcversion.h. The 17 nixfmt Hackage libraries now passdeterminism_checkon linux_x86_64_musl.Next slice: file the tweag/rules_haskell issue (this session gets 403), add its
Upstream:line to both patches so//patches:headers_testpasses, then do a release dry run of the nixfmt linux-arm64 leg.Generated by Claude Code
TrapsterDK commentedon Nov 21, 2026
The haskell linux-x86_64 leg of release-tools.yml (#13734) hits the same pattern. On origin/main (e164a04), I ran the leg's determinism check locally with CI's flags (
--platforms=//tools/platforms:linux_x86_64_musl --features=fully_static_link --spawn_strategy=processwrapper-sandbox --disk_cache= --noremote_accept_cached) on//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source. It failed withError: "104 nondeterministic actions".All 104 are
HaskellCabalLibraryoutputs (.soand_iface) from 53@haskell_weeder_hackage_*packages. Nothing else differs. Three examples:bazel-out/k8-fastbuild-ST-7e93208a18e1/bin/external/+cabal+haskell_weeder_hackage_ansi-terminal/_install/lib/libHSansi-terminal-1.1.5-ghc9.10.3.sobazel-out/k8-fastbuild-ST-7e93208a18e1/bin/external/+cabal+haskell_weeder_hackage_megaparsec/_install/lib/libHSmegaparsec-9.8.3-ghc9.10.3.sobazel-out/k8-fastbuild-ST-7e93208a18e1/bin/external/+cabal+haskell_weeder_hackage_scientific/_install/lib/libHSscientific-0.3.9.0-ghc9.10.3.soPlease make the fix's proof cover the haskell Linux legs (linux-x86_64 and linux-arm64, weeder and hpc_lcov), not only nixfmt.
TrapsterDK commentedon Nov 21, 2026
cloud-claim b830bd07
Generated by Claude Code
TrapsterDK commentedon Nov 21, 2026
Blocked: #14430 is ready, carries its
Upstream:headers and is on the train. What remains is owner-only: file the tweag/rules_haskell issue (#14473), and run arelease.ymldry run of thehackage (nixfmt, linux-arm64)and haskell linux legs. Evidence can't set the musl--platforms/--featuresflags.Generated by Claude Code