From 623e36f94e046e6dd24be4e5a04c52fe3a425e6c Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Wed, 17 Jun 2026 09:17:20 -0700 Subject: [PATCH] ci(e2e): bound + retry the OpenClaw install so a transient npm hang can't burn the Tier 2 budget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Tier 2 (LLM Skills) job failed at 30m16s — the `npm install -g openclaw@2026.4.9` step hung on a transient npm/registry stall (orphan `npm install openclaw` was still running at cancel time) and consumed the entire 30m job budget that v0.42.50.0 (#2254) introduced. The install normally finishes in under a minute (Tier 2 is ~4m end to end on master), so this is flaky-install infra, not a test failure. Wrap the install in `timeout 120` + a 3-attempt retry loop with an 8-minute step backstop: a hung attempt is killed in 2 min and retried instead of eating the whole job. Same bound-the-hang philosophy as #2254's job timeouts. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/e2e.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3857043ba..74717c3ea 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -79,7 +79,22 @@ jobs: bun-version: 1.3.13 - run: bun install - name: Install OpenClaw - run: npm install -g openclaw@2026.4.9 + # Bound + retry the install: a transient npm/registry stall here used to + # hang unbounded and (since the v0.42.50.0 job timeout) burn the entire + # 30m Tier 2 budget before failing — even though the install normally + # finishes in well under a minute. `timeout` kills a hung attempt fast; + # up to 3 attempts ride out a flaky registry. Step cap is a backstop. + timeout-minutes: 8 + run: | + for attempt in 1 2 3; do + if timeout 120 npm install -g openclaw@2026.4.9; then + exit 0 + fi + echo "::warning::openclaw install attempt $attempt failed or timed out; retrying in 10s" >&2 + sleep 10 + done + echo "::error::openclaw install failed after 3 attempts" >&2 + exit 1 - name: Configure OpenClaw MCP run: | mkdir -p ~/.openclaw