sourcegraph/dev/bkstats
2021-12-29 11:25:52 +01:00
..
go.mod gomod: go get -u -t ./... (#27262) 2021-11-09 10:41:50 +02:00
go.sum gomod: go get -u -t ./... (#27262) 2021-11-09 10:41:50 +02:00
main.go Fix bkstats handling of empty details, clarify CLI parameters (#29357) 2021-12-29 11:25:52 +01:00
README.md Fix bkstats handling of empty details, clarify CLI parameters (#29357) 2021-12-29 11:25:52 +01:00
run.sh Fix bkstats handling of empty details, clarify CLI parameters (#29357) 2021-12-29 11:25:52 +01:00

Bkstats

A crude script to compute statistics from our Buildkite pipelines. Owned by the DevX team.

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

Computation details

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