game-ci / game-ci/docker

Android Editor builds fail due to storage problems

Open
#275 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dockerfile
Stars
470
Forks
140
PR merge metrics
No merged PRs in 30d

Description

**Bug description**

As you can see in the GitHub Actions, the last few 6.3.X builds failed to complete.
https://github.com/game-ci/docker/actions/runs/21362813556

It looks like the root cause is that the build process runs out of diskspace during a caching process.

**Additional details**

I am not very familiar with this workflow and I did ask ChatGPT for help, so I am not sure if this is a good suggestion. That's why I didn't make a PR but an issue instead.
AI suggests to offload buildx caching from tmp/ to mnt/ which might gives us more diskspace.

```
diff --git a/.github/workflows/new-ubuntu-post-2019-2-editor-image-requested.yml b/.github/workflows/new-ubuntu-post-2019-2-editor-image-requested.yml
index 1234567..abcdef0 100644
--- a/.github/workflows/new-ubuntu-post-2019-2-editor-image-requested.yml
+++ b/.github/workflows/new-ubuntu-post-2019-2-editor-image-requested.yml
@@ -95,6 +95,13 @@ jobs:
- name: Free disk space
run: .github/workflows/scripts/free_disk_space.sh

+ ############################
+ # Prepare buildx cache #
+ ############################
+ - name: Prepare buildx cache dir
+ run: |
+ sudo mkdir -p /mnt/buildx-cache
+ sudo chown -R $USER:$USER /mnt/buildx-cache
+
############################
# Pull previous images #
############################
@@ -118,8 +125,8 @@ jobs:
changeSet=${{ github.event.client_payload.changeSet }}
module=${{ matrix.targetPlatform }}
- cache-from: type=local,src=/tmp/.buildx-cache
- cache-to: type=local,dest=/tmp/.buildx-cache
+ cache-from: type=local,src=/mnt/buildx-cache
+ cache-to: type=local,dest=/mnt/buildx-cache
push: true
tags: |
unityci/editor:${{ github.event.client_payload.editorVersion }}-${{ matrix.targetPlatform }}-${{ github.event.client_payload.repoVersionFull }}
@@ -152,8 +159,8 @@ jobs:
changeSet=${{ github.event.client_payload.changeSet }}
module=${{ matrix.targetPlatform }}
- cache-from: type=local,src=/tmp/.buildx-cache
- cache-to: type=local,dest=/tmp/.buildx-cache
+ cache-from: type=local,src=/mnt/buildx-cache
+ cache-to: type=local,dest=/mnt/buildx-cache
push: true
tags: |
unityci/editor:${{ github.event.client_payload.editorVersion }}-${{ matrix.targetPlatform }}-${{ github.event.client_payload.repoVersionFull }}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.