mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
| .. | ||
| BUILD.bazel | ||
| main.go | ||
| OWNERS | ||
| README.md | ||
| run.sh | ||
Bkstats
A crude script to compute simple "red time" statistics from our Buildkite pipelines and post them to Slack. Owned by the DevInfra 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
- Go over your personal settings
- Create a new token with the following permissions:
- Check
sourcegraphorganization read_buildsread_pipelines