alexcrichton opened PR #13125 from alexcrichton:docker-cache to bytecodealliance:main:
Linux package servers have been particularly flaky today so I've re-investigated how to maybe cache everything. The idea here is that we use the "officially recommended" way of caching builds of docker images on github actions, notably using the github actions cache. The way this is configured is that some extra steps happen on github which populate the github actions cache and local docker daemon such that when the actual build happens, totally independently of these github actions steps, it just so happens to get cache hits. This is done to ensure that if we make a mistake here it doesn't result in stale builds, just slower builds.
The overall hope here is that by using the github actions cache for docker images we can hit package installation less than we currently do. The hope is that all the images fit within the github actions cache. I think they do but it's pretty noisy and each build generates new entries so I'm not entirely sure what's happening. Local testing shows that reruns do indeed proceed faster and don't hit
apt-getfor example, though.This doesn't entirely insulate us from issues with
apt-getbecause runs will still useapt-getexternally from docker, such as just installing a few extra packages. I don't know how to make those more robust, but hopefully we can at least reduce some flakiness by caching some things.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested fitzgen for a review on PR #13125.
alexcrichton requested wasmtime-default-reviewers for a review on PR #13125.
alexcrichton updated PR #13125.
pchickey submitted PR review.
pchickey added PR #13125 Attempt to cache docker images in CI to the merge queue.
pchickey merged PR #13125.
pchickey removed PR #13125 Attempt to cache docker images in CI from the merge queue.
Last updated: May 03 2026 at 22:13 UTC