: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
ci(storybook): make shadow story selection resilient with graceful fallback (#57620)
mendral-app[bot]6d48e3e57f96
diff --git a/.github/workflows/ci-storybook.yml b/.github/workflows/ci-storybook.ymlindex 414462327a1f..101e0a13962d 100644--- a/.github/workflows/ci-storybook.yml+++ b/.github/workflows/ci-storybook.yml@@ -552,7 +552,8 @@ jobs:steps:- uses: actions/checkout@v6with:- fetch-depth: 0+ filter: blob:none+ fetch-depth: 500ref: ${{ github.event.pull_request.head.sha }}repository: ${{ github.event.pull_request.head.repo.full_name }}@@ -570,6 +571,7 @@ jobs:- name: Compute affected storiesid: selection+ continue-on-error: trueenv:BASE_REF: ${{ github.event.pull_request.base.ref }}run: |@@ -577,7 +579,7 @@ jobs:# base.sha is captured at webhook time and goes stale if the branch later# merges a newer master, which makes `base.sha...HEAD` balloon to include# every merged-in master change.- git fetch --no-tags --depth=50 origin "$BASE_REF"+ git fetch --no-tags origin "$BASE_REF"echo "### Changed files" >&2git diff --name-only "origin/$BASE_REF"...HEAD >&2@@ -590,6 +592,7 @@ jobs:echo "result=$COMPACT" >> "$GITHUB_OUTPUT"- name: Write summary+ if: steps.selection.outcome == 'success'env:RESULT: ${{ steps.selection.outputs.result }}CURRENT_SHARDS: 20