Skip to content

Commit 114e0dc

Browse files
committed
CI: do not respect custom try jobs for unrolled perf builds
1 parent 83d6768 commit 114e0dc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: src/ci/github-actions/calculate-job-matrix.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,15 @@ def find_run_type(ctx: GitHubCtx) -> Optional[WorkflowRunType]:
9797
"refs/heads/automation/bors/try"
9898
)
9999

100+
# Unrolled branch from a rollup for testing perf
101+
# This should **not** allow custom try jobs
102+
is_unrolled_perf_build = ctx.ref == "refs/heads/try-perf"
103+
100104
if try_build:
101-
jobs = get_custom_jobs(ctx)
102-
return TryRunType(custom_jobs=jobs)
105+
custom_jobs = []
106+
if not is_unrolled_perf_build:
107+
custom_jobs = get_custom_jobs(ctx)
108+
return TryRunType(custom_jobs=custom_jobs)
103109

104110
if ctx.ref == "refs/heads/auto":
105111
return AutoRunType()

0 commit comments

Comments
 (0)