From 03e7b044556a9034ddeb48c3003cb51cf9522443 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 14 Sep 2026 21:46:07 -0500 Subject: [PATCH] Build/Test Tools: Set explicit retention periods for build artifacts. Four `actions/upload-artifact` steps inherit GitHub's 90-day default retention, which is far longer than any of them are used for. The `wordpress-develop` and `performance-*` artifacts are same-run handoffs, downloaded by a later job in the same workflow run and never read again. The `failures-artifacts*` artifacts are debugging output from failed end-to-end runs that no workflow consumes. The `wordpress-build-*` artifacts are the only ones read across runs, by the performance test baseline lookup in `performance.yml` and by the WordPress Playground previewer, so they keep a longer window. See #65845. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/reusable-build-package.yml | 1 + .github/workflows/reusable-end-to-end-tests.yml | 1 + .github/workflows/reusable-performance-test-v2.yml | 1 + .github/workflows/reusable-test-core-build-process.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/reusable-build-package.yml b/.github/workflows/reusable-build-package.yml index 5005b2149890c..576a537f6a6e9 100644 --- a/.github/workflows/reusable-build-package.yml +++ b/.github/workflows/reusable-build-package.yml @@ -58,3 +58,4 @@ jobs: name: wordpress-develop path: develop.zip if-no-files-found: error + retention-days: 1 diff --git a/.github/workflows/reusable-end-to-end-tests.yml b/.github/workflows/reusable-end-to-end-tests.yml index 54effadf3d7d4..86aae72d2bd28 100644 --- a/.github/workflows/reusable-end-to-end-tests.yml +++ b/.github/workflows/reusable-end-to-end-tests.yml @@ -156,6 +156,7 @@ jobs: path: artifacts if-no-files-found: ignore include-hidden-files: true + retention-days: 14 - name: Ensure version-controlled files are not modified or deleted run: git diff --exit-code diff --git a/.github/workflows/reusable-performance-test-v2.yml b/.github/workflows/reusable-performance-test-v2.yml index b92893f52f7f1..91d07e304cc5c 100644 --- a/.github/workflows/reusable-performance-test-v2.yml +++ b/.github/workflows/reusable-performance-test-v2.yml @@ -271,6 +271,7 @@ jobs: path: artifacts if-no-files-found: error include-hidden-files: true + retention-days: 1 - name: Ensure version-controlled files are not modified or deleted run: git diff --exit-code diff --git a/.github/workflows/reusable-test-core-build-process.yml b/.github/workflows/reusable-test-core-build-process.yml index 1a41257418dec..b4e1e3fb293b4 100644 --- a/.github/workflows/reusable-test-core-build-process.yml +++ b/.github/workflows/reusable-test-core-build-process.yml @@ -143,6 +143,7 @@ jobs: name: wordpress-build-${{ github.event_name == 'pull_request' && github.event.number || github.sha }} path: wordpress.zip if-no-files-found: error + retention-days: 14 - name: Save PR number if: ${{ inputs.prepare-playground }}