From 4df115c97120f14da5da87981832ccf3e3d51d31 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 29 Nov 2023 11:55:28 -0700 Subject: [PATCH] run: Fix some pyright errors Signed-off-by: Zack Cerza --- teuthology/suite/run.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index d08b750b9..b69b80b58 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -15,7 +15,6 @@ from teuthology.config import config, JobConfig from teuthology.exceptions import ( BranchMismatchError, BranchNotFoundError, CommitNotFoundError, - VersionNotFoundError ) from teuthology.misc import deep_merge, get_results_url from teuthology.orchestra.opsys import OS @@ -173,6 +172,7 @@ def choose_ceph_hash(self): """ repo_name = self.ceph_repo_name + ceph_hash = None if self.args.ceph_sha1: ceph_hash = self.args.ceph_sha1 if self.args.validate_sha1: @@ -494,7 +494,7 @@ def collect_jobs(self, arch, configs, newest=False, limit=0): # optimization: one missing package causes backtrack in newest mode; # no point in continuing the search if newest: - return jobs_missing_packages, None + return jobs_missing_packages, [] jobs_to_schedule.append(job) return jobs_missing_packages, jobs_to_schedule @@ -642,6 +642,8 @@ def schedule_suite(self): backtrack = 0 limit = self.args.newest sha1s = [] + jobs_to_schedule = [] + jobs_missing_packages = [] while backtrack <= limit: jobs_missing_packages, jobs_to_schedule = \ self.collect_jobs(arch, configs, self.args.newest, job_limit)