Review report

bitcoin/bitcoin: PR #36082

1 minor finding · 3 suggestions

Findings

Link

[minor] · Fail-fast cleanup can discard Guix functional-test diagnostics

A functional-test failure with other jobs active can lose buffered diagnostics on Linux/macOS or add an AttributeError on Windows because the Guix job omits the fail-fast cleanup guard.

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

Details and suggested fix

The driver enables --failfast with multiple jobs but does not set CI_FAILFAST_TEST_LEAVE_DANGLING. When a test fails while jobs remain, test_runner.py calls os.killpg(os.getpgid(0), signal.SIGKILL). On Linux/macOS, this kills the runner and its Python parent before normal stdout flushing, so buffered failure output and the results table can disappear from the CI log. On Windows, the unavailable os.killpg API instead adds an AttributeError traceback. The step still fails in either case. Set CI_FAILFAST_TEST_LEAVE_DANGLING: 1 in the test job's environment, matching ci.yml; that workflow's environment does not carry into this one. The amount of lost output and whether the step shell or runner processes also share the group are unestablished.


Optional improvements

Link

[suggestion] · Guix branch-push runs ignore the existing CI opt-out

With fork Actions enabled, branch pushes still schedule the three-host Guix build despite SKIP_BRANCH_PUSH=true, duplicating work for branches with an open pull request.

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

Details and suggested fix

This workflow triggers on both branch pushes and pull requests, but neither job honors SKIP_BRANCH_PUSH. The concurrency group uses run_id for pushes and ref for pull requests, so it does not deduplicate the two runs. Contributors who use the documented opt-out still schedule three Guix builds and, if those succeed, the three native test jobs. Add if: ${{ vars.SKIP_BRANCH_PUSH != 'true' || github.event_name == 'pull_request' }} to the guix job, matching ci.yml. Its dependent test job will then also skip opted-out pushes, while pull-request coverage and pushes where the variable is unset remain enabled.


Link

[suggestion] · One host's Guix failure cancels other builds and skips all binary tests

Default build-matrix fail-fast and aggregate test dependencies prevent independent hosts from completing their release-binary coverage when one host fails.

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

Details and suggested fix

The guix matrix uses GitHub's default fail-fast: true, so a host-specific failure cancels other in-progress builds. The entire test matrix also has needs: guix, so all native tests skip after any build leg fails, even if another host already uploaded its artifact. The test matrix's fail-fast: false cannot help with either condition. Set fail-fast: false on the build matrix and decouple each host's tests from unrelated build failures, for example by splitting build and test dependencies per host. This retains independent-host results and avoids restarting cancelled builds. Keeping fail-fast instead saves runner time when a breakage affects every host; that is a scheduling-policy tradeoff.


Link

[suggestion] · The runtime signing-key fetch makes the primary substitute server mandatory

Every Guix build job fetches its pinned signing key from guix.fish.foo, so an outage fails installation even when source fallback or the second substitute server could otherwise help.

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

Details and suggested fix

install-guix.sh unconditionally downloads $SUBSTITUTE_SERVER/signing-key.pub under errexit; exhausted retries stop installation before either build fallback can run. Commit the public key instead, retaining its existing SHA-256 check, to remove this runtime dependency without changing which key is trusted. Separately, SUBSTITUTE_URLS selects only the two fish.foo servers. Missing substitutes, such as after a time-machine or toolchain change, require source builds subject to the 360-minute job limit. Adding the documented official farms could help with upstream packages, but not the custom toolchains. Cold-build duration, prebuilding policy for proposed commits, and the second server's signing-key relationship are unverified.


Coverage details