Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

ci(editor): get the snapshot off the runner before the runner dies

yhhbd7a9c540d2c
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2f366cc41..ec57641e0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -479,6 +479,22 @@ jobs:
ELECTRON_DISABLE_SANDBOX: '1'
run: xvfb-run -a --server-args="-screen 0 1920x1080x24" node tools/verify-render.mjs --tier pr --host editor --no-build --budget 10
+ # A run that dies of ENOSPC uploads NO log — this job's last failure lost every
+ # line of it, including the snapshot that would have said what filled the disk.
+ # An artifact leaves over the network from files already written, so it is the
+ # one channel that does not need the disk it is reporting on.
+ - name: Keep the disk snapshots even if the runner dies
+ if: always()
+ uses: actions/upload-artifact@v7
+ with:
+ name: editor-disk-watch
+ path: |
+ /tmp/disk-watch.log
+ /tmp/disk-culprit.log
+ /tmp/disk-deep.log
+ if-no-files-found: ignore
+ retention-days: 3
+
# The job has died here twice with "No space left on device", and a runner with
# no disk cannot write the log that would say what filled it. The `df` at the
# top proves the job STARTS with ~100GB; this one is where it is gone by, and