ci: add Guix builds to CI #36082

Open
willcl-ark wants to merge 5 commits from guix-ci-v2 into master AGit
willcl-ark commented 2026-08-25 17:46:39 +00:00 (Migrated from github.com)

Currently there is limited continuous testing of our exact release binaries. This is acceptable today as we use many similar toolchain configurations in CI which has most/everything we use in Guix pretty much covered. Many PRs also see Guix builds, although few of those probably run tests against the Guix-built binaries.

This PR would continuously exercise the Guix building process itself, but also, in the event that we start shipping some fully-static Linux builds (x64 and aarch64) as per current revision of #25573, our entire custom-built static glibc and compiler toolchain would be relatively untested by current CI jobs, and that would also be tested here.


This adds Guix builds for the following platforms:

  • arm64-apple-darwin
  • x86_64-linux-gnu
  • x86_64-w64-mingw32

The resulting binaries are then tested in a subsequent job.

Currently there is limited continuous testing of our exact release binaries. This is acceptable today as we use many similar toolchain configurations in CI which has most/everything we use in Guix pretty much covered. Many PRs also see Guix builds, although few of those probably run tests against the Guix-built binaries. This PR would continuously exercise the Guix building process itself, but also, in the event that we start shipping some fully-static Linux builds (x64 and aarch64) as per current revision of #25573, our entire custom-built static glibc and compiler toolchain would be relatively untested by current CI jobs, and that would also be tested here. ---- This adds Guix builds for the following platforms: - arm64-apple-darwin - x86_64-linux-gnu - x86_64-w64-mingw32 The resulting binaries are then tested in a subsequent job.
DrahtBot commented 2026-08-25 17:46:47 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
Concept ACK fanquake, sedited

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35855 (guix: update time-machine by fanquake)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36082 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36082.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36082#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | Concept ACK | [fanquake](https://github.com/bitcoin/bitcoin/pull/36082#issuecomment-5678757484), [sedited](https://github.com/bitcoin/bitcoin/pull/36082#issuecomment-5679654839) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#35855](https://github.com/bitcoin/bitcoin/pull/35855) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35855.svg"></sub> (guix: update time-machine by fanquake) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
willcl-ark commented 2026-08-25 17:59:21 +00:00 (Migrated from github.com)

#36006 got auto-closed by a linked PR.

More info on the infra side of things:

