Skip to content

: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.

fix(ci): resync depot setup-pnpm mirror with canonical (#100506)

Raúl Negrón-Otero131b6ab7b94b
diff --git a/.depot/actions/setup-pnpm/action.yml b/.depot/actions/setup-pnpm/action.yml
index e5e586b8e4f1..a0b40db31572 100644
--- a/.depot/actions/setup-pnpm/action.yml
+++ b/.depot/actions/setup-pnpm/action.yml
@@ -23,11 +23,21 @@ inputs:
runs:
using: composite
steps:
+ # 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 pnpm
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
env:
- # Kept in sync with .github/actions/setup-pnpm: npm's audit blocks the pnpm
- # bootstrap and gates nothing.
+ 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
+ # alone exhausts a 5 minute job budget before any test runs.
NPM_CONFIG_AUDIT: 'false'
NPM_CONFIG_FUND: 'false'