Repository navigation
Conversation
Also, the "macOS 11.0 [gui, no tests] [jammy]" task has been removed from the Cirrus CI.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline 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. |
|
So this is needed for the gui-qml repo to upload assets? Are there any other tasks that need this feature? |
Yes, but this is not the only reason for moving to GitHub Actions (GHA). Other reasons are:
https://github.com/bitcoin-core/gui-qml/blob/main/.cirrus.yml uploads artifacts for the tasks as follow:
|
| tags: test_image | ||
| load: true | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=min |
There was a problem hiding this comment.
What is the cache limit and the inner working?
There was a problem hiding this comment.
What is the cache limit ...?
... the total size of all caches in a repository is limited to 10 GB.
What is ... the inner working?
There was a problem hiding this comment.
So every image will be re-built every week regardless of whether it changed?
Also, is the 10 GB enough to store all ccache + depends + image + ... stuff for all tasks?
There was a problem hiding this comment.
So every image will be re-built every week regardless of whether it changed?
Sorry, I don't follow. Why will it be re-built every week?
There was a problem hiding this comment.
Ah, sorry, I assumed cache entries will be unconditionally deleted after 7 days. New question: So every image will be re-built regardless of whether it changed, given 10GB of non-image cache items (ccache+depends+...) have been created?
There was a problem hiding this comment.
On the other hand, it's possible to delete images, so it wouldn't be too crazy to "abuse" GHCR for passing CI images and still avoid without eating storage without a limit.
Ah, looks like this is something that should probably be done either way, because untagged images are also kept around. So even if only images for the master branch are used, it would be good to delete "stale tags" (that is, untagged images).
There was a problem hiding this comment.
Also, is the 10 GB enough to store all ccache + depends + image + ... stuff for all tasks?
Well, it depends on what "all tasks" encompass.
A single task currently will cycle through 10GB in less than a day, see https://github.com/bitcoin/bitcoin/actions/caches
There was a problem hiding this comment.
I guess for this repo, it should be sufficient to only have a master cache (written only by master) and all pull requests and other branches simply read-only from master. This should make the storage needs constant (limited) and easier to think about, without much downside.
There was a problem hiding this comment.
You, mean also for the Docker build cache? Yeah, that's a damn simple approach. Then 10 GB are enough for sure, and okay, PRs that modify the Dockerfile will rebuild the Docker image on every push time, but seems acceptable. Anyway, if working on the images, it makes sense to test/build them locally first.
But wouldn't you need artifacts again to transfer the image from the Docker build task to the actual CI task, namely in PRs that modify the Dockerfile, to avoid building the image in every single CI task? Or is this acceptable for this repo, because there won't be many tasks?
The only theoretical problem is this:
GitHub will remove any cache entries that have not been accessed in over 7 days.
It's rather unlikely in this repo that there will be no PR for 7 days. ;) It may happen in the secp256k1 repo, then we could simply have a cron job that runs once every week to rebuild the Docker image. (This is anyway not a bad idea if we want to rebuild our compiler snapshots.)
There was a problem hiding this comment.
Or is this acceptable for this repo, because there won't be many tasks?
There shouldn't be any difference for this repo, because every task has its own image.
|
🐙 This pull request conflicts with the target branch and needs rebase. |
|
Any reason to not run this on a self-hosted worker through cirrus? I thought we only wanted to convert to GHA where nobody is willing to self host e.g. the native macOS jobs. |
Self-hosted workers have downsides. For example, they need to be set-up for every fork in a different org, before the CI can be run. But GHA also has downsides. For example, tasks can not be re-run by authors, unless they (force-)push. And the qml repo needs GHA artefacts? My suggestion for now would be to use Cirrus self-hosted workers. The qml repo can cherry-pick this pull request in the meantime, until the cache issue is fixed one way or another. |
Sounds good to me. I don't think we should have a dependency on the experimental gui rewrite in this repo. |
|
I agree. The requirements of a separate (experimental) repository are not really our concern when making CI infrastructure decisions. |
|
I agree that UX of GitHub Actions is not perfect, unfortunately. Closing this PR. |
|
I guess neither solution is perfect, but longer term it would still be fun to explore if something can be achieved via ghcr (or some other registry), see https://github.com/bitcoin/bitcoin/pull/28265/files#r1295647557 |


In response to upcoming limiting free usage of Cirrus CI, suggesting to move the "macOS 11.0 [gui, no tests] [jammy]" task from Cirrus CI to GitHub Actions (GHA).
(See slightly related discussion in #28098)
Builds in my personal repo:
unpopulated caches: https://github.com/hebasto/bitcoin/actions/runs/5849385308/attempts/1

populated caches: https://github.com/hebasto/bitcoin/actions/runs/5849385308/attempts/2

A list of the used actions for the "Actions permissions" repository settings: