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.

chore(ci): narrow hogli path filters to db-setup modules (#63102)

Raúl Negrón-Otero214b796798c0
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 64cecaa37064..655a819aca8b 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -163,10 +163,20 @@ jobs:
- rust/feature-flags/src/properties/property_models.rs
- frontend/src/products.json # Loaded at runtime by posthog/products.py
- 'products/*/manifest.tsx' # Generates products.json
- # hogli db commands used for test database setup
- - 'tools/hogli-commands/hogli_commands/**'
+ # hogli setup commands this workflow runs: db:restore-test-db
+ # and product:bootstrap/lint. Scoped to the modules those
+ # commands actually import — framework, manifest, boot
+ # modules, db_schema, product — so unrelated hogli commands
+ # (doctor, devbox, ...) don't trigger this suite.
- 'tools/hogli/**'
- hogli.yaml
+ - 'tools/hogli-commands/hogli_commands/db_schema.py'
+ - 'tools/hogli-commands/hogli_commands/prechecks.py'
+ - 'tools/hogli-commands/hogli_commands/telemetry_props.py'
+ - 'tools/hogli-commands/hogli_commands/hint_hook.py'
+ - 'tools/hogli-commands/hogli_commands/hints.py'
+ - 'tools/hogli-commands/hogli_commands/product/**'
+ - 'tools/hogli-commands/hogli_commands/product_structure.yaml'
# Make sure we run if someone is explicitly changing the workflow
- .github/workflows/ci-backend.yml
- .github/clickhouse-versions.json
diff --git a/.github/workflows/ci-dagster.yml b/.github/workflows/ci-dagster.yml
index 153f5f6fab64..aff355f0c84a 100644
--- a/.github/workflows/ci-dagster.yml
+++ b/.github/workflows/ci-dagster.yml
@@ -167,10 +167,17 @@ jobs:
- pytest.ini
- pyproject.toml
- uv.lock
- # hogli db commands used for test database setup
- - 'tools/hogli-commands/hogli_commands/**'
+ # hogli db setup (db:restore-schema-fresh). Scoped to the
+ # modules that command actually imports — framework,
+ # manifest, boot modules, db_schema — so unrelated hogli
+ # commands (doctor, devbox, ...) don't trigger this suite.
- 'tools/hogli/**'
- hogli.yaml
+ - 'tools/hogli-commands/hogli_commands/db_schema.py'
+ - 'tools/hogli-commands/hogli_commands/prechecks.py'
+ - 'tools/hogli-commands/hogli_commands/telemetry_props.py'
+ - 'tools/hogli-commands/hogli_commands/hint_hook.py'
+ - 'tools/hogli-commands/hogli_commands/hints.py'
- name: Read ClickHouse versions from JSON
id: read-versions
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index fe24972af030..b4e10c35239b 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -86,10 +86,17 @@ jobs:
- 'posthog/user_scripts/latest_user_defined_function.xml'
# Composite actions used by the workflow
- '.github/actions/commit-snapshots/**'
- # hogli db commands used to restore test database
- - 'tools/hogli-commands/hogli_commands/**'
+ # hogli db setup (db:restore-test-db). Scoped to the
+ # modules that command actually imports — framework,
+ # manifest, boot modules, db_schema — so unrelated hogli
+ # commands (doctor, devbox, ...) don't trigger this suite.
- 'tools/hogli/**'
- 'hogli.yaml'
+ - 'tools/hogli-commands/hogli_commands/db_schema.py'
+ - 'tools/hogli-commands/hogli_commands/prechecks.py'
+ - 'tools/hogli-commands/hogli_commands/telemetry_props.py'
+ - 'tools/hogli-commands/hogli_commands/hint_hook.py'
+ - 'tools/hogli-commands/hogli_commands/hints.py'
# CI config
- '.github/workflows/ci-mcp.yml'
- '.github/workflows/mcp-publish.yml'