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.

chore(ci): run node.js serial shards on 2-cpu runners (#129158)

Georges-Antoine Assic9dcaf63f5fc
diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml
index 1bf0dbc6a661..1e184ef95994 100644
--- a/.github/workflows/ci-nodejs.yml
+++ b/.github/workflows/ci-nodejs.yml
@@ -487,9 +487,9 @@ jobs:
tests:
# Not on master push — master coverage comes from the hourly run (see `schedule`).
if: needs.changes.outputs.nodejs == 'true' && github.event_name != 'push'
- name: Node.js ${{ matrix.lane }} Tests ${{ matrix.shard }}/${{ matrix.shard_count }} (depot-ubuntu-24.04-4)
+ name: Node.js ${{ matrix.lane }} Tests ${{ matrix.shard }}/${{ matrix.shard_count }} (${{ matrix.runner }})
needs: changes
- runs-on: depot-ubuntu-24.04-4
+ runs-on: ${{ matrix.runner }}
# Tests fit comfortably in 30, but a rust change misses the turbo cache and cold-builds the
# replay-anonymizer addon's whole dependency tree first (no rust caching in this job yet).
timeout-minutes: 45
@@ -500,15 +500,19 @@ jobs:
- lane: parallel
shard: 1
shard_count: 1
+ runner: depot-ubuntu-24.04-4
- lane: serial
shard: 1
shard_count: 3
+ runner: depot-ubuntu-24.04
- lane: serial
shard: 2
shard_count: 3
+ runner: depot-ubuntu-24.04
- lane: serial
shard: 3
shard_count: 3
+ runner: depot-ubuntu-24.04
env:
DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}