From be7cc0ba3e40da14cff31d441dd2b9e12474120f Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Fri, 10 Jul 2026 12:46:49 -0300 Subject: [PATCH] Bucket server test-timing cache by date to cut cache churn (#37425) --- .github/workflows/server-test-merge-template.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/server-test-merge-template.yml b/.github/workflows/server-test-merge-template.yml index 7c31607d739..28d1978b74a 100644 --- a/.github/workflows/server-test-merge-template.yml +++ b/.github/workflows/server-test-merge-template.yml @@ -79,6 +79,7 @@ jobs: id: timing-prep run: | mkdir -p server + echo "date=$(date -u +%Y-%m-%d)" >> "$GITHUB_OUTPUT" if [[ -f merged-report.xml && $(stat -c%s merged-report.xml) -gt 1024 ]]; then cp merged-report.xml server/prev-report.xml cat shards/*/gotestsum.json > server/prev-gotestsum.json 2>/dev/null || true @@ -100,5 +101,5 @@ jobs: path: | server/prev-report.xml server/prev-gotestsum.json - # The v2 prefix matches the v2 restore prefix in server-test-template.yml. - key: server-test-timing-v2-master-${{ github.run_id }} + # Bucket by UTC date (not run id) so we save at most one cache per day. + key: server-test-timing-v2-master-${{ steps.timing-prep.outputs.date }}