Skip to content

Commit 0aef99e

Browse files
committed
Stop checking JavaScript files existence in the repository
There are too many autogenerated JS files now, this log is too noisy.
1 parent 5d8fdee commit 0aef99e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bot/code_coverage_bot/hooks/repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def run(self):
158158
notify_email(self.revision, changesets, coverage)
159159
logger.info("Sent low coverage email notification")
160160

161-
self.check_javascript_files()
161+
if secrets.get(secrets.CHECK_JAVASCRIPT_FILES, False):
162+
self.check_javascript_files()
162163

163164
# Generate all reports except the full one which we generated earlier.
164165
all_report_combinations = self.artifactsHandler.get_combinations()

bot/code_coverage_bot/secrets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Secrets(dict):
1414
PHABRICATOR_URL = "PHABRICATOR_URL"
1515
PHABRICATOR_TOKEN = "PHABRICATOR_TOKEN"
1616
GOOGLE_CLOUD_STORAGE = "GOOGLE_CLOUD_STORAGE"
17+
CHECK_JAVASCRIPT_FILES = "CHECK_JAVASCRIPT_FILES"
1718

1819
def load(self, taskcluster_secret=None, local_secrets=None):
1920
taskcluster_config.load_secrets(

0 commit comments

Comments
 (0)