Review report

bitcoin/bitcoin: PR #36082

1 minor finding · 4 suggestions

Earlier concerns neither republished nor resolved: 4 suggestions. See the Run archive for their assessments.

Findings

Link

[minor] · The entrypoint's tracked permissions fail the shebang lint

ci/guix-entrypoint.sh has a shebang but is committed as non-executable, which makes lint-files.py fail.

Location: ci/guix-entrypoint.sh:1 (head).

Details and suggested fix

The new file has Git mode 100644 and starts with #!/usr/bin/env bash. check_shebang_file_permissions() checks the staged Git mode and requires executable permissions for this .sh file. The Dockerfile's chmod +x affects only the copy inside the image, so the container entrypoint remains executable but the repository lint still fails. Commit the script as 100755, for example with git update-index --chmod=+x ci/guix-entrypoint.sh.


Optional improvements

Link

[suggestion] · Substitute-server trust and redundancy are undocumented

CI selects only the two fish.foo endpoints but explicitly authorizes one hash-pinned key, leaving the trust model and second server's signing-key compatibility undocumented.

Location: ci/guix_imagefile:24 (head).

Details and suggested fix

Image preparation and runtime select only the fish.foo endpoints, rather than the official farms documented in contrib/guix/README.md. The image fetches guix.fish.foo's hash-pinned key, and the entrypoint authorizes that same key. The checkout does not identify the operators or establish whether guix2 signs with it; if guix2 uses a different, unauthorized key, it cannot provide the intended substitute redundancy. Document the operators, trust rationale, and shared-key arrangement, or pin and authorize the second key if needed. The cached image retains the pinned Guix profile, but runtime toolchain realization can still fall back to source builds when substitutes are unavailable, with cold-build duration unknown under the 360-minute limit. A cache miss at the key-download layer instead fails if that download is unavailable. Adding official farms would broaden the trusted set, so it is a separate tradeoff, not a behavior-neutral fix.


Link

[suggestion] · The package tests always skip the GUI smoke test

The saved non-GUI configuration makes interface_gui.py skip, leaving the packaged Linux and macOS bitcoin-gui startup and shutdown untested.

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

Details and suggested fix

build_linux.sh and build_macos.sh save config.ini with BUILD_GUI=OFF. Their later GUI stages install bitcoin-gui and bitcoin-qt without updating that saved file, and this helper rewrites only environment entries. Consequently, skip_if_no_gui() skips the existing startup/RPC-shutdown smoke test even though the package contains the GUI. Set components.BUILD_GUI to true when the extracted package contains libexec/bitcoin-gui, preserving the other non-GUI-stage component values. The framework already selects Qt's minimal platform and the fusion style on macOS, and static Qt builds import the minimal plugin. The test separately skips Windows.


Link

[suggestion] · Guix check runs omit the documented PR-number annotation

Neither Guix job emits debug_pull_request_number_str, so tooling that relies on this annotation cannot associate those check runs with their pull request.

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

Details and suggested fix

ci.yml emits ::notice title=debug_pull_request_number_str::<PR number> and documents why each check run needs its own annotation: reruns discard other tasks' annotations. Neither the build nor test job in guix.yml emits it. Copy the guarded annotation step into both jobs, preferably before checkout so early failures also retain it; YAML anchors cannot be shared across workflow files. The external consumer is not in the repository, so its exact impact remains unverified.


Link

[suggestion] · Image preparation ignores the workflow's substitute URL setting

The image duplicates today's substitute URL list, so changing the workflow's SUBSTITUTE_URLS alone would update runtime builds but leave image preparation using the old endpoints.

Location: ci/guix_imagefile:70 (head).

Details and suggested fix

guix_run_all.sh forwards SUBSTITUTE_URLS into the runtime container but passes no corresponding Docker build argument. The image's guix time-machine invocation instead hard-codes the two endpoints. Add an ARG substitute_urls, pass --build-arg substitute_urls="$SUBSTITUTE_URLS", and use --substitute-urls="${substitute_urls:?}" during preparation. This preserves current behavior and provides one configuration source. Changing the list would then invalidate the preparation layer and rebuild the profile once; newly added servers would still need their signing keys authorized.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.