: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(ci): narrow the mcp live canary checkout (#127128)
posthog[bot]e68049d098be
diff --git a/.github/workflows/ci-mcp-live-canary.yml b/.github/workflows/ci-mcp-live-canary.ymlindex 8bff7dbe0746..8871da55cea6 100644--- a/.github/workflows/ci-mcp-live-canary.yml+++ b/.github/workflows/ci-mcp-live-canary.yml@@ -38,6 +38,20 @@ jobs:timeout-minutes: 15steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: |+ /*+ !/*/+ **/package.json+ /.github/actions/pnpm-install/+ /.github/actions/setup-pnpm/+ /.husky/+ /bin/fix-rdkafka-paths+ /patches/+ /services/mcp/+ /packages/+ /tools/openapi-codegen/+ sparse-checkout-cone-mode: false- name: Install pnpm dependenciesuses: ./.github/actions/pnpm-installdiff --git a/docs/internal/ci-things-already-tried.md b/docs/internal/ci-things-already-tried.mdindex 38daba9b98aa..230146b5acf5 100644--- a/docs/internal/ci-things-already-tried.md+++ b/docs/internal/ci-things-already-tried.md@@ -518,6 +518,9 @@ Keep the full directory so every environment and role remains available to validOpenAPI codegen tests keep root files, every package manifest, patches, the pnpm setup actions, Husky hooks, the Linux-safe postinstall script, and `tools/openapi-codegen/`. The package manifests preserve workspace discovery during the frozen filtered install. Check both cold and warm installs, test discovery, and failure detection when changing these inputs.+The MCP live canary uses the same workspace manifest pattern, plus `services/mcp/` and `packages/` for its dependency tree.+It keeps the frozen filtered install and live upstream test.+If you propose this again, name the jobs and prove that each one reads only the included paths. A test job can read more of the tree than an exclusion list expects.Storybook's `select-stories` job checks out only `.nvmrc` from the PR head. It keeps the bounded blobless history for changed-path detection, downloads the module graph, and runs the selector from a separate trusted base checkout, which also carries `common/storybook/storybook-timings.json`. Source files do not need to exist in the PR worktree for this job. The manifest is there because it sizes the shard count, and a file count cannot size that: the stories a frontend diff affects carry about twice the render time per story that the average story does. It is read from the base checkout so the nightly refresh applies to branches behind master and a fork cannot steer the shard count.