: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
perf(ci): bound the npm fetch that installs pnpm (#95098)
Georges-Antoine Assi8ff18bb46c37
diff --git a/.github/actions/setup-pnpm/action.yml b/.github/actions/setup-pnpm/action.ymlindex 7866587d7f9e..1cdc41dda61a 100644--- a/.github/actions/setup-pnpm/action.yml+++ b/.github/actions/setup-pnpm/action.yml@@ -23,9 +23,17 @@ inputs:runs:using: compositesteps:+ # The action fetches pnpm from registry.npmjs.org on every job. npm's+ # default fetch-timeout is 5 minutes, so one stalled connection costs+ # longer than several jobs' whole timeout-minutes budget. Cap a single+ # attempt well above a healthy fetch and retry instead of waiting.- name: Install pnpmuses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8env:+ NPM_CONFIG_FETCH_TIMEOUT: 45000+ NPM_CONFIG_FETCH_RETRIES: 2+ NPM_CONFIG_FETCH_RETRY_MINTIMEOUT: 5000+ NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT: 15000# The action bootstraps pnpm with `npm ci`, which audits by default. That audit# covers two packages and gates nothing, but it blocks until npm answers, so a# degraded audit endpoint stalls the step until npm's 300s fetch timeout. That