Skip to content

Commit 01d39da

Browse files
committed
ci: widen hybrid Blacksmith routing
1 parent c500ab7 commit 01d39da

3 files changed

Lines changed: 149 additions & 44 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,9 @@ jobs:
16401640
# Compatibility targets pin a frozen Control UI whose e2e expectations track
16411641
# that release, not current main.
16421642
if: needs.preflight.outputs.run_ui_tests == 'true' && needs.preflight.outputs.compatibility_target != 'true'
1643-
# First-attempt same-repo runs use Blacksmith unless the backend breaker is
1644-
# set; manual dispatches, forks, and same-repo PR retries also use GitHub-hosted capacity.
1645-
runs-on: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid') && 'ubuntu-24.04' || (github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.run_attempt > 1)) && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
1643+
# Hybrid attempt 1 uses Blacksmith; github mode, hybrid retries, manual
1644+
# dispatches, forks, and same-repo PR retries use GitHub-hosted capacity.
1645+
runs-on: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'ubuntu-24.04' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && github.run_attempt > 1) && 'ubuntu-24.04' || (github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.run_attempt > 1)) && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
16461646
# Keep Chromium ownership serial within each independently required shard.
16471647
timeout-minutes: 25
16481648
env:
@@ -1658,8 +1658,8 @@ jobs:
16581658
with:
16591659
node-version: "24.x"
16601660
install-bun: "false"
1661-
# Hosted paths use the pnpm store cache; first-attempt same-repo
1662-
# Blacksmith runs restore the preflight-published dependency tree.
1661+
# The github/hybrid planner profile uses the Actions pnpm-store cache
1662+
# on either runner backend; all-Blacksmith mode restores preflight's tree.
16631663
dependency-cache: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.run_attempt > 1)) && 'false' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false') }}
16641664
use-actions-cache: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.run_attempt > 1)) && 'true' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true') }}
16651665
restore-test-caches: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'true' || 'false' }}
@@ -1908,7 +1908,7 @@ jobs:
19081908
name: QA Smoke CI (${{ matrix.name }})
19091909
needs: [preflight]
19101910
if: needs.preflight.outputs.run_qa_smoke_ci == 'true'
1911-
runs-on: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid') && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-16vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
1911+
runs-on: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'ubuntu-24.04' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && github.run_attempt > 1) && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-16vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
19121912
timeout-minutes: 60
19131913
strategy:
19141914
fail-fast: false
@@ -1920,8 +1920,8 @@ jobs:
19201920
uses: ./.github/actions/setup-node-env
19211921
with:
19221922
install-bun: "false"
1923-
# Same-repo Blacksmith runs restore the dependency cache published by
1924-
# preflight; hosted paths use the pnpm store cache instead.
1923+
# The github/hybrid planner profile uses the Actions pnpm-store cache
1924+
# on either runner backend; all-Blacksmith mode restores preflight's tree.
19251925
dependency-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
19261926
use-actions-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
19271927

@@ -2320,7 +2320,7 @@ jobs:
23202320
name: ${{ matrix.check_name }}
23212321
needs: [preflight]
23222322
if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check == 'true' }}
2323-
runs-on: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid') && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && (matrix.runner || 'blacksmith-4vcpu-ubuntu-2404') || 'ubuntu-24.04') }}
2323+
runs-on: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'ubuntu-24.04' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && (github.run_attempt > 1 || (matrix.task != 'lint' && matrix.task != 'test-types'))) && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && (matrix.runner || 'blacksmith-4vcpu-ubuntu-2404') || 'ubuntu-24.04') }}
23242324
timeout-minutes: 20
23252325
strategy:
23262326
fail-fast: false
@@ -2360,8 +2360,8 @@ jobs:
23602360
uses: ./.github/actions/setup-node-env
23612361
with:
23622362
install-bun: "false"
2363-
# Same-repo Blacksmith runs restore the dependency cache published by
2364-
# preflight; hosted paths use the pnpm store cache instead.
2363+
# The github/hybrid planner profile uses the Actions pnpm-store cache
2364+
# on either runner backend; all-Blacksmith mode restores preflight's tree.
23652365
dependency-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
23662366
use-actions-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
23672367

@@ -2613,16 +2613,16 @@ jobs:
26132613
;;
26142614
esac
26152615
2616-
# In degraded GitHub-hosted mode, split the serial 12-minute core oxlint path
2617-
# across three runners. This job is absent from normal Blacksmith runs, which
2618-
# retain the existing single check-lint registration and runner policy.
2616+
# The github/hybrid planner profile splits the serial core oxlint path across
2617+
# three runners. Hybrid attempt 1 uses 8-vCPU Blacksmith stripes; github mode
2618+
# and hybrid retries use hosted runners. All-Blacksmith mode keeps one lint job.
26192619
check-lint-hosted-core-shard:
26202620
permissions:
26212621
contents: read
26222622
name: check-lint-core-${{ matrix.stripe }}
26232623
needs: [preflight]
26242624
if: ${{ needs.preflight.outputs.run_check == 'true' && (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid') }}
2625-
runs-on: ubuntu-24.04
2625+
runs-on: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'ubuntu-24.04' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && github.run_attempt > 1) && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
26262626
timeout-minutes: 15
26272627
strategy:
26282628
fail-fast: false
@@ -2635,6 +2635,8 @@ jobs:
26352635
uses: ./.github/actions/setup-node-env
26362636
with:
26372637
install-bun: "false"
2638+
# Hybrid attempt 1 still uses the hosted planner profile, so its
2639+
# Blacksmith stripes consume the same backend-neutral Actions cache.
26382640
dependency-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
26392641
use-actions-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
26402642

@@ -2651,7 +2653,7 @@ jobs:
26512653
name: ${{ matrix.check_name }}
26522654
needs: [preflight]
26532655
if: ${{ !cancelled() && always() && needs.preflight.outputs.run_check_additional == 'true' }}
2654-
runs-on: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid') && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && (matrix.runner || 'blacksmith-4vcpu-ubuntu-2404') || 'ubuntu-24.04') }}
2656+
runs-on: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'ubuntu-24.04' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && (github.run_attempt > 1 || matrix.group != 'extension-package-boundary')) && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && (matrix.runner || 'blacksmith-4vcpu-ubuntu-2404') || 'ubuntu-24.04') }}
26552657
timeout-minutes: 20
26562658
strategy:
26572659
fail-fast: false
@@ -2715,8 +2717,8 @@ jobs:
27152717
uses: ./.github/actions/setup-node-env
27162718
with:
27172719
install-bun: "false"
2718-
# Same-repo Blacksmith runs restore the dependency cache published by
2719-
# preflight; hosted paths use the pnpm store cache instead.
2720+
# The github/hybrid planner profile uses the Actions pnpm-store cache
2721+
# on either runner backend; all-Blacksmith mode restores preflight's tree.
27202722
dependency-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
27212723
use-actions-cache: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && vars.OPENCLAW_CI_RUNNER_BACKEND != 'hybrid' && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
27222724

0 commit comments

Comments
 (0)