about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2024-07-26 13:30:52 +0200
committerJakub Beránek <berykubik@gmail.com>2024-07-26 13:30:52 +0200
commit114e0dcf254eb88aa66cad76088a46bf47b82b52 (patch)
tree3077e6025a7b45cf8a7f44a4b27f5cbf5ff6efea
parent83d67685acb520fe68d5d5adde4b25fb725490de (diff)
downloadrust-114e0dcf254eb88aa66cad76088a46bf47b82b52.tar.gz
rust-114e0dcf254eb88aa66cad76088a46bf47b82b52.zip
CI: do not respect custom try jobs for unrolled perf builds
-rwxr-xr-xsrc/ci/github-actions/calculate-job-matrix.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ci/github-actions/calculate-job-matrix.py b/src/ci/github-actions/calculate-job-matrix.py
index d03bbda1008..7de6d5fcd5f 100755
--- a/src/ci/github-actions/calculate-job-matrix.py
+++ b/src/ci/github-actions/calculate-job-matrix.py
@@ -97,9 +97,15 @@ def find_run_type(ctx: GitHubCtx) -> Optional[WorkflowRunType]:
             "refs/heads/automation/bors/try"
         )
 
+        # Unrolled branch from a rollup for testing perf
+        # This should **not** allow custom try jobs
+        is_unrolled_perf_build = ctx.ref == "refs/heads/try-perf"
+
         if try_build:
-            jobs = get_custom_jobs(ctx)
-            return TryRunType(custom_jobs=jobs)
+            custom_jobs = []
+            if not is_unrolled_perf_build:
+                custom_jobs = get_custom_jobs(ctx)
+            return TryRunType(custom_jobs=custom_jobs)
 
         if ctx.ref == "refs/heads/auto":
             return AutoRunType()