Skip to content

Commit

Permalink
teuthology/suite/run.py: Added some loggings and ScheduleFail exception
Browse files Browse the repository at this point in the history
Signed-off-by: Kamoltat Sirivadhna <[email protected]>
  • Loading branch information
kamoltat committed Mar 7, 2024
1 parent 3c051fb commit 485dab4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion teuthology/suite/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from teuthology.config import config, JobConfig
from teuthology.exceptions import (
BranchMismatchError, BranchNotFoundError, CommitNotFoundError,
ScheduleFailError
)
from teuthology.misc import deep_merge, get_results_url
from teuthology.orchestra.opsys import OS
Expand Down Expand Up @@ -240,8 +241,12 @@ def choose_teuthology_branch(self):
"""
teuthology_branch = self.args.teuthology_branch
log.info("self.args.teuthology_branch: ")
log.info(teuthology_branch)
if not teuthology_branch:
log.info("os.environ.get('TEUTH_BRANCH', None): ")
teuthology_branch = os.environ.get('TEUTH_BRANCH', None)
log.info(teuthology_branch)
if not teuthology_branch:
branch_file_path = self.suite_repo_path + '/qa/.teuthology_branch'
log.debug('Check file %s exists', branch_file_path)
Expand Down Expand Up @@ -575,11 +580,14 @@ def schedule_suite(self):
self.suite_repo_path,
self.args.suite_relpath,
'suites',
self.base_config.suite.replace(':', '/'),
suite_name.replace(':', '/'),
))
if not os.path.exists(suite_path):
raise ScheduleFailError("Suite path doesn't exists", suite_name)
log.debug('Suite %s in %s' % (suite_name, suite_path))
log.debug(f"subset = {self.args.subset}")
log.debug(f"no_nested_subset = {self.args.no_nested_subset}")
log.debug("Jr test")
configs = build_matrix(suite_path,
subset=self.args.subset,
no_nested_subset=self.args.no_nested_subset,
Expand Down

0 comments on commit 485dab4

Please sign in to comment.