ci: test cross-built macos arm64 binaries #35774

Open
willcl-ark wants to merge 2 commits from macos-cross-ci-test into master AGit
willcl-ark commented 2026-07-22 13:04:16 +00:00 (Migrated from github.com)

Currently we have some macos cross-built binaries, which are using depends as opposed to brew in the native macos builds, but these binaries are not being tested, culminating in silent breakages like #35771

Build test_bitcoin-qt in macos_cross, and test the binaries in a subsequent job.

the macos_cross job is removed from ci-matrix as otherwise the new macos-cross-arm64 test job has to wait for all matrix jobs to finish (successfully) before running. This includes some of our slow jobs, and will needlessly inflate CI runtimes.

Doing this does add some more boilerplate into ci.yml, but IMO this is acceptable (and the best option currently).

Currently we have some macos cross-built binaries, which are using depends as opposed to brew in the native macos builds, but these binaries are not being tested, culminating in silent breakages like #35771 Build `test_bitcoin-qt` in `macos_cross`, and test the binaries in a subsequent job. the macos_cross job is removed from `ci-matrix` as otherwise the new `macos-cross-arm64` test job has to wait for all matrix jobs to finish (successfully) before running. This includes some of our slow jobs, and will needlessly inflate CI runtimes. Doing this does add some more boilerplate into ci.yml, but IMO this is acceptable (and the best option currently).
DrahtBot commented 2026-07-22 13:04:23 +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

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

Conflicts

No conflicts as of last run.

<!--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/35774 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/35774.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/35774#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/35774#issuecomment-5059068637) | 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 No conflicts as of last run. <!--5faf32d7da4f0f540f40219e4f7537a3-->
maflcko (Migrated from github.com) reviewed 2026-07-22 13:19:22 +00:00
maflcko (Migrated from github.com) commented 2026-07-22 13:16:57 +00:00

This must be frozen to record-frozen-commit, otherwise, the CI will fail due to non-determinism?

This must be frozen to `record-frozen-commit`, otherwise, the CI will fail due to non-determinism?
maflcko (Migrated from github.com) commented 2026-07-22 13:15:09 +00:00

Seems a bit tedious to use the cache for this? Why not use a artifact, like the pre-existing windows tests and like d40e61e87c?

Seems a bit tedious to use the cache for this? Why not use a artifact, like the pre-existing windows tests and like d40e61e87cfb18f75742c2efa6e705f38e3b36c9?
maflcko (Migrated from github.com) commented 2026-07-22 13:19:18 +00:00
Why this change? https://github.com/bitcoin/bitcoin/actions/runs/29913431596/job/88901563802#step:11:2144
willcl-ark (Migrated from github.com) reviewed 2026-07-22 13:54:24 +00:00
willcl-ark (Migrated from github.com) commented 2026-07-22 13:54:24 +00:00

I intentionally used cache vs artefact as Warp don't have an [upload|download]-artifact action, and relying on GH infra upload/download speed has been ... not the most ideal thing to do in recent times.

I intentionally used cache vs artefact as Warp don't have an [upload|download]-artifact action, and relying on GH infra upload/download speed has been ... not the most ideal thing to do in recent times.
willcl-ark (Migrated from github.com) reviewed 2026-07-22 13:58:19 +00:00
willcl-ark (Migrated from github.com) commented 2026-07-22 13:58:19 +00:00

Done ready for next push

Done ready for next push
willcl-ark (Migrated from github.com) reviewed 2026-07-22 13:58:53 +00:00
willcl-ark (Migrated from github.com) commented 2026-07-22 13:58:53 +00:00

Because I didn't realise deploy was already building that :)

Commit will be dropped in next push.

Because I didn't realise deploy was already building that :) Commit will be dropped in next push.
fanquake commented 2026-07-23 13:38:18 +00:00 (Migrated from github.com)

Concept ACK given #35771. Similar to Windows, we should have a CI that is natively testing the release-like cross built bins.

Concept ACK given #35771. Similar to Windows, we should have a CI that is natively testing the release-like cross built bins.
fanquake commented 2026-07-30 11:06:18 +00:00 (Migrated from github.com)

Could rebase, and put this on top of #35838?

Could rebase, and put this on top of #35838?
maflcko (Migrated from github.com) reviewed 2026-07-30 12:01:33 +00:00
maflcko (Migrated from github.com) commented 2026-07-30 12:01:33 +00:00

Hmm, yeah, the GH cache seemed slow at some point in the past, but is it also true for artifacts?

Side-topic: macOS/Windows are still using the GHA cache and moving Windows was closed in https://github.com/bitcoin/bitcoin/pull/35683

