diff --git a/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml b/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml index dbd124af3f6..766e338b6eb 100644 --- a/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml +++ b/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml @@ -455,7 +455,7 @@ jobs: needs: validate_selected_ref if: inputs.include_live_suites && !inputs.live_models_only && (inputs.live_suite_filter == '' || inputs.live_suite_filter == 'live-cache') runs-on: blacksmith-8vcpu-ubuntu-2404 - timeout-minutes: 40 + timeout-minutes: 20 env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} @@ -490,12 +490,12 @@ jobs: - name: Verify live prompt cache floors run: | set -euo pipefail - for attempt in 1 2 3; do - echo "live-cache attempt ${attempt}/3" - if timeout --foreground --kill-after=30s 12m pnpm test:live:cache; then + for attempt in 1 2; do + echo "live-cache attempt ${attempt}/2" + if timeout --foreground --kill-after=30s 8m pnpm test:live:cache; then exit 0 fi - if [[ "$attempt" == "3" ]]; then + if [[ "$attempt" == "2" ]]; then exit 1 fi sleep $((attempt * 15)) diff --git a/test/scripts/package-acceptance-workflow.test.ts b/test/scripts/package-acceptance-workflow.test.ts index 3cff6d0edb1..6c582ed06b9 100644 --- a/test/scripts/package-acceptance-workflow.test.ts +++ b/test/scripts/package-acceptance-workflow.test.ts @@ -347,7 +347,7 @@ describe("package artifact reuse", () => { expect(workflow).toContain("live_suite_filter:"); expect(workflow).toContain("validate_live_suite_filter:"); expect(workflow).toContain("LIVE_SUITE_FILTER: ${{ inputs.live_suite_filter }}"); - expect(workflow).toContain("live-cache attempt ${attempt}/3"); + expect(workflow).toContain("live-cache attempt ${attempt}/2"); expect(workflow).toContain( "live_suite_filter '${LIVE_SUITE_FILTER}' does not match any runnable suite", ); @@ -909,9 +909,10 @@ describe("package artifact reuse", () => { expect(fullRelease.jobs?.prepare_release_package?.["timeout-minutes"]).toBe(15); expect(releaseChecks.jobs?.prepare_release_package?.["timeout-minutes"]).toBe(15); expect(crossOs.jobs?.cross_os_release_checks?.["timeout-minutes"]).toBe(60); - expect(liveE2e.jobs?.validate_release_live_cache?.["timeout-minutes"]).toBe(40); + expect(liveE2e.jobs?.validate_release_live_cache?.["timeout-minutes"]).toBe(20); expect(readFileSync(LIVE_E2E_WORKFLOW, "utf8")).toContain( - "timeout --foreground --kill-after=30s 12m pnpm test:live:cache", + "timeout --foreground --kill-after=30s 8m pnpm test:live:cache", ); + expect(readFileSync(LIVE_E2E_WORKFLOW, "utf8")).toContain("live-cache attempt ${attempt}/2"); }); });