Skip to content

Conversation

aanm
Copy link
Member

@aanm aanm commented Aug 15, 2025

Prevent GitHub runners from different architectures from restoring cache from other architectures. Cross-architecture cache restoration causes both amd64 and arm64 build artifacts to be loaded on a single runner, leading to disk space exhaustion with errors like:

compile: writing output: write $WORK/b3076/_pkg_.a: no space left on device
github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal: mkdir /tmp/go-build2367015974/b3083/: no space left on device

This occurred because cache cleanup happens on schedule, and during cache recreation, the arm64 runner would pick up the amd64 cache (or vice versa), resulting in "no space left on device" errors when trying to build for one of architectures on the same runner using both caches.

The fix ensures each architecture maintains its own isolated cache space by including the runner architecture in the cache key.

Fixes: 86061ff (".github/{integration,conformance}: use caches to speed up compilation")

Fixes: #41157

…ation

Prevent GitHub runners from different architectures from restoring cache
from other architectures. Cross-architecture cache restoration causes both
amd64 and arm64 build artifacts to be loaded on a single runner, leading
to disk space exhaustion with errors like:

    compile: writing output: write $WORK/b3076/_pkg_.a: no space left on device
    github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal: mkdir /tmp/go-build2367015974/b3083/: no space left on device

This occurred because cache cleanup happens on schedule, and during cache
recreation, the arm64 runner would pick up the amd64 cache (or vice versa),
resulting in "no space left on device" errors when trying to build for
one of architectures on the same runner using both caches.

The fix ensures each architecture maintains its own isolated cache space
by including the runner architecture in the cache key.

Fixes: 86061ff (".github/{integration,conformance}: use caches to speed up compilation")
Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm added the kind/bug/CI This is a bug in the testing code. label Aug 15, 2025
@aanm aanm requested review from a team as code owners August 15, 2025 09:53
@aanm aanm added area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Aug 15, 2025
@aanm aanm requested a review from brlbil August 15, 2025 09:53
@aanm aanm enabled auto-merge August 15, 2025 09:53
@aanm
Copy link
Member Author

aanm commented Aug 15, 2025

/test

@aanm aanm added this pull request to the merge queue Aug 15, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Aug 15, 2025
Merged via the queue into main with commit c423aed Aug 15, 2025
82 checks passed
@aanm aanm deleted the pr/fix-caches-integration-tests branch August 15, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Integration Tests (ci-integration): no space left on device (ubuntu-latest)
3 participants