Repository navigation
ci: test cross-built macos arm64 binaries - #35774
willcl-ark wants to merge 2 commits into
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsNo conflicts as of last run. |
| key: macos-arm64-binaries-${{ github.run_id }} | ||
| provider: ${{ github.repository == 'bitcoin/bitcoin' && 'warp' || 'gha' }} | ||
| enable-cross-os-archive: true | ||
| enable-cross-arch-archive: true |
There was a problem hiding this comment.
Seems a bit tedious to use the cache for this? Why not use a artifact, like the pre-existing windows tests and like d40e61e?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 #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.
There was a problem hiding this comment.
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.
a74438c to
ab86ef4
Compare
|
Concept ACK given #35771. Similar to Windows, we should have a CI that is natively testing the release-like cross built bins. |
|
Could rebase, and put this on top of #35838? |
|
@willcl-ark can you do the requested rebase here? |
ab86ef4 to
735c2bc
Compare
|
Rebased |
735c2bc to
0f57327
Compare
Give the arm64 cross-build a separate job so native tests can depend on its completion without waiting for unrelated matrix builds.
Run test_bitcoin and test_bitcoin-qt on native arm64 hardware to exercise the cross-built binaries. Transfer the binaries and test fixture through GitHub artifacts, matching the Windows cross-build jobs. Keep them in a tar archive to preserve executable permissions. Limit the native job to 120 minutes so hung tests cannot occupy a runner for six hours.
0f57327 to
e7ddc81
Compare
|
Addressed @maflcko's comment, and added the missing timout suggested by ralph in: |
| steps: | ||
| - *ANNOTATION_PR_NUMBER | ||
|
|
||
| - *CHECKOUT |
There was a problem hiding this comment.
This isn't copy-pasted correctly? Maybe use a template?

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-qtinmacos_cross, and test the binaries in a subsequent job.the macos_cross job is removed from
ci-matrixas otherwise the newmacos-cross-arm64test 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).