: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
fix(ci): drop incompatible --testPathPattern from selective jest run (#63959)
mendral-app[bot]ad427bb667b2
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.ymlindex 1353b9d942ed..8487b9449d6e 100644--- a/.github/workflows/ci-frontend.yml+++ b/.github/workflows/ci-frontend.yml@@ -583,11 +583,18 @@ jobs:# --findRelatedTests walks jest's import graph from the changed# source files and runs the matching tests. No --shard: single# job runs the entire selected set.+ #+ # No --testPathPattern: it is mutually exclusive with+ # --findRelatedTests (jest folds both into one path regex and+ # matches nothing), and CHANGED_FILES is already scoped to+ # frontend source files by select-jest-tests. --passWithNoTests+ # so a changed source file with no related test doesn't fail the+ # run — the ready-for-review full matrix is the gate.pnpm --filter=@posthog/frontend build:products# shellcheck disable=SC2086pnpm --filter=@posthog/frontend exec jest \- --testPathPattern='(frontend/|products/|common/)' \--forceExit \+ --passWithNoTests \--findRelatedTests $CHANGED_FILESelsebin/turbo run test --filter=@posthog/frontend -- --maxWorkers=2