Skip to content

Commit 245d592

Browse files
committed
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 <[email protected]>
1 parent 796a440 commit 245d592

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

teuthology/suite/run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,11 @@ def schedule_suite(self):
677677
self.collect_jobs(arch, configs, self.args.newest, job_limit)
678678
if jobs_missing_packages and self.args.newest:
679679
if not sha1s:
680-
sha1s = util.find_git_parents('ceph', str(self.base_config.sha1), self.args.newest)
680+
sha1s = util.find_git_parents(
681+
self.ceph_repo_name,
682+
str(self.base_config.sha1),
683+
self.args.newest
684+
)
681685
if not sha1s:
682686
util.schedule_fail('Backtrack for --newest failed', name, dry_run=self.args.dry_run)
683687
cur_sha1 = sha1s.pop(0)

teuthology/suite/test/test_run_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def setup_method(self):
247247
suite_relpath='',
248248
suite_dir='suite_dir',
249249
suite_branch='main',
250-
suite_repo='main',
251-
ceph_repo='main',
250+
suite_repo='ceph',
251+
ceph_repo='ceph',
252252
ceph_branch='main',
253253
ceph_sha1='ceph_sha1',
254254
teuthology_branch='main',

0 commit comments

Comments
 (0)