Skip to content

Commit

Permalink
CI: do not respect custom try jobs for unrolled perf builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jul 26, 2024
1 parent 83d6768 commit 114e0dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ci/github-actions/calculate-job-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 114e0dc

Please sign in to comment.