Skip to content

"try-job" parsing logic seems to be space-sensitive #137013

Closed
@RalfJung

Description

@RalfJung

I don't know exactly what I did, but I got this error when trying to trigger a try build:

INFO:root:Job type: TryRunType(custom_jobs=[' aarch64-apple'])
Traceback (most recent call last):
  File "/home/runner/work/rust/rust/src/ci/github-actions/ci.py", line 314, in <module>
    calculate_job_matrix(data)
  File "/home/runner/work/rust/rust/src/ci/github-actions/ci.py", line 266, in calculate_job_matrix
    jobs = calculate_jobs(run_type, job_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/rust/rust/src/ci/github-actions/ci.py", line 153, in calculate_jobs
    raise Exception(
Exception: Custom job(s) `[' aarch64-apple']` not found in auto jobs

Might be worth stripping leading and trailing spaces?

Cc @rust-lang/infra

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions