Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): declare the usage_ingestion proto tree (#88474)

Ben Whiteecf972bb59d8
diff --git a/.github/scripts/trunk-impacted-targets.js b/.github/scripts/trunk-impacted-targets.js
index cc7129c67bad..4c3171594d74 100644
--- a/.github/scripts/trunk-impacted-targets.js
+++ b/.github/scripts/trunk-impacted-targets.js
@@ -1350,6 +1350,7 @@ const PROTO_TREES = new Map([
['kafka_assigner', { crates: ['kafka-assigner-proto'], domains: [] }],
['personhog', { crates: ['personhog-proto'], domains: [PYTHON, NODE] }],
['prometheus', { crates: ['prometheus-rw-proto'], domains: [] }],
+ ['usage_ingestion', { crates: ['usage-ingestion-proto'], domains: [] }],
])
// A file directly under proto/ is treated as impacting all trees, since it's not
diff --git a/.github/scripts/trunk-impacted-targets.test.js b/.github/scripts/trunk-impacted-targets.test.js
index 25d9be3a5155..1e1f9a3c793d 100644
--- a/.github/scripts/trunk-impacted-targets.test.js
+++ b/.github/scripts/trunk-impacted-targets.test.js
@@ -256,6 +256,7 @@ test('proto configuration at the root claims every tree', () => {
'proto/ingestion/worker/v1/worker.proto',
'proto/kafka_assigner/v1/service.proto',
'proto/prometheus/v1/remote_write.proto',
+ 'proto/usage_ingestion/v1/service.proto',
]) {
for (const target of computeTargets([file], PROTO_CONTEXT)) {
union.add(target)
diff --git a/.github/workflows/ci-scripts.yml b/.github/workflows/ci-scripts.yml
index 287e7f9a15ff..51702506e4fa 100644
--- a/.github/workflows/ci-scripts.yml
+++ b/.github/workflows/ci-scripts.yml
@@ -9,6 +9,9 @@ on:
- .github/scripts/**
- .github/auto-assign-labels.json
- .github/workflows/ci-scripts.yml
+ # trunk-impacted-targets.test.js reads proto/ and fails on a tree the
+ # table does not declare, so adding one has to run these tests.
+ - proto/**
# turbo-discover.test.js pins the Django segment table to these.
- .github/workflows/ci-backend.yml
- .depot/workflows/ci-backend.yml