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): put clickhouse-udfs on the python merge queue lanes (#110192)

Georges-Antoine Assi45374bd72264
diff --git a/.github/scripts/trunk-impacted-targets.js b/.github/scripts/trunk-impacted-targets.js
index 2ba677d6a11b..d1a658c77001 100644
--- a/.github/scripts/trunk-impacted-targets.js
+++ b/.github/scripts/trunk-impacted-targets.js
@@ -267,6 +267,7 @@ const TRIPWIRE_RULES = [
// smoke.
['.github/workflows/ci-python.yml', PYTHON],
['.github/workflows/ci-clickhouse-multinode-migrations.yml', PYTHON],
+ ['.github/workflows/ci-clickhouse-util-udfs.yml', PYTHON],
// Blocks Django or sqlx migrations landing beside nodejs/ or other rust/
// changes, so all three families interact with an edit to the gate.
['.github/workflows/ci-migrations-service-separation-check.yml', [PYTHON, NODE, RUST]],
@@ -2023,7 +2024,7 @@ function computeTargets(changedFiles, context) {
targets.add(lane)
}
- if (top === 'posthog' || (top === 'ee' && segments[1] !== 'frontend')) {
+ if (top === 'posthog' || top === 'clickhouse-udfs' || (top === 'ee' && segments[1] !== 'frontend')) {
allPyProducts()
continue
}
diff --git a/.github/scripts/trunk-impacted-targets.test.js b/.github/scripts/trunk-impacted-targets.test.js
index 7edbf89464b6..c1031172d4f8 100644
--- a/.github/scripts/trunk-impacted-targets.test.js
+++ b/.github/scripts/trunk-impacted-targets.test.js
@@ -582,6 +582,7 @@ test('a single-language workflow claims that language rather than everything', (
'.github/workflows/ci-backend.yml',
'.github/workflows/ci-python.yml',
'.github/workflows/ci-clickhouse-multinode-migrations.yml',
+ '.github/workflows/ci-clickhouse-util-udfs.yml',
// The backend test-timing pair and the IDOR coverage check run only in
// ci-backend and its timing workflow.
'.github/scripts/optimize_test_durations.py',
@@ -2009,6 +2010,13 @@ test('an unavailable tach graph widens backend changes instead of narrowing', ()
test('core changes expand to every leaf target in their own domain', () => {
const backend = computeTargets(['posthog/models/team.py'], CONTEXT)
assert.deepEqual(backend, ['py:core', 'py:product:alpha', 'py:product:beta', 'py:product:gamma'])
+ for (const file of [
+ 'posthog/user_scripts/json_drop_keys_udf_x86_64',
+ 'clickhouse-udfs/util/cmd/json_drop_keys_udf/main.go',
+ 'clickhouse-udfs/util/go.mod',
+ ]) {
+ assert.deepEqual(computeTargets([file], CONTEXT), backend, file)
+ }
const frontend = computeTargets(['frontend/src/lib/components/Foo.tsx'], CONTEXT)
assert.deepEqual(frontend, ['fe:core', 'fe:product:alpha', 'fe:product:beta', 'fe:product:gamma'])