From: Zack Cerza Date: Tue, 8 Jul 2025 19:14:37 +0000 (-0600) Subject: suite.run: Fix parent commit search X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2037%2Fhead;p=teuthology.git suite.run: Fix parent commit search We were only looking in ceph.git; look in e.g. ceph-ci.git if that is the ceph repo being tested. Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index 8e8698f52..ce3276a39 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -680,7 +680,11 @@ Note: If you still want to go ahead, use --job-threshold 0''' self.collect_jobs(arch, configs, self.args.newest, job_limit) if jobs_missing_packages and self.args.newest: if not sha1s: - sha1s = util.find_git_parents('ceph', str(self.base_config.sha1), self.args.newest) + sha1s = util.find_git_parents( + self.ceph_repo_name, + str(self.base_config.sha1), + self.args.newest + ) if not sha1s: util.schedule_fail('Backtrack for --newest failed', name, dry_run=self.args.dry_run) cur_sha1 = sha1s.pop(0) diff --git a/teuthology/suite/test/test_run_.py b/teuthology/suite/test/test_run_.py index 3b45974c1..d1c8a0600 100644 --- a/teuthology/suite/test/test_run_.py +++ b/teuthology/suite/test/test_run_.py @@ -247,8 +247,8 @@ class TestScheduleSuite(object): suite_relpath='', suite_dir='suite_dir', suite_branch='main', - suite_repo='main', - ceph_repo='main', + suite_repo='ceph', + ceph_repo='ceph', ceph_branch='main', ceph_sha1='ceph_sha1', teuthology_branch='main',