PR #26299 opened by Timo Rothenpieler (BtbN) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26299 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26299.patch
The runners save PR-Caches per-PR, as to avoid cache poisoning attacks. But this also means that whenever new fate samples get uploaded, and master has not yet run a build on that runner, each runner saves one full copy of the fate suite per PR, quickly exhausting their disk space. With both the huge influx of PRs, and of new fate samples being uploaded, this has lead to a quick exhaustion of runner disk space. >From a63bd32ff7da24f300a2ccbf935e31925062baab Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler <[email protected]> Date: Mon, 23 Nov 2026 13:48:26 +0100 Subject: [PATCH] forgejo/workflows: don't write fate-suite cache from PRs The runners save PR-Caches per-PR, as to avoid cache poisoning attacks. But this also means that whenever new fate samples get uploaded, and master has not yet run a build on that runner, each runner saves one full copy of the fate suite per PR, quickly exhausting their disk space. With both the huge influx of PRs, and of new fate samples being uploaded, this has lead to a quick exhaustion of runner disk space. --- .forgejo/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 5e6fd75a8c0..295697065ee 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -59,7 +59,7 @@ jobs: echo "hash=$(find fate-suite -type f -printf "%P %s %T@\n" | sort | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT - name: Cache Fate-Suite uses: actions/cache/save@v5 - if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }} + if: ${{ forge.event_name != 'pull_request' && format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }} with: path: fate-suite key: fate-suite-${{ steps.fate.outputs.hash }} @@ -143,7 +143,7 @@ jobs: echo "hash=$(find fate-suite -type f -printf "%P %s %T@\n" | sort | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT - name: Cache Fate-Suite uses: actions/cache/save@v5 - if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }} + if: ${{ forge.event_name != 'pull_request' && format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }} with: path: fate-suite key: fate-suite-${{ steps.fate.outputs.hash }} -- 2.54.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
