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.

ci: add hogli-commands to path filters for db-dependent workflows (#60612)

mendral-app[bot]da5d202eac14
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 26efc69c47ae..0dbefb4d8cc4 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -139,6 +139,10 @@ 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/**'
+ - 'tools/hogli/**'
+ - hogli.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 1c5e6fc48123..cd87cbac6483 100644
--- a/.github/workflows/ci-dagster.yml
+++ b/.github/workflows/ci-dagster.yml
@@ -154,6 +154,10 @@ jobs:
- pytest.ini
- pyproject.toml
- uv.lock
+ # hogli db commands used for test database setup
+ - 'tools/hogli-commands/hogli_commands/**'
+ - 'tools/hogli/**'
+ - hogli.yaml
- name: Read ClickHouse versions from JSON
id: read-versions
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index 4dd579ac92f9..e9d7dac5d441 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -76,6 +76,10 @@ 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/**'
+ - 'tools/hogli/**'
+ - 'hogli.yaml'
# CI config
- '.github/workflows/ci-mcp.yml'
- '.github/workflows/mcp-publish.yml'