This script can be used to traverse the last N days of CircleCI pipeline runs on the master
branch and compile the frequency of integration test failures.
- While logged into to CircleCI, go to https://app.circleci.com/settings/user/tokens and create an API token.
- Paste that token in
env.mjs
. - Install the dependencies with
npm install
. - Run the script with
node index.mjs
. You can change the number of days to look back inenv.mjs
. (90 days is the default, but that can take around 15 minutes to run.)