Repository navigation
release-tools: haskell and hackage determinism_check on every host (part of #14268) - #14326
TrapsterDK wants to merge 8 commits into
Conversation
|
The four evidence runs (44853620796, 44853627359, 44853634950, 44853641582) all stopped before the determinism check: 🤖 Generated with Claude Code |
|
Merged origin/main (a4c8c2a). On c95eae4, Evidence run 44950862074:
This stays a draft: the Remaining list in the body is still open. 🤖 Generated with Claude Code |
|
/evidence platforms=["windows_x86_64"] task=build relocate=true flags=--//haskell/private/toolchain:ghc_mingw=True scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source //haskell/private/tools/hlint/bin:source e9eb595 builds Generated by Claude Code |
|
Evidence started on |
|
/evidence platforms=["windows_x86_64"] task=build relocate=true flags=--//haskell/private/toolchain:ghc_mingw=True scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source Run 45004200913 reached the check on Windows: 72 actions differ, almost all Generated by Claude Code |
|
Evidence started on |
|
/evidence platforms=["windows_x86_64"] task=build relocate=true flags=--//haskell/private/toolchain:ghc_mingw=True scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source Run 45010873796 uploaded both copies: every Still expected to differ after this: the
Generated by Claude Code |
|
Evidence started on |
|
/evidence platforms=["windows_x86_64"] task=build relocate=true flags=--//haskell/private/toolchain:ghc_mingw=True scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source Run 45015631238: the patched build of both targets passed, then Generated by Claude Code |
|
Evidence started on |
|
Run 45017442095 (windows_x86_64, 411c79c): 72 → 16 nondeterministic actions. Every Generated by Claude Code |
|
/evidence platforms=["windows_x86_64"] task=build relocate=true flags=--//haskell/private/toolchain:ghc_mingw=True scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source b351ea5: the artifact of run 45017442095 shows only Generated by Claude Code |
|
/evidence platforms=["macos_arm64"] task=build relocate=true scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source macOS haskell targets alone (the combined run was cancelled at ~70 min). Generated by Claude Code |
|
/evidence platforms=["macos_arm64"] task=build relocate=true scope=@haskell_hlint_hackage//:hlint-exe-hlint @haskell_nixfmt_hackage//:nixfmt-exe-nixfmt macOS hackage legs (hlint, nixfmt). Generated by Claude Code |
|
Evidence started on |
1 similar comment
|
Evidence started on |
|
Evidence started on |
|
/evidence platforms=["windows_x86_64"] task=build relocate=true flags=--//haskell/private/toolchain:ghc_mingw=True scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source Run 45075121550 failed in configure: Cabal says Generated by Claude Code |
|
Evidence started on |
|
/evidence platforms=["windows_x86_64"] task=build relocate=true flags=--//haskell/private/toolchain:ghc_mingw=True scope=//haskell/private/coverage:hpc_lcov_source //haskell/private/tools/weeder/bin:source Read the runs:
Generated by Claude Code |
|
/evidence platforms=["macos_arm64"] task=build relocate=true scope=//haskell/private/tools/hlint/bin:source //core/quality/tools/nixfmt/bin:nixfmt_source macOS hackage legs (hlint, nixfmt), through the main-repo aliases that select Generated by Claude Code |
|
Evidence started on |
…art of #14268) Same change as #14269 so macOS and Windows determinism evidence can run for haskell and hackage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
On Windows, --//haskell/private/toolchain:ghc_mingw=True reached the tool build and broke libz-sys, so the check never ran. The flags still reach the two checked builds through the tool's own arguments. Part of #14268 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzHMsAXTcwYJpjaj9H
A failed check now copies the first 20 differing files (up to 20 MB each) from both output bases into the evidence artifact, so a Windows-only difference can be diffed without a Windows host. Part of #14268 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hwnLJiVCijfoaG9uwF
On Windows the cabal_wrapper leaves the absolute execroot in every
installed package .conf, because Cabal writes the paths with doubled
backslashes and the execroot match uses single ones. Every
package.cache then holds the output base, so two builds in different
output bases differ (72 actions in evidence run 45004200913). A
rules_haskell patch matches the execroot with any run of separators,
in any case, and rewrites it to ${pkgroot}/ with forward slashes.
Part of #14268
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hwnLJiVCijfoaG9uwF
Cabal cannot build relocatable packages on Windows, so it bakes the
absolute --prefix, --libdir and friends into every Paths_<pkg> object.
Evidence run 45017442095 showed only those objects differing between two
output bases. The rules_haskell patch now configures the install dirs
relative to the execroot on Windows, copies with --destdir=<execroot>,
and rewrites the relative dirs in the package .conf to ${pkgroot}/.
release-tools.yml runs determinism_check on every haskell and hackage
leg, passing Bazel's native path on Windows.
Part of #14268
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hyoCCuZ6e43Z3trY9a
Evidence run 45075121550: Cabal rejects a relative --prefix ("expected an
absolute directory name"). Configure C:\<path under the execroot>
instead; copy --destdir drops the drive, so files still land under the
execroot and no output holds the output base.
Part of #14268
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hyoCCuZ6e43Z3trY9a
Windows run 45077580856 left only the weeder.exe and hpc_lcov_source_upstream.exe links differing, but both are over the 20 MB copy limit, so the artifact held neither. Each differing pair now also keeps its sizes and first 400 differing byte offsets from cmp -l. Part of #14268 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzfCX44JNoyXRYMq2N
Run 45143519034 left two nondeterministic Windows actions, both PE links (weeder.exe and hpc_lcov_source_upstream.exe). The bundled mingw link flags now pass -Wl,--no-insert-timestamp. evidence.yml drops the differing-file copy: determinism_check frees each output base since #14652, so it found no files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hxcqqAoDeuSr83mscS
7eea8fc to
d9ec5dc
Compare
|
Rebased onto main (5bf6454) as d9ec5dc.
Local (linux_x86_64): Evidence:
This stays draft: it touches 🤖 Generated with Claude Code |
Part of #14268.
evidence.ymlpasses Bazel's native path (cygpath -w) todeterminism_checkon Windows, builds the tool without the scope flags, and on a failed check keeps both copies of the first 20 differing files in the artifact.patches/rules_haskell/cabal_windows_relocatable.patch: on Windows,cabal_wrapper.pyconfigures the install dirs relative to the execroot, runsSetup copy --destdir=<execroot>, and rewrites both the execroot (any separator run, any case) and the relative install dirs in the package.confto${pkgroot}/. Cabal has no relocatable builds on Windows, so before this the absolute output base sat in everypackage.cacheand in everyPaths_<pkg>.o. Non-Windows paths are unchanged.release-tools.yml: thehaskellandhackagejobs rundeterminism_checkon every leg with--bazel "$bazel_bin"(cygpath -won Windows).release_tools_workflow_test.rsand the workflows README follow.Evidence (
task=build relocate=true):Paths_*.oand the links using them.Tested:
//tools/ci:workflow_files_test,//tools/ci:actionlint_test,//patches:update_readme_test,//patches:headers_testpass. The patch applies to the pinned rules_haskell on fetch.Stays draft until the three evidence runs are green. Then: set
timeout-minutesfrom the measured times if needed, and the owner'srelease.ymldry run.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hyoCCuZ6e43Z3trY9a