: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 story selector checkout (#126731)
posthog[bot]d4bebe5568ef
diff --git a/.github/workflows/ci-storybook.yml b/.github/workflows/ci-storybook.ymlindex 6edcdc52072e..42a3b28de7ec 100644--- a/.github/workflows/ci-storybook.yml+++ b/.github/workflows/ci-storybook.yml@@ -1335,6 +1335,8 @@ jobs:fetch-depth: 500ref: ${{ github.event.pull_request.head.sha }}repository: ${{ github.event.pull_request.head.repo.full_name }}+ sparse-checkout: .nvmrc+ sparse-checkout-cone-mode: false- name: Check out trusted story selectoruses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2diff --git a/docs/internal/ci-things-already-tried.md b/docs/internal/ci-things-already-tried.mdindex 5d0c6223a459..b3c31305860d 100644--- a/docs/internal/ci-things-already-tried.md+++ b/docs/internal/ci-things-already-tried.md@@ -470,6 +470,8 @@ The large Python and frontend test jobs do not use it. Their checkout is completIf 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. Source files do not need to exist in the PR worktree for this job.+_Also asked as:_ sparse-checkout, partial clone, do not check out the whole repo, speed up the checkout step### Drop `filter: blob:none` from a deep checkout