Skip to content

Commit 9ff0667

Browse files
authored
Merge pull request #142 from sommersoft/disable_core_dl_stats
Disable Core Download Stats
2 parents a5464f8 + affe80e commit 9ff0667

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

adabot/circuitpython_libraries.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,14 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
211211
core_insights["milestones"][milestone]))
212212
output_handler(" * {} issues not assigned a milestone".format(len(core_insights["open_issues"]) - ms_count))
213213
output_handler()
214-
print_circuitpython_download_stats()
214+
215+
## temporarily disabling core download stats:
216+
# - GitHub API has been broken, due to the number of release artifacts
217+
# - Release asset delivery is being moved to AWS CloudFront/S3
218+
#print_circuitpython_download_stats()
219+
output_handler(
220+
"* Core download stats available at https://circuitpython.org/stats"
221+
)
215222

216223
output_handler()
217224
output_handler("Libraries")
@@ -294,6 +301,12 @@ def output_handler(message="", quiet=False):
294301

295302
def print_circuitpython_download_stats():
296303
"""Gather and report analytics on the main CircuitPython repository."""
304+
305+
# TODO: with the move of release assets to AWS CloudFront/S3, update
306+
# this to use AWS CloudWatch metrics to gather download stats.
307+
# AWS' Python SDK `boto3` has CloudWatch interfaces which should
308+
# enable this. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudwatch.html
309+
297310
try:
298311
response = github.get("/repos/adafruit/circuitpython/releases")
299312
except (ValueError, RuntimeError):

0 commit comments

Comments
 (0)