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): retry canvas builder npm ci on depot (#121204)

Raúl Negrón-Otero644991f64a7f
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index afb7f24af2c3..bef755fd5021 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -3263,9 +3263,12 @@ jobs:
with:
node-version-file: .nvmrc
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
+ # A single `npm ci` on an empty npm cache intermittently fails with EEXIST or ENOENT on a
+ # `_cacache/tmp` file, with no other process using the cache.
- name: Install canvas builder dependencies
if: ${{ needs.changes.outputs.backend == 'true' && matrix.segment == 'Core' }}
shell: bash
+ retry: 2
run: |
if [[ -f products/canvas/packages/canvas_builder/package.json ]]; then
npm ci --ignore-scripts --omit=dev --no-audit --no-fund --prefix products/canvas/packages/canvas_builder