Skip to content

Commit d923646

Browse files
committed
bot: Allow None cache_root (it is unused by the crontrigger command)
1 parent 20b1f07 commit d923646

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bot/code_coverage_bot/hooks/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ def __init__(
4949
"Mercurial setup", repository=self.repository, revision=self.revision
5050
)
5151

52-
assert os.path.isdir(cache_root), f"Cache root {cache_root} is not a dir."
53-
self.repo_dir = os.path.join(cache_root, self.branch)
52+
if cache_root is not None:
53+
assert os.path.isdir(cache_root), f"Cache root {cache_root} is not a dir."
54+
self.repo_dir = os.path.join(cache_root, self.branch)
5455

5556
# Load coverage tasks for all platforms
5657
decision_task_id = taskcluster.get_decision_task(self.branch, self.revision)

bot/code_coverage_bot/hooks/crontrigger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ def run(self) -> None:
5151
def main() -> None:
5252
logger.info("Starting code coverage bot for crontrigger")
5353
args = setup_cli(ask_revision=False, ask_repository=False)
54-
hook = CronTriggerHook(args.task_name_filter, args.cache_root, args.working_dir)
54+
hook = CronTriggerHook(args.task_name_filter, None, args.working_dir)
5555
hook.run()

0 commit comments

Comments
 (0)