From ad29081ba36525361f0d27b0b9a34e65be06197e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 19 Jul 2026 19:53:49 +0200 Subject: [PATCH] benchmarks: reduce CodSpeed CI load to avoid cache API rate limits Run on push only for main (PR branches already get a pull_request run with identical results) and cap the 70-job matrix at 12 concurrent jobs so the GitHub cache API is not hit by all of them at once. --- .github/workflows/benchmarks.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 2bafb5943ce..b85f10c5c76 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -7,7 +7,7 @@ on: pull_request: push: branches: - - '*' + - main permissions: contents: read # to fetch code (actions/checkout) @@ -25,6 +25,9 @@ jobs: env: CARGO_INCREMENTAL: 0 strategy: + # Stagger the jobs: 70 concurrent runners hitting the GitHub cache API + # (rust-cache + sccache + CodSpeed) at once triggers HTTP 429s. + max-parallel: 12 matrix: type: [simulation, memory] package: [