Skip to content

release-tools: nixfmt linux-arm64 determinism_check fails on 32 HaskellCabalLibrary outputs (part of #14209) #14400

Closed

Description

@TrapsterDK

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.

Part of #14209.

Activity

  1. added
    P2
    cloud-slot-2
    on Nov 21, 2026
  2. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    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.


    Generated by Claude Code

  3. removed
    cloud-slot-2
    on Nov 21, 2026
  4. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    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:

    • bazel-out/k8-fastbuild-ST-7e93208a18e1/bin/external/+cabal+haskell_weeder_hackage_ansi-terminal/_install/lib/libHSansi-terminal-1.1.5-ghc9.10.3.so
    • bazel-out/k8-fastbuild-ST-7e93208a18e1/bin/external/+cabal+haskell_weeder_hackage_megaparsec/_install/lib/libHSmegaparsec-9.8.3-ghc9.10.3.so
    • bazel-out/k8-fastbuild-ST-7e93208a18e1/bin/external/+cabal+haskell_weeder_hackage_scientific/_install/lib/libHSscientific-0.3.9.0-ghc9.10.3.so

    Please make the fix's proof cover the haskell Linux legs (linux-x86_64 and linux-arm64, weeder and hpc_lcov), not only nixfmt.

  5. added
    cloud-pool
    on Nov 21, 2026
  6. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim b830bd07


    Generated by Claude Code

  7. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 21, 2026
  8. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    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.


    Generated by Claude Code

  9. added
    blocked
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2blockedcloud-taken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions