From: Zack Cerza Date: Wed, 29 Nov 2023 18:55:28 +0000 (-0700) Subject: run: Fix some pyright errors X-Git-Tag: 1.2.0~61^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2226ad94518d9ccf38c4c0df0a4d495881c6ae8e;p=teuthology.git run: Fix some pyright errors Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index d08b750b91..b69b80b58e 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -15,7 +15,6 @@ from teuthology import repo_utils 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 @@ class Run(object): """ 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 @@ class Run(object): # 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 @@ Note: If you still want to go ahead, use --job-threshold 0''' 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)