Repository navigation
ci: add Guix builds to CI - #36006
willcl-ark wants to merge 6 commits into
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36006. ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
A full run with no caches and guix time machine sync completed in 38m 40s. |
Have you seen #35929? |
|
A cached build has completed in 23m 19s . Based on the CPU usage, there is a lot of idel setup time still, even when using a substitute server:
So there is still some juice to squeeze. I may investigate using a pre-built docker container too (possibly based off this one) to see if we can cut down on some of that wasted runner time. However overall, I think 20 - 40 minutes is pretty acceptable for a new CI job. |
|
15m4s when dropping the slow https://ci.guix.gnu.org substitute server |
Could add a second HOST? Maybe |
|
Seems fine to add this, but I fail to see the goal or motivation? It would be good to list at least a single historic bug that this would catch. Recall that the CI scripts already mirror the guix env, so any compile errors should be caught by the pre-existing CI scripts. Also, any change to guix requires matching hashes on different arches, which this pull is not doing. So non-determinism or bugs such as #35855 (comment) are not caught either here. Again, no objection to adding this, but I think it would be easier to review if there was a goal or motivation. |
|
Given the runtimes of 19m and 21m, this seems to be fast enough that you could add a Windows HOST as well. |
|
Even with a populated depends cache, the Could #35618 fix this? |
d660add to
ca133ba
Compare
Yeah that is a shame. I'm not sure it happens every time though. Unsure of the cause...
These are x64 Ubuntu runners, but perhaps I could cherry-pick that and test it out? |
bf639e7 to
4d27252
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
Run the single-host Guix build on pull requests and master pushes. Use the Guix installer with a cached, verified bootstrap and retain time-machine and depends caches to avoid repeated downloads and builds.
…roducible 7e973cc depends: Make tarball creation from local directory reproducible (Hennadii Stepanov) Pull request description: This guarantees `$(package)_sha256_hash` reproducibility regardless of the default behavior of `$(build_TAR)` and fixes [caching](#36006 (comment)) for the `native_libmultiprocess` package. Steps to reproduce the issue using the master branch @ 2a9e35d: ```console $ mkdir a && cd a && git init $ git remote add origin https://github.com/bitcoin/bitcoin.git $ git fetch --depth 1 origin 2a9e35d $ git checkout FETCH_HEAD $ cd depends $ gmake print-native_libmultiprocess_sha256_hash # Hash A. Compare with Hash B. native_libmultiprocess_sha256_hash=7dd817bfc0ee23c408299907aff13fefb0bd3a54ec66dc14ea15b0cc38c3d9ce $ cd ../../ && sleep 2 $ mkdir b && cd b && git init $ git remote add origin https://github.com/bitcoin/bitcoin.git $ git fetch --depth 1 origin 2a9e35d $ git checkout FETCH_HEAD $ cd depends $ gmake print-native_libmultiprocess_sha256_hash # Hash B. Compare with Hash A. native_libmultiprocess_sha256_hash=34d6f79560c0ff7a4f46bd6bfb4693076546b41f071b6dbf879da45ac8384688 ``` ACKs for top commit: fanquake: ACK 7e973cc willcl-ark: ACK 7e973cc Tree-SHA512: f939cd1b2aca04eaa0f8426858bae3657ee9625f915834980caacfbf80843b952451f4d1c29e27179e533de3e10d31688593e4c25ed32e62392bfbaf9e58dd12
|
Re-opened in #36082 |
…l directory reproducible 7e973cce52caeadaa9dcd4b5b6b7f53372e0aa0e depends: Make tarball creation from local directory reproducible (Hennadii Stepanov) Pull request description: This guarantees `$(package)_sha256_hash` reproducibility regardless of the default behavior of `$(build_TAR)` and fixes [caching](bitcoin/bitcoin#36006 (comment)) for the `native_libmultiprocess` package. Steps to reproduce the issue using the master branch @ 2a9e35d293b308e81811fa93ad2e5e8ed20e66e0: ```console $ mkdir a && cd a && git init $ git remote add origin https://github.com/bitcoin/bitcoin.git $ git fetch --depth 1 origin 2a9e35d293b308e81811fa93ad2e5e8ed20e66e0 $ git checkout FETCH_HEAD $ cd depends $ gmake print-native_libmultiprocess_sha256_hash # Hash A. Compare with Hash B. native_libmultiprocess_sha256_hash=7dd817bfc0ee23c408299907aff13fefb0bd3a54ec66dc14ea15b0cc38c3d9ce $ cd ../../ && sleep 2 $ mkdir b && cd b && git init $ git remote add origin https://github.com/bitcoin/bitcoin.git $ git fetch --depth 1 origin 2a9e35d293b308e81811fa93ad2e5e8ed20e66e0 $ git checkout FETCH_HEAD $ cd depends $ gmake print-native_libmultiprocess_sha256_hash # Hash B. Compare with Hash A. native_libmultiprocess_sha256_hash=34d6f79560c0ff7a4f46bd6bfb4693076546b41f071b6dbf879da45ac8384688 ``` ACKs for top commit: fanquake: ACK 7e973cce52caeadaa9dcd4b5b6b7f53372e0aa0e willcl-ark: ACK 7e973cce52caeadaa9dcd4b5b6b7f53372e0aa0e Tree-SHA512: f939cd1b2aca04eaa0f8426858bae3657ee9625f915834980caacfbf80843b952451f4d1c29e27179e533de3e10d31688593e4c25ed32e62392bfbaf9e58dd12
…ory reproducible 7e973cc depends: Make tarball creation from local directory reproducible (Hennadii Stepanov) Pull request description: This guarantees `$(package)_sha256_hash` reproducibility regardless of the default behavior of `$(build_TAR)` and fixes [caching](bitcoin#36006 (comment)) for the `native_libmultiprocess` package. Steps to reproduce the issue using the master branch @ 2a9e35d: ```console $ mkdir a && cd a && git init $ git remote add origin https://github.com/bitcoin/bitcoin.git $ git fetch --depth 1 origin 2a9e35d $ git checkout FETCH_HEAD $ cd depends $ gmake print-native_libmultiprocess_sha256_hash # Hash A. Compare with Hash B. native_libmultiprocess_sha256_hash=7dd817bfc0ee23c408299907aff13fefb0bd3a54ec66dc14ea15b0cc38c3d9ce $ cd ../../ && sleep 2 $ mkdir b && cd b && git init $ git remote add origin https://github.com/bitcoin/bitcoin.git $ git fetch --depth 1 origin 2a9e35d $ git checkout FETCH_HEAD $ cd depends $ gmake print-native_libmultiprocess_sha256_hash # Hash B. Compare with Hash A. native_libmultiprocess_sha256_hash=34d6f79560c0ff7a4f46bd6bfb4693076546b41f071b6dbf879da45ac8384688 ``` ACKs for top commit: fanquake: ACK 7e973cc willcl-ark: ACK 7e973cc Tree-SHA512: f939cd1b2aca04eaa0f8426858bae3657ee9625f915834980caacfbf80843b952451f4d1c29e27179e533de3e10d31688593e4c25ed32e62392bfbaf9e58dd12 (cherry picked from commit 0f5c6d0)

Adds:
... Guix builds to CI as a standalone workflow.
Testing exposed that
manifest_build.scmdepends are invalidated by a subsequentmanifest_gui.scmbuild, so the first commit here splits these inside ofBASE_CACHE. This means they can both be cached and re-used.The second commit exports the time machine commit which makes it easier to re-use in other scripts e.g. this CI workflow, but also places like an automated Guix substitute build server.
The final commit adds the new workflow and guix install shell snippet.