Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Bkstats

A crude script to compute simple "red time" statistics from our Buildkite pipelines and post them to Slack. Owned by the DevX team.

"Red time" is defined to be the duration from the end of a failed build to the end of the first subsequent green build.

For more detailed analyses over longer periods of time, check out buildchecker history.

Usage

$ go run main.go -buildkite.token $BUILDKITE_API_TOKEN -date 2021-10-22 -buildkite.pipeline sourcegraph
# ...
On 2021-10-22, the pipeline was red for 1h8m32.856s

Buildkite API token

  1. Go over your personal settings
  2. Create a new token with the following permissions:
  • Check sourcegraph organization
  • read_builds
  • read_pipelines