tvl-depot/ops
Vincent Ambo 6edfdd0773 refactor(ops/pipelines): Query build status from Buildkite API
Instead of manually tracking the build status through Buildkite
metadata, use the Buildkite GraphQL API in the `🦆` build
step (i.e. the one that determines the status of the entire pipeline
to be reported back to Gerrit) to fetch the number of failed jobs.

This way we have less manual state accounting in the pipeline.

The downside is that the GraphQL query embedded here is a little hard
to read.

Notes:

  * This needs an access token for Buildkite. We already have one for
    besadii which is also run by the agents, so I've given it GraphQL
    permissions and reused it.

  * I almost introduced a very rare bug here: My initial intuition was
    to simply `exit $FAILED_JOBS` - in the extremely rare case where
    `$FAILED_JOBS % 256 = 0` this would mean we would ... fail to fail
    the build :)

Change-Id: I61976b11b591d722494d3010a362b544efe2cb25
2021-11-29 23:38:24 +03:00
..
besadii refactor(besadii): Rename refUpdated -> buildTrigger 2021-11-29 13:54:47 +00:00
deploy-whitby fix(deploy-whitby): Add jq to script $PATH 2021-09-11 14:33:42 +00:00
dns refactor(readTree): Move 'drvTargets' into readTree 2021-11-23 14:42:08 +00:00
gerrit-tvl feat(gerrit-tvl): add Buildkite-backed Checks plugin implementation 2021-04-07 11:19:04 +00:00
journaldriver refactor(ops): Consistent use of depot.third_party vs. pkgs 2021-04-10 12:09:20 +00:00
kontemplate docs(kontemplate): Remove mention of kontemplate website 2021-09-18 12:35:47 +00:00
machines fix(ops/restic): Move whitby's backup to GleSYS object storage 2021-11-21 12:01:26 +00:00
modules fix(ops/restic): Move whitby's backup to GleSYS object storage 2021-11-21 12:01:26 +00:00
mq_cli chore: Rename pkgs->depot in all Nix file headers 2020-02-21 13:54:53 +00:00
pipelines refactor(ops/pipelines): Query build status from Buildkite API 2021-11-29 23:38:24 +03:00
posix_mq.rs chore: Rename pkgs->depot in all Nix file headers 2020-02-21 13:54:53 +00:00
users chore(ops/users): Update password hash for asmundo 2021-11-29 18:12:19 +03:00
nixos.nix refactor(ops/nixos): Pass depot as a special argument 2021-05-24 21:48:37 +00:00