sourcegraph/dev
Noah S-C 9b4107fc65
build-tracker: trigger build-metrics pipeline on build.finished (#61512)
Triggers a buildkite pipeline when a build.finished event is received from buildkite in order to collect metrics & information about the build (coming in a later PR).

The details we attach as part of the build can be iterated upon as needed. For the most part, we can get all the details of the build that ultimately is triggering this by using the buildkite cli to query the build by its ID from the `DEVX_TRIGGERED_FROM_BUILD_ID` env var

A drawback appears to be that it will always show the owner of the token as the author/creator of the build (although the committer is preserved in `BUILDKITE_BUILD_AUTHOR` env var of the jobs)

Depends on https://github.com/sourcegraph/managed-services/pull/1096

## Test plan

Tested with payloads fetched from the webhook log, and with a personal token (see builds here: https://buildkite.com/sourcegraph/devx-build-metrics/)
2024-04-05 18:50:56 +01:00
..
auth-provider remove more ENTERPRISE=1 remnants (#57232) 2023-10-02 10:43:11 -07:00
authtest bazel: use transitions to apply cross-compile platform automatically to oci_image (#60569) 2024-02-20 13:57:56 +00:00
backcompat Feature flags: relax some constraints (#61343) 2024-03-25 10:39:01 -06:00
bkstats chore: links/ownership devx->dev-infra (#58999) 2023-12-14 15:07:20 +00:00
build-tracker build-tracker: trigger build-metrics pipeline on build.finished (#61512) 2024-04-05 18:50:56 +01:00
buildchecker Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
check searcher: remove unused dependency on dbconn pkg (#61463) 2024-03-28 17:11:41 +02:00
ci Revert "Hackathon: Build images end-to-end using Bazel (#60785)" (#61644) 2024-04-05 13:43:19 +00:00
clustering Dev tool: python script for text clustering based on local embeddings (#58691) 2023-12-04 09:27:14 -05:00
codehost_testing Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
codeintel-qa chore: remove unused darwin-arm64 cross binaries for codeintel-qa (#61419) 2024-04-02 16:50:00 +02:00
corrupt-archives bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
db scripts: dont run subshell in for loop (#60611) 2024-02-19 14:48:33 +00:00
depgraph Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
deployment-lag-notifier Chore: move dev tools out of enterprise (#57354) 2023-10-04 22:56:50 +02:00
deployment-notifier Docs: update links to point to new site (#60381) 2024-02-13 00:23:47 +00:00
dx bazel: build //enterprise (#47327) 2023-02-07 15:30:46 +01:00
go-mockgen-gazelle bazel: include //dev:go_mockgen in //dev:write_all_generated (#60963) 2024-03-11 14:23:29 +00:00
go-mockgen-transformer bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00
gqltest Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
grafana
insight-data-gen Chore: move dev tools out of enterprise (#57354) 2023-10-04 22:56:50 +02:00
internal/cmd dotcom: MockSourcegraphDotComMode requires a T for cleanup (#61172) 2024-03-14 20:27:21 +00:00
linters searcher: remove unused dependency on dbconn pkg (#61463) 2024-03-28 17:11:41 +02:00
managedservicesplatform msp/privatenetwork: allow PrivateIpGoogleAccess from subnet (#61648) 2024-04-06 00:57:31 +09:00
nix nix: bump to bazel 7.1 (#61326) 2024-03-22 16:57:50 +00:00
perforce perforce: move perforce test helpers to perforce dir (#57700) 2023-10-18 16:13:03 +02:00
phabricator add shellcheck & shfmt to pre-commit's pre-push hook (#59485) 2024-01-11 14:16:22 +00:00
pr-auditor Removed pr-auditor and left redirect notice (#59497) 2024-01-10 15:15:24 -08:00
prometheus telemetry-gateway: migrate to MSP runtime (#58814) 2023-12-08 12:14:34 -08:00
release release: add sg command for sending calendar invites (#61475) 2024-04-03 13:42:04 +00:00
scaletesting Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
sg Revert "Hackathon: Build images end-to-end using Bazel (#60785)" (#61644) 2024-04-05 13:43:19 +00:00
src-expose ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
team bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00
tilt
tools feat/bzl: add runnable gh target (#61253) 2024-03-19 09:54:08 +00:00
update-embeddings-list reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
zoekt gomod: update zoekt to fix several CVEs in dependencies (#60093) 2024-02-02 15:36:04 +00:00
.gitignore
add_https_domain_to_hosts.sh
bazel_buildkite_stamp_vars.sh bazel: test volatile variables with Percy (#51693) 2023-05-11 09:20:42 +00:00
bazel_stamp_vars.sh [backport] bzl: use old method for getting VERSION stamping (#53959) 2023-06-22 17:45:04 +02:00
BUILD.bazel Reapply "gitserver: Introduce FS layer to encapsulate repo name conversions (#60627)" (#61487) (#61523) 2024-04-02 19:20:18 +02:00
caddy.sh fix(sg): start Caddy admin server before caddy trust (#58928) 2023-12-20 10:03:45 +02:00
Caddyfile Add an option for disabling HTTP/2 when communicating with Cody Gateway (#59668) 2024-01-17 15:36:40 +01:00
check-tokens.sh Updated pre-commit regex for new token format (#60031) 2024-02-05 13:57:56 +01:00
CLA.txt
codeinsights-db.sh
comby-install-or-upgrade.sh add shellcheck & shfmt to pre-commit's pre-push hook (#59485) 2024-01-11 14:16:22 +00:00
defs.bzl Removed unused bazel macro arg (#60996) 2024-03-11 06:36:15 -07:00
dev-sourcegraph-server.sh
docsite.sh [docsite]: bump version (#56013) 2023-08-18 12:40:44 -06:00
drop-entire-local-database-and-redis.sh
esbuild.bzl Revert "use vite for web builds (#58228)" (#59132) 2023-12-20 16:23:45 -03:00
eslint-report-test.sh Revert "revert "bazel: improve ESLint rule" (#52853)" (#52878) 2023-06-04 19:06:39 -07:00
eslint.bzl reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
foreach-non-web-client-project.sh remove cody code that was moved to separate cody repo (#54729) 2023-07-10 00:31:47 -10:00
git-stats
global-settings.json dev: revert to old search mode for local dev environment (#59129) 2023-12-20 17:02:32 +01:00
go_defs.bzl build: add buildifier check to Aspect Workflows (#58566) 2023-11-27 14:58:01 +02:00
go_mockgen_rule.bzl bump to Go 1.22.1 (#60902) 2024-03-06 17:38:43 -07:00
go_mockgen.bzl bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00
go_stringer.bzl build: upgrade to Bazel 7 pre-release (#57970) 2023-10-31 15:29:14 +02:00
go-mod-update.sh
js_lib.bzl bazel: implement custom ESLint Bazel rule (#52062) 2023-05-22 04:05:45 -07:00
licenses.sh Docs: update links to point to new site (#60381) 2024-02-13 00:23:47 +00:00
migrations.bzl build: add buildifier check to Aspect Workflows (#58566) 2023-11-27 14:58:01 +02:00
mocha.bzl bazel: refactor percy mocha tests to js_test instead of js_run_binary + build_test (#60983) 2024-03-26 10:58:20 +00:00
msp_delivery.bzl msp_delivery: infer pipeline id from service_id and region (#61395) 2024-03-26 15:30:27 +00:00
oci_defs.bzl bazel: transition oci_image ourselves instead of via with_cfg.bzl (#60896) 2024-03-06 16:05:38 +00:00
oci_deps.bzl Auto-update Wolfi base images to latest (#60688) 2024-04-03 15:55:24 +01:00
p4-fusion-dev bazel: provide p4-fusion via bazel (#58893) 2023-12-11 16:06:06 +00:00
proto.bzl fix: gazelle and proto generation (continuation of #49547) (#49713) 2023-04-11 11:36:45 +02:00
prune-pick.sh
redis-postgres.yml Docs: update links to point to new site (#60381) 2024-02-13 00:23:47 +00:00
redis.conf
run-server-image.sh Remove HTTP for inter-service RPC (#59093) 2024-01-11 19:46:32 +01:00
sass.bzl Buildifier fixes (#48691) 2023-03-07 10:15:26 +01:00
schema_migrations.bzl bazel: rework schema migrations reporule without gsutil (#61295) 2024-03-25 16:17:26 +00:00
scip-ctags-dev local: fix scip-ctags install script (#57252) 2023-10-02 14:58:14 +00:00
scip-ctags-install.sh syntax-highlighter: initial ctags work (w/ musl scip-ctags) (#52643) 2023-05-30 17:19:39 -04:00
scip-syntax-dev highlighter: Rename scip-treesitter-cli -> scip-syntax (#60077) 2024-02-05 13:15:09 +01:00
scip-syntax-install.sh Syntactic indexing: add database schema and dbworker (#60055) 2024-02-08 18:00:21 +00:00
site-config.json Remove broken federation feature (#55161) 2023-07-20 17:30:32 +00:00
src-prof-services.json Add embeddings to server behind env var (#50288) 2023-04-04 16:45:50 +02:00
src-search-meta.sh
tool_deps.bzl feat/bzl: add runnable gh target (#61253) 2024-03-19 09:54:08 +00:00
tools.go Revert "Hackathon: Build images end-to-end using Bazel (#60785)" (#61644) 2024-04-05 13:43:19 +00:00
universal-ctags-dev bzl: do not show full commmand line for ctags in dev (#58261) 2023-11-10 10:05:25 -05:00
write_generated_to_source_files.bzl bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00