Also, the GHA cache is still 200GB, so maybe it can be reduced again a bit (maybe to 20GB), given that only macOS/Windows are using it?

Also, the windows-cross-to-native tasks are still using artifacts.

No strong opinion. I just wonder if artifcats are also slow and if inconsistent handling is worth it.

Hmm, yeah, the GH cache seemed slow at some point in the past, but is it also true for artifacts? Side-topic: macOS/Windows are still using the GHA cache and moving Windows was closed in https://github.com/bitcoin/bitcoin/pull/35683 Also, the GHA cache is still 200GB, so maybe it can be reduced again a bit (maybe to 20GB), given that only macOS/Windows are using it? Also, the windows-cross-to-native tasks are still using artifacts. No strong opinion. I just wonder if artifcats are also slow and if inconsistent handling is worth it.
sedited commented 2026-09-11 08:42:29 +00:00 (Migrated from github.com)

@willcl-ark can you do the requested rebase here?

@willcl-ark can you do the requested rebase here?
willcl-ark commented 2026-09-11 08:44:02 +00:00 (Migrated from github.com)

Rebased

Rebased
First-time contributor

No verified findings are available from this review.

Review coverage was incomplete.


Reviewed: e7ddc816e4bf · Full review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:4d44b6ffa09c54db24f8f0ab27ae388beae06a733efcae741ca64db76bb1c938:7efd3c3ba41667382004cfa7a7db56605da7d8f9b7ab69bc483f27117390ba48 --> <!-- ralph-base:f22abab451b6c2327308df832246b2cba9c35658 --> <!-- ralph-head:e7ddc816e4bf1b84b0013f56c6f7754e2a0406b2 --> <!-- ralph-case:090f4a82cf9f0b3c51c40e4892fbba35b8ee8ef4e00c4aaf24deac83500331a2 --> No verified findings are available from this review. Review coverage was incomplete. <!-- Review tier: standard --> --- Reviewed: [`e7ddc816e4bf`](<https://git.fish.foo/bitcoin/bitcoin/commit/e7ddc816e4bf1b84b0013f56c6f7754e2a0406b2>) · [Full review report](<https://review.fish.foo/traces/35774-e7ddc816e4bf1b84b0013f56c6f7754e2a0406b2-2291-3.html>) · [Previous reports](<https://review.fish.foo/traces/35774/>) [permalink](<https://review.fish.foo/traces/35774-e7ddc816e4bf1b84b0013f56c6f7754e2a0406b2-2291-3.html>)
maflcko (Migrated from github.com) reviewed 2026-11-05 15:44:01 +00:00
maflcko (Migrated from github.com) commented 2026-11-05 15:44:01 +00:00

Happy to review this pull, but still wondering about this:

  • Is this measurably faster?
  • If yes, why not use it for Windows as well?
  • If no, why not just use plain simple GHA for consistency?

Not a blocker. Happy to give this a best-effort review, but I am wondering.

Happy to review this pull, but still wondering about this: * Is this measurably faster? * If yes, why not use it for Windows as well? * If no, why not just use plain simple GHA for consistency? Not a blocker. Happy to give this a best-effort review, but I am wondering.
maflcko (Migrated from github.com) approved these changes 2026-11-06 08:58:05 +00:00
maflcko (Migrated from github.com) left a comment

lgtm

lgtm
maflcko (Migrated from github.com) commented 2026-11-06 08:57:58 +00:00

nit: Can you move this right next to the windows ones, so that it is easy to see/review the copy-pasted parts?

nit: Can you move this right next to the windows ones, so that it is easy to see/review the copy-pasted parts?
willcl-ark (Migrated from github.com) reviewed 2026-11-06 09:19:48 +00:00
willcl-ark (Migrated from github.com) commented 2026-11-06 09:19:48 +00:00

Done.

Done.
willcl-ark commented 2026-11-06 09:20:23 +00:00 (Migrated from github.com)

Addressed @maflcko's comment, and added the missing timout suggested by ralph in: git range-diff 0f573277d888d07247197add0a60bf5331cbdc48...e7ddc816e4bf1b84b0013f56c6f7754e2a0406b2

Addressed @maflcko's comment, and added the missing timout suggested by ralph in: `git range-diff 0f573277d888d07247197add0a60bf5331cbdc48...e7ddc816e4bf1b84b0013f56c6f7754e2a0406b2`
maflcko (Migrated from github.com) reviewed 2026-11-06 15:36:35 +00:00
maflcko (Migrated from github.com) commented 2026-11-06 15:36:36 +00:00

This isn't copy-pasted correctly? Maybe use a template?

This isn't copy-pasted correctly? Maybe use a template?
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!35774
No description provided.