Stream: git-wasmtime

Topic: wasmtime / PR #13125 Attempt to cache docker images in CI


view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2026 at 19:53):

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-get for example, though.

This doesn't entirely insulate us from issues with apt-get because runs will still use apt-get externally 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:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2026 at 19:53):

alexcrichton requested fitzgen for a review on PR #13125.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2026 at 19:53):

alexcrichton requested wasmtime-default-reviewers for a review on PR #13125.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2026 at 19:54):

alexcrichton updated PR #13125.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 20 2026 at 17:57):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 20 2026 at 17:57):

pchickey added PR #13125 Attempt to cache docker images in CI to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 20 2026 at 19:00):

pchickey merged PR #13125.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 20 2026 at 19:00):

pchickey removed PR #13125 Attempt to cache docker images in CI from the merge queue.


Last updated: May 03 2026 at 22:13 UTC