-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Problem
The moxygen upstream Docker image (ghcr.io/facebookexperimental/moqrelay:latest-amd64) is ~5.6GB. After building moq-rs from source, the GitHub Actions ubuntu-latest runner runs out of disk space when pulling and extracting the moxygen image:
ERROR: failed to register layer: write /tmp/fbcode_builder_getdeps-ZappZbuildZfbcode_builder-root/build/wangle/lib/libwangle_ssl.a: no space left on device
The adapter build step now has continue-on-error: true (#19) so this doesn't block the rest of the workflow, but it means moxygen Docker-based interop tests are effectively skipped. Remote endpoint tests against moxygen still run fine.
Possible solutions
-
Free disk space before builds — Remove pre-installed software on the runner (Android SDK, .NET, Haskell, etc.) to reclaim ~20-30GB. Common pattern in Actions workflows:
- name: Free disk space run: | sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /opt/ghcrunner docker system prune -af
-
Use a larger runner —
ubuntu-latest-xlor a self-hosted runner with more disk -
Cache the moxygen image layers — Use
docker save/docker loadwith Actions cache to avoid re-pulling 5.6GB each run -
Ask moxygen maintainers about a smaller image — The 5.6GB image includes the full fbcode build tree; a multi-stage build producing a slimmer runtime image would help everyone
Context
- First observed in run 21808896604
- Workaround merged in fix(ci): continue on adapter build failure #19
- Related: fix(ci): fix Docker test failures — jq syntax and cert permissions #18 (fixed jq syntax that previously masked this by silently skipping the build)