: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): use shallow checkout for master skills builds (#130885)
posthog[bot]89036d9c22f8
diff --git a/.github/workflows/ci-agent-skills.yml b/.github/workflows/ci-agent-skills.ymlindex 9c28cd908a2f..2bd3d3400a06 100644--- a/.github/workflows/ci-agent-skills.yml+++ b/.github/workflows/ci-agent-skills.yml@@ -113,9 +113,9 @@ jobs:steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:- # Deep enough to reach the PR's merge base, which keys the schema cache below.- fetch-depth: 1000- filter: blob:none+ # Only PR schema keys need the merge base; master pushes use HEAD.+ fetch-depth: ${{ github.event_name == 'pull_request' && 1000 || 1 }}+ filter: ${{ github.event_name == 'pull_request' && 'blob:none' || '' }}- name: Fetch base branch for merge-base computationif: github.event_name == 'pull_request'diff --git a/docs/internal/ci-things-already-tried.md b/docs/internal/ci-things-already-tried.mdindex c0c8c414e058..dfb113408544 100644--- a/docs/internal/ci-things-already-tried.md+++ b/docs/internal/ci-things-already-tried.md@@ -530,6 +530,8 @@ Without the filter it took 39 s, because the server then packs the file contentsA depth-1 checkout followed by `git fetch --filter=blob:none --depth=1000` takes about 7 s, and the job uses that now.`--deepen=999` in its place fetched nothing when GitHub had already replaced the PR's merge ref, which failed the run.The `test-selection-verdict` and `backend-coverage-report` jobs still use deep blobless checkouts. They run after the required gate, so no PR waits on them.+The Agent Skills build uses a plain depth-1 checkout on master pushes because its schema cache keys read only `HEAD`.+Its PR checkout keeps bounded blobless history for the merge-base schema key._Also asked as:_ blobless clone is slow, partial clone checkout, speed up the discovery checkout, fetch-depth 1000