I have configured two physically separate bitcoin core substitute servers for better availability (using this module. One server evaluates the guix closure and builds it. Then uses guix copy to copy store items to the second server via ssh.

We could include the default substitute servers (https://bordeaux.guix.gnu.org https://ci.guix.gnu.org), but this makes the CI runs noticeably slower as these (slow) servers are queried even when not used/selected. These servers obviously will never include our custom compilers, which are the slowest thing to build, too.

I tested a run with a single substitute server, shutting the server off part way through, and Guix didn't like that it thought a substitute should be available but then wasn't and so failed. I think our use of --fallback protects us in the case that no substitute servers are available before the run begins; everything is just rebuilt, but have not tested this yet.

#36006 got auto-closed by a linked PR. More info on the infra side of things: I have configured two physically separate bitcoin core substitute servers for better availability (using [this module](https://github.com/willcl-ark/nix/tree/master/modules/bitcoin-core-guix-substitutes). One server evaluates the guix closure and builds it. Then uses `guix copy` to copy store items to the second server via ssh. We could include the default substitute servers (https://bordeaux.guix.gnu.org https://ci.guix.gnu.org), but this makes the CI runs noticeably slower as these (slow) servers are queried even when not used/selected. These servers obviously will never include our custom compilers, which are the slowest thing to build, too. I tested a run with a single substitute server, shutting the server off _part way through_, and Guix didn't like that it _thought_ a substitute should be available but then wasn't and so failed. I think our use of `--fallback` protects us in the case that no substitute servers are available before the run begins; everything is just rebuilt, but have not tested this yet.
DrahtBot commented 2026-08-26 08:45:20 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task macOS native, fuzz: https://github.com/bitcoin/bitcoin/actions/runs/32941900565/job/98094394757
LLM reason (✨ experimental): CI failed because the rpc fuzz target returned exit code 1 due to an “Error processing input” during fuzzing.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `macOS native, fuzz`: https://github.com/bitcoin/bitcoin/actions/runs/32941900565/job/98094394757</sub> <sub>LLM reason (✨ experimental): CI failed because the `rpc` fuzz target returned exit code 1 due to an “Error processing input” during fuzzing.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
willcl-ark commented 2026-08-26 13:14:35 +00:00 (Migrated from github.com)

@hebasto I think that efbb911021 (the first commit here) and #35929 are duplicating solutions in different ways.

I believe that #35929 is the neater solution, and still covers the multi-toolchain (dual Guix build) scenario via embedding the toolchain info in the build ID as part of:

BASE_CACHE/<host>/<package>/<package>-<version>-<build_id>.tar.gz

Do you agree? If so I think I'll drop efbb911021 from here, and rebase on/review #35929.

@hebasto I think that efbb91102107dd9e758c46b9cd51d7a1de28c38a (the first commit here) and #35929 are duplicating solutions in different ways. I believe that #35929 is the neater solution, and still covers the multi-toolchain (dual Guix build) scenario via embedding the toolchain info in the build ID as part of: ``` BASE_CACHE/<host>/<package>/<package>-<version>-<build_id>.tar.gz ``` Do you agree? If so I think I'll drop efbb91102107dd9e758c46b9cd51d7a1de28c38a from here, and rebase on/review #35929.
hebasto commented 2026-08-28 09:14:48 +00:00 (Migrated from github.com)

@hebasto I think that efbb911 (the first commit here) and #35929 are duplicating solutions in different ways.

I've reviewed and tested efbb911021. Compared to https://github.com/bitcoin/bitcoin/pull/35929, it manages to fix the first subissue: "1. All depends are rebuilt when switching to another branch with identical Guix scripts and the depends subdirectory". Unfortunately, it fails to resolve the second one: "2. All non-GUI packages are built twice per host (mostly relevant for non-Linux hosts)".

Another point worth mentioning: for your commit to work as expected, the BASE_CACHE environment variable must be set explicitly.

I believe that #35929 is the neater solution, and still covers the multi-toolchain (dual Guix build) scenario via embedding the toolchain info in the build ID as part of:

BASE_CACHE/<host>/<package>/<package>-<version>-<build_id>.tar.gz

Do you agree? If so I think I'll drop efbb911 from here, and rebase on/review #35929.

That sounds good to me.

> @hebasto I think that [efbb911](https://github.com/bitcoin/bitcoin/commit/efbb91102107dd9e758c46b9cd51d7a1de28c38a) (the first commit here) and #35929 are duplicating solutions in different ways. I've reviewed and tested efbb91102107dd9e758c46b9cd51d7a1de28c38a. Compared to https://github.com/bitcoin/bitcoin/pull/35929, it manages to fix the first subissue: "1. All depends are rebuilt when switching to another branch with identical Guix scripts and the depends subdirectory". Unfortunately, it fails to resolve the second one: "2. All non-GUI packages are built twice per host (mostly relevant for non-Linux hosts)". Another point worth mentioning: for your commit to work as expected, the `BASE_CACHE` environment variable must be set explicitly. > I believe that #35929 is the neater solution, and still covers the multi-toolchain (dual Guix build) scenario via embedding the toolchain info in the build ID as part of: > > ``` > BASE_CACHE/<host>/<package>/<package>-<version>-<build_id>.tar.gz > ``` > > Do you agree? If so I think I'll drop [efbb911](https://github.com/bitcoin/bitcoin/commit/efbb91102107dd9e758c46b9cd51d7a1de28c38a) from here, and rebase on/review #35929. That sounds good to me.
hebasto commented 2026-08-28 11:07:30 +00:00 (Migrated from github.com)
@willcl-ark Please also consider https://github.com/bitcoin/bitcoin/pull/35929#issuecomment-5451743557.
willcl-ark commented 2026-08-28 11:08:07 +00:00 (Migrated from github.com)

Thanks hebasto, that sounds reasonable to me

Thanks hebasto, that sounds reasonable to me
DrahtBot commented 2026-09-11 09:50:00 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
fanquake commented 2026-09-15 10:34:15 +00:00 (Migrated from github.com)

Concept ACK

Concept ACK
sedited commented 2026-09-15 11:47:56 +00:00 (Migrated from github.com)

Concept ACK

Concept ACK
willcl-ark commented 2026-09-15 11:52:29 +00:00 (Migrated from github.com)

Added a commit to run true inside the guix-codesign container to try and catch things like https://github.com/bitcoin/bitcoin/pull/36256#discussion_r4014449885

I don't think there's any more we can do when we don't have signatures.

Added a commit to run `true` inside the `guix-codesign` container to try and catch things like https://github.com/bitcoin/bitcoin/pull/36256#discussion_r4014449885 I don't think there's any more we can do when we don't have signatures.
willcl-ark commented 2026-09-15 13:47:02 +00:00 (Migrated from github.com)

Marking this as ready for review now as I'd be interested in comments on its current state.

For me the main open question to be answered is:

  • Are we happy to rely on the two (physically distinct) Guix substitute servers I'm operating as the only enabled ones in these jobs?

If we add in other upstream servers (the defaults), the job runtime increases a fair amount (about 5 minutes longer to "check substitutes" in all jobs, not to mention that they'll be missing our compiler toolchains as subs so we need to rebuild those anyway which takes ages) but the jobs would become slightly more robust against my two servers being down, or in the case I disappear or whatever.

Another alternative is to have someone else operate another server. This would be my personal preference, if it were possible.

Marking this as ready for review now as I'd be interested in comments on its current state. For me the main open question to be answered is: - Are we happy to rely on the two (physically distinct) Guix substitute servers I'm operating **as the only enabled ones in these jobs**? If we add in other upstream servers (the defaults), the job runtime increases a fair amount (about 5 minutes longer to "check substitutes" in all jobs, not to mention that they'll be missing our compiler toolchains as subs so we need to rebuild those anyway which takes ages) but the jobs would become slightly more robust against my two servers being down, or in the case I disappear or whatever. Another alternative is to have someone else operate another server. This would be my personal preference, if it were possible.
maflcko commented 2026-09-23 07:00:37 +00:00 (Migrated from github.com)

The motivation/goal isn't listed, but right now it seems to catch build errors such as https://github.com/bitcoin/bitcoin/pull/36006#issuecomment-5326315042. Though, from the perspective of end-users a build error is harmless (there are no bugs if there is no binary 😅), so it could make more sense to actually run the tests. See also https://github.com/bitcoin/bitcoin/pull/36271#pullrequestreview-5283937055. However, I am not sure what the best way to implement this with GHA is (see related https://github.com/bitcoin/bitcoin/pull/35774#discussion_r3682479595).

The motivation/goal isn't listed, but right now it seems to catch build errors such as https://github.com/bitcoin/bitcoin/pull/36006#issuecomment-5326315042. Though, from the perspective of end-users a build error is harmless (there are no bugs if there is no binary :sweat_smile:), so it could make more sense to actually run the tests. See also https://github.com/bitcoin/bitcoin/pull/36271#pullrequestreview-5283937055. However, I am not sure what the best way to implement this with GHA is (see related https://github.com/bitcoin/bitcoin/pull/35774#discussion_r3682479595).
willcl-ark commented 2026-09-25 10:43:30 +00:00 (Migrated from github.com)

Though, from the perspective of end-users a build error is harmless (there are no bugs if there is no binary 😅)

We might have to agree to disagree on this point 😋

However, I am not sure what the best way to implement this with GHA is (see related https://github.com/bitcoin/bitcoin/pull/35774#discussion_r3682479595)

Would it be ok to just run x64 tests? I think that case would be a lot easier... in 35744 we need to move binaries between machines.

> Though, from the perspective of end-users a build error is harmless (there are no bugs if there is no binary 😅) We might have to agree to disagree on this point 😋 > However, I am not sure what the best way to implement this with GHA is (see related https://github.com/bitcoin/bitcoin/pull/35774#discussion_r3682479595) Would it be ok to just run x64 tests? I think that case would be a lot easier... in 35744 we need to move binaries between machines.
maflcko commented 2026-09-25 13:04:44 +00:00 (Migrated from github.com)

Right, this is a bit subjective. I am not sure how much we want to squeeze here. This is open for a month and there hasn't been any code/approach review yet.

The guix build issues happen maybe once in a year. Personally I think it is fine to revert a pull request temporarily once in a year, or apply a workaround. Recall that it will never be possible to catch all build/platform issues with CI. E.g. https://github.com/bitcoin/bitcoin/issues/36281 also required a revert/workaround recently, but I don't think we are going to add a macOS+nix task to the matrix, especially considering that the build issue is intermittent.

Would it be ok to just run x64 tests?

Ideally all the release binaries are tested.I think we can cover all the Linux ones with qemu and the Windows/macOS ones as well (possibly with Rosetta 2, until that is removed as well).

In the past Canonical was running the release unit tests (via Launchpad while building the snap), but it didn't run the functional tests and I think they dropped support for ppc64el...

But then I don't know how much of this should be here in the "hot" matrix, or if some of it should be in a nightly matrix in another repo.

Just me wondering, feel free to ignore.

Right, this is a bit subjective. I am not sure how much we want to squeeze here. This is open for a month and there hasn't been any code/approach review yet. The guix build issues happen maybe once in a year. Personally I think it is fine to revert a pull request temporarily once in a year, or apply a workaround. Recall that it will never be possible to catch all build/platform issues with CI. E.g. https://github.com/bitcoin/bitcoin/issues/36281 also required a revert/workaround recently, but I don't think we are going to add a macOS+nix task to the matrix, especially considering that the build issue is intermittent. > Would it be ok to just run x64 tests? Ideally all the release binaries are tested.I think we can cover all the Linux ones with qemu and the Windows/macOS ones as well (possibly with Rosetta 2, until that is removed as well). In the past Canonical was running the release unit tests (via Launchpad while building the snap), but it didn't run the functional tests and I think they dropped support for ppc64el... But then I don't know how much of this should be here in the "hot" matrix, or if some of it should be in a nightly matrix in another repo. Just me wondering, feel free to ignore.
willcl-ark commented 2026-09-29 12:24:47 +00:00 (Migrated from github.com)

OK most of that seems reasonable.

What I will do then, is push here, to run my updated branch on our Warp CI runners, just to see if the "test the build binaries" commit I've added works. But then I will close the PR, until (or if) interest picks up.

FWIW I do have a continuous guix build running https://my.cdash.org/index.php?project=bitcoin-core#!#Continuous which doesn't hit every merge, or test any built binaries, but is "doing builds".

I think the chances of tests passing our CI but failing on a guix build are low, and now really sure what more that adds, but perhaps we can see. My intention here was to test the building process itself, more regularly.

OK most of that seems reasonable. What I will do then, is push here, to run my updated branch on our Warp CI runners, just to see if the "test the build binaries" commit I've added works. But then I will close the PR, until (or if) interest picks up. FWIW I do have a continuous guix build running https://my.cdash.org/index.php?project=bitcoin-core#!#Continuous which doesn't hit every merge, or test any built binaries, but is "doing builds". I think the chances of tests passing our CI but failing on a guix build are low, and now really sure what more that adds, but perhaps we can see. My intention here was to test the _building process itself_, more regularly.
fanquake commented 2026-09-29 13:21:48 +00:00 (Migrated from github.com)

Though, from the perspective of end-users a build error is harmless

I think issues like https://github.com/bitcoin/bitcoin/pull/36006#issuecomment-5326315042 are exactly the kind of thing the CI should be catching, so that build/release time issues don't appear randomly, after non-build related changes are made (#32750 in this case).

Personally I think it is fine to revert a pull request temporarily once in a year, or apply a workaround. Recall that it will never be possible to catch all build/platform issues with CI.

These reversions aren't necessarily trivial, because they can also require CI/src/other changes outside of Guix, i.e if rolling back a compiler update, or dependency change.

I think "Does the code compile in a release context" is decent requirement (for merging). A number of CI jobs are setup to emulate building the code in a release context (i.e matching compiler versions), so using the actual release build seems like an improvement, which catches the issues the CI currently misses?

> Though, from the perspective of end-users a build error is harmless I think issues like https://github.com/bitcoin/bitcoin/pull/36006#issuecomment-5326315042 are exactly the kind of thing the CI should be catching, so that build/release time issues don't appear randomly, after non-build related changes are made (#32750 in this case). > Personally I think it is fine to revert a pull request temporarily once in a year, or apply a workaround. Recall that it will never be possible to catch all build/platform issues with CI. These reversions aren't necessarily trivial, because they can also require CI/src/other changes outside of Guix, i.e if rolling back a compiler update, or dependency change. I think "Does the code compile in a release context" is decent requirement (for merging). A number of CI jobs are setup to emulate building the code in a release context (i.e matching compiler versions), so using the actual release build seems like an improvement, which catches the issues the CI currently misses?
First-time contributor

1 additional verified finding in the Review report.

Earlier concerns remain unresolved; see the Run archive linked from the Review report.

🔵 Suggestion · A host-specific build failure suppresses all native tests

A host-specific Guix build failure cancels unfinished sibling builds and prevents every native test leg from running, even for packages already uploaded.

Location: .github/workflows/guix.yml:42 (head).

🔵 Suggestion · Non-GUI configuration skips the packaged GUI smoke test

The saved BUILD_GUI=false makes interface_gui.py skip on Linux and macOS, leaving the packaged GUI untested.

Location: .github/ci-guix-test.py:39 (head).

🔵 Suggestion · Failed Guix functional tests lose their node logs

The functional run omits --combinedlogslen and the job uploads no test directories, so node debug logs from a failure disappear with the runner.

Location: .github/ci-guix-test.py:75 (head).

🔵 Suggestion · Guix checks omit the PR-number annotation

Guix checks lack the PR-number annotation used for check-to-PR mapping; whether the external consumer processes this workflow is unconfirmed.

Location: .github/workflows/guix.yml:51 (head).

🔵 Suggestion · The runtime signing-key fetch makes the primary substitute server mandatory

CI uses only the two fish.foo substitute servers but authorizes a single hash-pinned key, fetched from guix.fish.foo. Nothing in the checkout documents who operates the servers or whether guix2.fish.foo signs with that key. If guix2 uses a different key, Guix will not trust its substitutes on their own, so it may not provide the intended redundancy when guix.fish.foo is unavailable. On a Docker image-cache miss, the key download from guix.fish.foo is also a hard build dependency. The author raised reliance on these servers as an open question for maintainers.

Location: ci/guix_imagefile:50 (head).

🔵 Suggestion · The macOS SDK download has no transient-failure recovery

On a macOS SDK cache miss, one transient network error during the SDK download fails the darwin build. With the current matrix settings, that also cancels the unfinished sibling builds and skips every native test.

Location: .github/workflows/guix.yml:95 (head).

Review coverage was incomplete.


Reviewed: d9e9d95217d4 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:7eebed8027c96ac27bcd79eeb7a88e35799cd96eb8fbacf34d3257986a959f64:6952af7d31ef83bb85ac4ee73e8c979307f4998f73396eb2a639b474cdfe83e6 --> <!-- ralph-base:44901d8f64cb617714707bd025ecd83f108353c2 --> <!-- ralph-head:d9e9d95217d456db1f6d518ab1810999f31d0e6c --> <!-- ralph-case:69a183ddf43a66b69e1d3f46721f7a440568b10f8cfefdc878f97403024eb5bf --> [1 additional verified finding in the Review report](<https://review.fish.foo/report/36082-d9e9d95217d456db1f6d518ab1810999f31d0e6c-2440-10.html>). Earlier concerns remain unresolved; see the Run archive linked from the Review report. **🔵 Suggestion · A host-specific build failure suppresses all native tests** A host-specific Guix build failure cancels unfinished sibling builds and prevents every native test leg from running, even for packages already uploaded. Location: [`.github/workflows/guix.yml:42`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d9e9d95217d456db1f6d518ab1810999f31d0e6c/.github/workflows/guix.yml#L42>) (head). **🔵 Suggestion · Non-GUI configuration skips the packaged GUI smoke test** The saved `BUILD_GUI=false` makes `interface_gui.py` skip on Linux and macOS, leaving the packaged GUI untested. Location: [`.github/ci-guix-test.py:39`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d9e9d95217d456db1f6d518ab1810999f31d0e6c/.github/ci-guix-test.py#L39>) (head). **🔵 Suggestion · Failed Guix functional tests lose their node logs** The functional run omits `--combinedlogslen` and the job uploads no test directories, so node debug logs from a failure disappear with the runner. Location: [`.github/ci-guix-test.py:75`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d9e9d95217d456db1f6d518ab1810999f31d0e6c/.github/ci-guix-test.py#L75>) (head). **🔵 Suggestion · Guix checks omit the PR-number annotation** Guix checks lack the PR-number annotation used for check-to-PR mapping; whether the external consumer processes this workflow is unconfirmed. Location: [`.github/workflows/guix.yml:51`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d9e9d95217d456db1f6d518ab1810999f31d0e6c/.github/workflows/guix.yml#L51>) (head). **🔵 Suggestion · The runtime signing-key fetch makes the primary substitute server mandatory** CI uses only the two fish.foo substitute servers but authorizes a single hash-pinned key, fetched from guix.fish.foo. Nothing in the checkout documents who operates the servers or whether guix2.fish.foo signs with that key. If guix2 uses a different key, Guix will not trust its substitutes on their own, so it may not provide the intended redundancy when guix.fish.foo is unavailable. On a Docker image-cache miss, the key download from guix.fish.foo is also a hard build dependency. The author raised reliance on these servers as an open question for maintainers. Location: [`ci/guix_imagefile:50`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d9e9d95217d456db1f6d518ab1810999f31d0e6c/ci/guix_imagefile#L50>) (head). **🔵 Suggestion · The macOS SDK download has no transient-failure recovery** On a macOS SDK cache miss, one transient network error during the SDK download fails the darwin build. With the current matrix settings, that also cancels the unfinished sibling builds and skips every native test. Location: [`.github/workflows/guix.yml:95`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d9e9d95217d456db1f6d518ab1810999f31d0e6c/.github/workflows/guix.yml#L95>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`d9e9d95217d4`](<https://git.fish.foo/bitcoin/bitcoin/commit/d9e9d95217d456db1f6d518ab1810999f31d0e6c>) · [Review report](<https://review.fish.foo/report/36082-d9e9d95217d456db1f6d518ab1810999f31d0e6c-2440-10.html>) · [Previous reports](<https://review.fish.foo/traces/36082/>) [permalink](<https://review.fish.foo/report/36082-d9e9d95217d456db1f6d518ab1810999f31d0e6c-2440-10.html>)
maflcko commented 2026-09-29 13:48:49 +00:00 (Migrated from github.com)

Sure, I am not objected to this pull. However, this is just adding a smaller subset (x86_64-linux-gnu, ...), so any build failure in the armhf release bin (etc) won't be caught. Also, stuff at runtime isn't caught (like bugs in the libstc++ std::fs impl, or so).

Thinking about end-users they'd probably benefit most from a full build+test pipeline for all release bins.

These reversions aren't necessarily trivial

The fix in https://github.com/bitcoin/bitcoin/pull/33178 looks small and on the easier end. Are there any others that were more involved?

Again, no objection to this pull, but I think it would be more useful to have "full" build+test coverage for all guix release bins (possibly in a nightly repo or in bitcoin-core/packaging), than just a select subset for guix build-only in CI here.

Sure, I am not objected to this pull. However, this is just adding a smaller subset (`x86_64-linux-gnu`, ...), so any build failure in the armhf release bin (etc) won't be caught. Also, stuff at runtime isn't caught (like bugs in the libstc++ std::fs impl, or so). Thinking about end-users they'd probably benefit most from a full build+test pipeline for all release bins. > These reversions aren't necessarily trivial The fix in https://github.com/bitcoin/bitcoin/pull/33178 looks small and on the easier end. Are there any others that were more involved? Again, no objection to this pull, but I think it would be more useful to have "full" build+test coverage for all guix release bins (possibly in a nightly repo or in bitcoin-core/packaging), than just a select subset for guix build-only in CI here.
DrahtBot commented 2026-09-29 16:12:38 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/36594516478/job/109495857711
LLM reason (✨ experimental): CI failed because the lint-files check reported an executable-permission issue: .github/ci-guix-test.py has mode 644 despite a shebang, instead of 755.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/36594516478/job/109495857711</sub> <sub>LLM reason (✨ experimental): CI failed because the lint-files check reported an executable-permission issue: `.github/ci-guix-test.py` has mode `644` despite a shebang, instead of `755`.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
DrahtBot commented 2026-09-29 18:51:45 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
willcl-ark commented 2026-10-02 09:20:26 +00:00 (Migrated from github.com)

If we start shipping fully static (glibc-based) linux binaries it would seem prudent to have a CI job testing them.

This PR would cover x64 linux in that regard. We could probably add aarch64 too, or even start with just those two jobs.

An alternative would be to add a non-Guix job which built the static toolchain(s) and binary (re-inventing the Guix build in the process though).

If we start shipping fully static (glibc-based) linux binaries it would seem prudent to have a CI job testing them. This PR would cover x64 linux in that regard. We could probably add aarch64 too, or even start with just those two jobs. An alternative would be to add a non-Guix job which built the static toolchain(s) and binary (re-inventing the Guix build in the process though).
maflcko commented 2026-10-02 09:51:18 +00:00 (Migrated from github.com)

If we start shipping fully static (glibc-based) linux binaries it would seem prudent to have a CI job testing them.

I think that is a good reason. Mind including the goal/motivation in the pull description, so that it is easier to follow? Currently it just repeats what the code changes are, but this is visible from looking at the commits already.

> If we start shipping fully static (glibc-based) linux binaries it would seem prudent to have a CI job testing them. I think that is a good reason. Mind including the goal/motivation in the pull description, so that it is easier to follow? Currently it just repeats what the code changes are, but this is visible from looking at the commits already.
willcl-ark commented 2026-10-02 10:00:36 +00:00 (Migrated from github.com)

Thanks I've updated the description as you suggest.

I'd gone for linux + windows + mac here to cover as many bases as possible in the fewest number of jobs, but perhaps aarch64-linux is worth covering too post-#25573, or could replace the windows or macos job?

I'll rebase and push a few tidy-ups to the top two commits which were LLM-written as a PoC/test.

Thanks I've updated the description as you suggest. I'd gone for linux + windows + mac here to cover as many bases as possible in the fewest number of jobs, but perhaps aarch64-linux is worth covering too post-#25573, or could replace the windows or macos job? I'll rebase and push a few tidy-ups to the top two commits which were LLM-written as a PoC/test.
fanquake commented 2026-11-05 17:25:22 +00:00 (Migrated from github.com)

Could you rebase again, post #36193?

Could you rebase again, post #36193?
willcl-ark commented 2026-11-06 08:37:58 +00:00 (Migrated from github.com)

Rebased with a small depends sources cache fixup

range-diff
  1:  b0807c964c0 = 182:  95e52e18b5e guix: expose time-machine metadata
  2:  25f3e5fc8e1 ! 183:  31daf63b454 ci: add Guix build job
    @@ .github/workflows/guix.yml (new)
     +        with:
     +          provider: ${{ github.repository == 'bitcoin/bitcoin' && 'warp' || 'gha' }}
     +          path: ${{ env.SOURCES_PATH }}
    -+          key: guix-depends-sources-${{ hashFiles('depends/**') }}
    -+          restore-keys: guix-depends-sources-
    ++          key: guix-depends-sources-${{ matrix.host }}-${{ hashFiles('depends/**') }}
    ++          restore-keys: guix-depends-sources-${{ matrix.host }}-
     +
     +      - name: Restore built depends cache
     +        id: built-depends-cache
  3:  e088de7527f = 184:  6ab622eaec3 ci: test Guix codesign environments
  4:  69adb897849 = 185:  8233281ada8 guix: copy config.ini before deleting build dir
  5:  cc8149b24f3 ! 186:  f14dc8b180f ci: test Guix release binaries
    @@ .github/ci-guix-test.py (new)
     +    with (workspace / "test" / "config.ini").open("w", encoding="utf-8") as file:
     +        config.write(file)
     +
    ++    sanitizer_template = (workspace / "test" / "with_sanitizer_env.py.in").read_text(encoding="utf-8")
    ++    (workspace / "test" / "with_sanitizer_env.py").write_text(
    ++        sanitizer_template.replace("@PROJECT_SOURCE_DIR@", workspace.as_posix()), encoding="utf-8",
    ++    )
    ++
     +    env = os.environ.copy()
     +    binaries = {
     +        "BITCOIN_BIN": "bitcoin",
    @@ .github/workflows/guix.yml: jobs:
     +          }
     +          & $venvPython -m pip install pyzmq
     +          if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
    ++          if (!$IsWindows) {
    ++            & $venvPython -m pip install pycapnp
    ++            if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
    ++          }
     +          & $venvPython .github/ci-guix-test.py
     +          exit $LASTEXITCODE
     +
  6:  4bac9a480fc <   -:  ----------- fixup! ci: test Guix release binaries
Rebased with a small depends sources cache fixup <details> <summary>range-diff</summary> ```diff 1: b0807c964c0 = 182: 95e52e18b5e guix: expose time-machine metadata 2: 25f3e5fc8e1 ! 183: 31daf63b454 ci: add Guix build job @@ .github/workflows/guix.yml (new) + with: + provider: ${{ github.repository == 'bitcoin/bitcoin' && 'warp' || 'gha' }} + path: ${{ env.SOURCES_PATH }} -+ key: guix-depends-sources-${{ hashFiles('depends/**') }} -+ restore-keys: guix-depends-sources- ++ key: guix-depends-sources-${{ matrix.host }}-${{ hashFiles('depends/**') }} ++ restore-keys: guix-depends-sources-${{ matrix.host }}- + + - name: Restore built depends cache + id: built-depends-cache 3: e088de7527f = 184: 6ab622eaec3 ci: test Guix codesign environments 4: 69adb897849 = 185: 8233281ada8 guix: copy config.ini before deleting build dir 5: cc8149b24f3 ! 186: f14dc8b180f ci: test Guix release binaries @@ .github/ci-guix-test.py (new) + with (workspace / "test" / "config.ini").open("w", encoding="utf-8") as file: + config.write(file) + ++ sanitizer_template = (workspace / "test" / "with_sanitizer_env.py.in").read_text(encoding="utf-8") ++ (workspace / "test" / "with_sanitizer_env.py").write_text( ++ sanitizer_template.replace("@PROJECT_SOURCE_DIR@", workspace.as_posix()), encoding="utf-8", ++ ) ++ + env = os.environ.copy() + binaries = { + "BITCOIN_BIN": "bitcoin", @@ .github/workflows/guix.yml: jobs: + } + & $venvPython -m pip install pyzmq + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } ++ if (!$IsWindows) { ++ & $venvPython -m pip install pycapnp ++ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } ++ } + & $venvPython .github/ci-guix-test.py + exit $LASTEXITCODE + 6: 4bac9a480fc < -: ----------- fixup! ci: test Guix release binaries ``` </details>
willcl-ark commented 2026-11-06 09:46:22 +00:00 (Migrated from github.com)

Added the fail-fast cleanup guard and the existing SKIP_BRANCH_PUSH opt-out suggested by ralph. Deferring the other change for now.

Also selected Python 3.14 for the native test jobs to fix the CI failure: macOS picked up Python 3.15, which forced a pycapnp source build that failed against the runner’s OpenSSL headers. Python 3.14 has a prebuilt macOS ARM64 wheel.

range-diff
1:  31daf63b454 ! 1:  601b37e89d8 ci: add Guix build job
    @@ .github/workflows/guix.yml (new)
     +jobs:
     +  guix:
     +    name: Guix, ${{ matrix.host }}
    ++    if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }}
     +    runs-on: ${{ github.repository == 'bitcoin/bitcoin' && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-24.04' }}
     +    timeout-minutes: 360
     +    strategy:
2:  6ab622eaec3 = 2:  31f9c9345f6 ci: test Guix codesign environments
3:  8233281ada8 = 3:  9de6048cf6f guix: copy config.ini before deleting build dir
4:  f14dc8b180f ! 4:  b000dd58365 ci: test Guix release binaries
    @@ .github/workflows/guix.yml: jobs:
     +    runs-on: ${{ matrix.runner }}
     +    timeout-minutes: 180
     +    env:
    ++      CI_FAILFAST_TEST_LEAVE_DANGLING: 1
     +      PYTHONUTF8: 1
     +    strategy:
     +      fail-fast: false
    @@ .github/workflows/guix.yml: jobs:
     +          path: releases
     +          key: guix-previous-releases-${{ matrix.host }}-${{ hashFiles('test/get_previous_releases.py') }}
     +
    ++      - name: Set up Python
    ++        uses: actions/setup-python@v7
    ++        with:
    ++          python-version: '3.14'
    ++
     +      - name: Test release binaries
     +        shell: pwsh
     +        run: |
Added the fail-fast cleanup guard and the existing `SKIP_BRANCH_PUSH` opt-out suggested by ralph. Deferring the other change for now. Also selected Python 3.14 for the native test jobs to fix the CI failure: macOS picked up Python 3.15, which forced a pycapnp source build that failed against the runner’s OpenSSL headers. Python 3.14 has a prebuilt macOS ARM64 wheel. <details> <summary>range-diff</summary> ``` 1: 31daf63b454 ! 1: 601b37e89d8 ci: add Guix build job @@ .github/workflows/guix.yml (new) +jobs: + guix: + name: Guix, ${{ matrix.host }} ++ if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }} + runs-on: ${{ github.repository == 'bitcoin/bitcoin' && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-24.04' }} + timeout-minutes: 360 + strategy: 2: 6ab622eaec3 = 2: 31f9c9345f6 ci: test Guix codesign environments 3: 8233281ada8 = 3: 9de6048cf6f guix: copy config.ini before deleting build dir 4: f14dc8b180f ! 4: b000dd58365 ci: test Guix release binaries @@ .github/workflows/guix.yml: jobs: + runs-on: ${{ matrix.runner }} + timeout-minutes: 180 + env: ++ CI_FAILFAST_TEST_LEAVE_DANGLING: 1 + PYTHONUTF8: 1 + strategy: + fail-fast: false @@ .github/workflows/guix.yml: jobs: + path: releases + key: guix-previous-releases-${{ matrix.host }}-${{ hashFiles('test/get_previous_releases.py') }} + ++ - name: Set up Python ++ uses: actions/setup-python@v7 ++ with: ++ python-version: '3.14' ++ + - name: Test release binaries + shell: pwsh + run: | ``` </details>
DrahtBot commented 2026-11-06 16:38:28 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/42245724026/job/127987305599
LLM reason (✨ experimental): CI failed lint checks: ci/guix-entrypoint.sh lacks executable permissions and LC_ALL=C.UTF-8 exports are missing from both Guix scripts.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/42245724026/job/127987305599</sub> <sub>LLM reason (✨ experimental): CI failed lint checks: `ci/guix-entrypoint.sh` lacks executable permissions and `LC_ALL=C.UTF-8` exports are missing from both Guix scripts.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
hebasto commented 2026-11-09 16:51:55 +00:00 (Migrated from github.com)

https://github.com/bitcoin/bitcoin/actions/runs/42245724026/job/127987305599?pr=36082:

File "ci/guix-entrypoint.sh" contains a shebang line, but has the file permission 644 instead of the expected executable permission 755. Do "chmod 755 ci/guix-entrypoint.sh" (or remove the shebang line).
ERROR: There were 1 failed tests in the lint-files.py lint test. Please resolve the above errors.
^---- ⚠️ Failure generated from lint-files.py
<snip>
[3](https://github.com/bitcoin/bitcoin/actions/runs/42245724026/job/127987305599?pr=36082#step:6:194)
Missing "export LC_ALL=C.UTF-8" (to avoid locale dependence) as first non-comment non-empty line in ci/guix-entrypoint.sh
Missing "export LC_ALL=C.UTF-8" (to avoid locale dependence) as first non-comment non-empty line in ci/guix_run_all.sh
^---- ⚠️ Failure generated from lint-shell-locale.py
https://github.com/bitcoin/bitcoin/actions/runs/42245724026/job/127987305599?pr=36082: ``` File "ci/guix-entrypoint.sh" contains a shebang line, but has the file permission 644 instead of the expected executable permission 755. Do "chmod 755 ci/guix-entrypoint.sh" (or remove the shebang line). ERROR: There were 1 failed tests in the lint-files.py lint test. Please resolve the above errors. ^---- ⚠️ Failure generated from lint-files.py <snip> [3](https://github.com/bitcoin/bitcoin/actions/runs/42245724026/job/127987305599?pr=36082#step:6:194) Missing "export LC_ALL=C.UTF-8" (to avoid locale dependence) as first non-comment non-empty line in ci/guix-entrypoint.sh Missing "export LC_ALL=C.UTF-8" (to avoid locale dependence) as first non-comment non-empty line in ci/guix_run_all.sh ^---- ⚠️ Failure generated from lint-shell-locale.py ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36082
No description provided.