From d516927740e63c033709154fb2c377870392787f Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 8 Jul 2025 13:14:37 -0600 Subject: [PATCH] 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 --- teuthology/suite/run.py | 6 +++++- teuthology/suite/test/test_run_.py | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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', -- 2.47.3