|
562 | 562 |
|
563 | 563 | jobs: |
564 | 564 | validate_selected_ref: |
565 | | - runs-on: ubuntu-24.04 |
| 565 | + runs-on: ${{ !inputs.use_github_hosted_runners && github.repository == 'openclaw/openclaw' && vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04' }} |
566 | 566 | timeout-minutes: 30 |
567 | 567 | outputs: |
568 | 568 | package_artifact_present: ${{ steps.validate.outputs.package_artifact_present }} |
@@ -1035,92 +1035,46 @@ jobs: |
1035 | 1035 | sleep $((attempt * 15)) |
1036 | 1036 | done |
1037 | 1037 |
|
1038 | | - validate_repo_e2e: |
1039 | | - name: Repo E2E (${{ matrix.name }}) |
| 1038 | + validate_repo_e2e_gateway: |
| 1039 | + name: Gateway E2E |
1040 | 1040 | needs: validate_selected_ref |
1041 | 1041 | if: inputs.include_repo_e2e && inputs.live_suite_filter == '' |
1042 | | - continue-on-error: ${{ inputs.advisory }} |
1043 | | - runs-on: ${{ inputs.use_github_hosted_runners && 'ubuntu-24.04' || 'blacksmith-32vcpu-ubuntu-2404' }} |
1044 | | - timeout-minutes: 90 |
1045 | | - strategy: |
1046 | | - fail-fast: false |
1047 | | - max-parallel: 6 |
1048 | | - matrix: |
1049 | | - include: |
1050 | | - - name: Gateway 1/4 |
1051 | | - command: pnpm test:e2e:gateway --shard=1/4 |
1052 | | - - name: Gateway 2/4 |
1053 | | - command: pnpm test:e2e:gateway --shard=2/4 |
1054 | | - - name: Gateway 3/4 |
1055 | | - command: pnpm test:e2e:gateway --shard=3/4 |
1056 | | - - name: Gateway 4/4 |
1057 | | - command: pnpm test:e2e:gateway --shard=4/4 |
1058 | | - - name: UI 1/4 |
1059 | | - command: pnpm test:ui:e2e --shard=1/4 |
1060 | | - build_command: pnpm build:ci-artifacts |
1061 | | - - name: UI 2/4 |
1062 | | - command: pnpm test:ui:e2e --shard=2/4 |
1063 | | - build_command: pnpm build:ci-artifacts |
1064 | | - - name: UI 3/4 |
1065 | | - command: pnpm test:ui:e2e --shard=3/4 |
1066 | | - build_command: pnpm build:ci-artifacts |
1067 | | - - name: UI 4/4 |
1068 | | - command: pnpm test:ui:e2e --shard=4/4 |
1069 | | - build_command: pnpm build:ci-artifacts |
1070 | | - - name: Agent plugin Gateway |
1071 | | - command: pnpm test:e2e:agent-plugin-gateway |
1072 | | - target_script: test:e2e:agent-plugin-gateway |
1073 | | - build_command: pnpm build:ci-artifacts |
1074 | | - env: |
1075 | | - OPENCLAW_BUILD_PRIVATE_QA: "1" |
1076 | | - OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1" |
1077 | | - OPENCLAW_VITEST_MAX_WORKERS: "2" |
1078 | | - steps: |
1079 | | - - name: Checkout selected ref |
1080 | | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
1081 | | - with: |
1082 | | - ref: ${{ needs.validate_selected_ref.outputs.selected_sha }} |
1083 | | - fetch-depth: 1 |
1084 | | - |
1085 | | - - name: Setup Node environment |
1086 | | - uses: ./.github/actions/setup-node-env |
1087 | | - with: |
1088 | | - cache-mode: restore |
1089 | | - node-version: ${{ env.NODE_VERSION }} |
1090 | | - install-bun: "true" |
1091 | | - build-all-cache-scope: full |
1092 | | - |
1093 | | - - name: Build dist for repo E2E |
1094 | | - env: |
1095 | | - NODE_OPTIONS: --max-old-space-size=8192 |
1096 | | - # Gateway shards pack and type-check packages; runtime-only suites keep SDK checks without global declarations. |
1097 | | - run: ${{ matrix.build_command || 'pnpm build' }} |
1098 | | - |
1099 | | - - name: Install Playwright Chromium |
1100 | | - run: pnpm --dir ui exec playwright install --with-deps chromium |
1101 | | - |
1102 | | - - name: Build sandbox image |
1103 | | - run: scripts/sandbox-setup.sh |
1104 | | - |
1105 | | - - name: Run repo E2E suite |
1106 | | - env: |
1107 | | - OPENCLAW_E2E_WORKERS: "2" |
1108 | | - OPENCLAW_E2E_USE_PREBUILT_DIST: "1" |
1109 | | - TARGET_REQUIRED_SCRIPT: ${{ matrix.target_script || '' }} |
1110 | | - run: | |
1111 | | - set -euo pipefail |
1112 | | - if [[ -n "$TARGET_REQUIRED_SCRIPT" ]] && ! node -e ' |
1113 | | - const packageJson = JSON.parse(require("node:fs").readFileSync("package.json", "utf8")); |
1114 | | - if (typeof packageJson.scripts?.[process.argv[1]] !== "string") process.exit(1); |
1115 | | - ' "$TARGET_REQUIRED_SCRIPT"; then |
1116 | | - if [[ "$OPENCLAW_ALLOW_FROZEN_TARGET_SCENARIO_OMISSIONS" != "1" ]]; then |
1117 | | - echo "::error::Selected target does not provide required repo E2E capability: $TARGET_REQUIRED_SCRIPT." |
1118 | | - exit 1 |
1119 | | - fi |
1120 | | - echo "::notice::Skipping $TARGET_REQUIRED_SCRIPT: selected target does not provide this newer repo E2E capability." |
1121 | | - exit 0 |
1122 | | - fi |
1123 | | - ${{ matrix.command }} |
| 1042 | + uses: ./.github/workflows/openclaw-repo-e2e-reusable.yml |
| 1043 | + with: |
| 1044 | + ref: ${{ needs.validate_selected_ref.outputs.selected_sha }} |
| 1045 | + workflow_repository: ${{ needs.validate_selected_ref.outputs.workflow_repository }} |
| 1046 | + workflow_sha: ${{ needs.validate_selected_ref.outputs.workflow_sha }} |
| 1047 | + build_profile: full |
| 1048 | + suites: >- |
| 1049 | + [{"name":"Gateway 1/4","command":"pnpm test:e2e:gateway --shard=1/4"}, |
| 1050 | + {"name":"Gateway 2/4","command":"pnpm test:e2e:gateway --shard=2/4"}, |
| 1051 | + {"name":"Gateway 3/4","command":"pnpm test:e2e:gateway --shard=3/4"}, |
| 1052 | + {"name":"Gateway 4/4","command":"pnpm test:e2e:gateway --shard=4/4"}] |
| 1053 | + use_github_hosted_runners: ${{ inputs.use_github_hosted_runners }} |
| 1054 | + advisory: ${{ inputs.advisory }} |
| 1055 | + allow_unreleased_changelog: ${{ inputs.allow_unreleased_changelog }} |
| 1056 | + allow_frozen_target_scenario_omissions: ${{ inputs.allow_frozen_target_scenario_omissions }} |
| 1057 | + |
| 1058 | + validate_repo_e2e_runtime: |
| 1059 | + name: UI and plugin E2E |
| 1060 | + needs: validate_selected_ref |
| 1061 | + if: inputs.include_repo_e2e && inputs.live_suite_filter == '' |
| 1062 | + uses: ./.github/workflows/openclaw-repo-e2e-reusable.yml |
| 1063 | + with: |
| 1064 | + ref: ${{ needs.validate_selected_ref.outputs.selected_sha }} |
| 1065 | + workflow_repository: ${{ needs.validate_selected_ref.outputs.workflow_repository }} |
| 1066 | + workflow_sha: ${{ needs.validate_selected_ref.outputs.workflow_sha }} |
| 1067 | + build_profile: ciArtifacts |
| 1068 | + suites: >- |
| 1069 | + [{"name":"UI 1/4","command":"pnpm test:ui:e2e --shard=1/4"}, |
| 1070 | + {"name":"UI 2/4","command":"pnpm test:ui:e2e --shard=2/4"}, |
| 1071 | + {"name":"UI 3/4","command":"pnpm test:ui:e2e --shard=3/4"}, |
| 1072 | + {"name":"UI 4/4","command":"pnpm test:ui:e2e --shard=4/4"}, |
| 1073 | + {"name":"Agent plugin Gateway","command":"pnpm test:e2e:agent-plugin-gateway","target_script":"test:e2e:agent-plugin-gateway"}] |
| 1074 | + use_github_hosted_runners: ${{ inputs.use_github_hosted_runners }} |
| 1075 | + advisory: ${{ inputs.advisory }} |
| 1076 | + allow_unreleased_changelog: ${{ inputs.allow_unreleased_changelog }} |
| 1077 | + allow_frozen_target_scenario_omissions: ${{ inputs.allow_frozen_target_scenario_omissions }} |
1124 | 1078 |
|
1125 | 1079 | validate_special_e2e: |
1126 | 1080 | needs: validate_selected_ref |
@@ -3027,7 +2981,7 @@ jobs: |
3027 | 2981 | name: Bind full release candidate evidence |
3028 | 2982 | needs: [validate_selected_ref, prepare_docker_e2e_image] |
3029 | 2983 | if: inputs.emit_candidate_evidence && needs.prepare_docker_e2e_image.result == 'success' |
3030 | | - runs-on: ubuntu-24.04 |
| 2984 | + runs-on: ${{ !inputs.use_github_hosted_runners && github.repository == 'openclaw/openclaw' && vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04' }} |
3031 | 2985 | timeout-minutes: 15 |
3032 | 2986 | permissions: |
3033 | 2987 | actions: read |
|
0 commit comments