cthoyt/obo-community-health

Unstable results from GitHub APIs - motivates implementing a caching mechanism

Closed this issue · 0 comments

It turns out that GitHub's APIs do not return stable results - if you run the same query multiple times, you will randomly get some results excluded each time. I have no idea what's going on here. This affects several parts of the OBO Community Health Report, which I'll group based on having shared code that gets them:

  1. Getting repo-level information on number of contributors, number of unique contributors, number of total contributions, etc. (these are acquired using the GitHub Repository API)
  2. ODK status and version number (this is acquired using the GitHub Search API)