Skip to content

Commit 716f996

Browse files
authored
fix(ci): prepare sandbox before repo E2E (#122525)
1 parent b8a0fa2 commit 716f996

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎.github/workflows/openclaw-live-and-e2e-checks-reusable.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ jobs:
977977
if: inputs.include_repo_e2e && inputs.live_suite_filter == ''
978978
continue-on-error: ${{ inputs.advisory }}
979979
runs-on: ${{ inputs.use_github_hosted_runners && 'ubuntu-24.04' || 'blacksmith-32vcpu-ubuntu-2404' }}
980-
timeout-minutes: ${{ inputs.release_test_profile == 'full' && 90 || 60 }}
980+
timeout-minutes: 90
981981
env:
982982
OPENCLAW_BUILD_PRIVATE_QA: "1"
983983
OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1"
@@ -1004,6 +1004,9 @@ jobs:
10041004
- name: Install Playwright Chromium
10051005
run: pnpm --dir ui exec playwright install --with-deps chromium
10061006

1007+
- name: Build sandbox image
1008+
run: scripts/sandbox-setup.sh
1009+
10071010
- name: Run repo E2E suite
10081011
run: pnpm test:e2e
10091012

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3208,6 +3208,14 @@ NODE
32083208
OPENCLAW_BUILD_PRIVATE_QA: "1",
32093209
OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1",
32103210
});
3211+
expect(releaseChecks.jobs.validate_repo_e2e["timeout-minutes"]).toBe(90);
3212+
const repoE2eSteps = releaseChecks.jobs.validate_repo_e2e.steps as WorkflowStep[];
3213+
const sandboxSetupIndex = repoE2eSteps.findIndex(
3214+
(step) => step.name === "Build sandbox image" && step.run === "scripts/sandbox-setup.sh",
3215+
);
3216+
const repoE2eIndex = repoE2eSteps.findIndex((step) => step.name === "Run repo E2E suite");
3217+
expect(sandboxSetupIndex).toBeGreaterThanOrEqual(0);
3218+
expect(repoE2eIndex).toBeGreaterThan(sandboxSetupIndex);
32113219
const targetedGroupStep = releaseChecks.jobs.plan_docker_lane_groups.steps.find(
32123220
(step: WorkflowStep) => step.name === "Build targeted Docker lane groups",
32133221
);

0 commit comments

Comments
 (0)