Review report

bitcoin/bitcoin: PR #35774

1 minor finding · 2 suggestions

Findings

Link

[minor] · Full PR reruns can test an earlier attempt's macOS binaries

With the GitHub Actions cache provider, a full PR rerun after the merge ref changes can test the previous attempt's archive instead of the newly built binaries.

Location: .github/workflows/ci.yml:640 (head).

Details and suggested fix

macos-cross-arm64 uses *CHECKOUT, which follows the latest PR merge ref even on reruns, but both archive keys contain only github.run_id, which stays unchanged between attempts. If the earlier cache entry remains available, rebuilding after the merge ref moves cannot replace that immutable entry. The native job then restores the old archive, passes its exact-hit guard, and reports a result unrelated to the new build. No stale result has been recorded. Pin the producer checkout to needs.record-frozen-commit.outputs.commit and include that commit in both save and restore keys. A full rerun against a new merge commit then gets a new key, while a native-only rerun can still reuse its successful producer's archive.


Optional improvements

Link

[suggestion] · Run-local binary archives consume shared build-cache storage

Each successful enabled run adds a binary archive to the shared cache for consumption only within that run, although the existing artifact handoff can serve this purpose without the new cross-platform cache plumbing.

Location: .github/workflows/ci.yml:636 (head).

Details and suggested fix

This save uses a run-unique key and bypasses the default-branch-push restrictions in .github/actions/cache/save, so successful PR and branch-push builds also retain archives. In forks, these entries share the GitHub Actions cache quota with reusable build caches; on Warp they add storage. Upload macos-arm64-binaries.tar as an artifact with short retention, then download and extract it in the native job, following the Windows cross/native pair. Keeping the tar preserves executable modes and removes the need for the new cross-OS/architecture cache inputs, whose only caller is this handoff. Archive size, eviction impact, and transfer cost have not been measured. A material Warp cache speed or cost advantage would justify retaining this approach, but otherwise artifacts fit the required run-local transfer.


Link

[suggestion] · Native macOS tests fall back to a six-hour job timeout

A hung cross-built unit-test process can hold the macOS arm64 runner until GitHub's default 360-minute job limit, rather than the 120-minute limit used by the other macOS jobs.

Location: .github/workflows/ci.yml:650 (head).

Details and suggested fix

macos-cross-arm64-native has no timeout-minutes and runs test_bitcoin and test_bitcoin-qt directly, so the CTest timeout in ci/test/03_test_script.sh does not apply. Its producer's 120-minute timeout does not extend to this separate job. A process hang that survives any framework watchdog can therefore delay the result and occupy the runner for up to six hours. Add timeout-minutes: 120 to match the other macOS jobs. No actual hang has been observed.


Coverage details