Skip to content

Commit cbbf8db

Browse files
author
Bastien Abadie
committed
bot: Use official TaskclusterConfig
1 parent 8947cd7 commit cbbf8db

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

bot/code_coverage_bot/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
55

6-
PROJECT_NAME = "code-coverage-bot"
76
HG_BASE = "https://hg.mozilla.org/"
87
MOZILLA_CENTRAL_REPOSITORY = "{}mozilla-central".format(HG_BASE)
98
TRY_REPOSITORY = "{}try".format(HG_BASE)

bot/code_coverage_bot/secrets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
55

6-
from code_coverage_bot import config
76
from code_coverage_bot.taskcluster import taskcluster_config
87

98

@@ -19,7 +18,7 @@ class Secrets(dict):
1918
def load(self, taskcluster_secret):
2019
taskcluster_config.load_secrets(
2120
taskcluster_secret,
22-
config.PROJECT_NAME,
21+
prefixes=["common", "code-coverage-bot"],
2322
required=[
2423
Secrets.APP_CHANNEL,
2524
Secrets.BACKEND_HOST,

bot/code_coverage_bot/taskcluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
import requests
88
import structlog
99
import taskcluster
10+
from taskcluster.helper import TaskclusterConfig
1011

1112
from code_coverage_bot.utils import retry
12-
from code_coverage_tools.taskcluster import TaskclusterConfig
1313

1414
logger = structlog.getLogger(__name__)
15-
taskcluster_config = TaskclusterConfig()
15+
taskcluster_config = TaskclusterConfig("https://firefox-ci-tc.services.mozilla.com")
1616

1717

1818
def get_task(branch, revision, platform):

0 commit comments

Comments
 (0)