sourcegraph/dev/bkstats
2023-01-23 14:00:01 +01:00
..
BUILD.bazel bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
main.go errors: Remove additional cockroachdb uses (#31512) 2022-02-18 20:23:46 +00:00
OWNERS devx: add OWNERS files (#30671) 2022-02-08 11:36:26 +01:00
README.md ci: fix a typo in bkstats README (#31846) 2022-02-25 14:41:28 +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 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