Skip to content

Commit

Permalink
tests-scan: don't 'job'-ify other-repo jobs
Browse files Browse the repository at this point in the history
job-runner doesn't support running jobs from other repositories, so
don't emit `'job': { ... }` objects for those.
  • Loading branch information
allisonkarlitskaya authored and martinpitt committed Mar 8, 2024
1 parent a0223ff commit c377eb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests-scan
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ def queue_test(job: Job, channel, options: argparse.Namespace) -> None:
"sha": job.revision,
"ref": job.ref,
"name": job.name,
# future job-runner format; once everything moved over, remove the stuff above
"job": {

# job-runner doesn't support this yet...
"job": None if job.repo != options.repo else {
"repo": job.repo,
"sha": job.revision,
"context": job.context,
Expand Down

0 comments on commit c377eb8

Please sign in to comment.