Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

ci: run the long-pole jobs on GitHub larger runners (macOS xlarge, Linux 16-core, Windows 8-core) (#5846)

Francesco Bonacci07c43b9bd2da
diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml
index b3252ff5df..c5d5c66025 100644
--- a/.github/actionlint.yaml
+++ b/.github/actionlint.yaml
@@ -1,6 +1,22 @@
# Labels of the self-hosted runners this repository dispatches to. Without
# these, actionlint flags `runs-on: [self-hosted, macOS, ARM64, lume]` as an
# unknown label and the real errors get lost in the noise.
+#
+# The three `cua-*` and `macos-*-xlarge` entries are GitHub-hosted larger
+# runners (org Settings > Actions > Runners; billed per minute, unlike the
+# standard runners). `cua-linux-16core` and `cua-windows-8core` are created
+# by hand in the org; the macOS xlarge label needs no setup.
+#
+# Temporary: these are a stopgap until the long-pole jobs run on self-hosted
+# runners inside Cua Spaces. Each label is a plain string in `runs-on` (or in
+# the one matrix mapping in ci-cua-sdk.yml and the bundle matrix in
+# ci-cua-spaces.yml), so swapping them is
+# `grep -rlE 'cua-linux-16core|cua-windows-8core|macos-26-xlarge' .github`
+# plus a label replace, and removing the three entries here. Standard runner
+# labels stay in every job that is not the long pole of its workflow.
self-hosted-runner:
labels:
- lume
+ - cua-linux-16core
+ - cua-windows-8core
+ - macos-26-xlarge
diff --git a/.github/scripts/tests/test_ci_swift_samples_scope.py b/.github/scripts/tests/test_ci_swift_samples_scope.py
index 4c226c663c..e7a5ebd6a7 100644
--- a/.github/scripts/tests/test_ci_swift_samples_scope.py
+++ b/.github/scripts/tests/test_ci_swift_samples_scope.py
@@ -302,7 +302,8 @@ class WorkflowWiringTests(unittest.TestCase):
self.assertNotIn("if", changes)
swift = jobs["swift"]
self.assertEqual(swift["needs"], "changes")
- self.assertEqual(swift["runs-on"], "macos-26")
+ # The arm64 larger runner of the same macOS image (macos-26 is 3-core).
+ self.assertEqual(swift["runs-on"], "macos-26-xlarge")
def test_effective_job_conditions(self):
# The scope decision is final, except that release-please branches skip the
diff --git a/.github/workflows/cd-cua-spaces-natives-main.yml b/.github/workflows/cd-cua-spaces-natives-main.yml
index 651e9c236e..dcd89bb09a 100644
--- a/.github/workflows/cd-cua-spaces-natives-main.yml
+++ b/.github/workflows/cd-cua-spaces-natives-main.yml
@@ -66,7 +66,7 @@ jobs:
fail-fast: false
matrix:
include:
- - { label: win32-x64, runner: windows-latest, target: x86_64-pc-windows-msvc }
+ - { label: win32-x64, runner: cua-windows-8core, target: x86_64-pc-windows-msvc }
- { label: win32-arm64, runner: windows-11-arm, target: aarch64-pc-windows-msvc }
- { label: linux-x64, runner: ubuntu-22.04, target: x86_64-unknown-linux-gnu }
- { label: linux-arm64, runner: ubuntu-22.04-arm, target: aarch64-unknown-linux-gnu }
diff --git a/.github/workflows/ci-cua-sdk.yml b/.github/workflows/ci-cua-sdk.yml
index fd500d9408..386fefac28 100644
--- a/.github/workflows/ci-cua-sdk.yml
+++ b/.github/workflows/ci-cua-sdk.yml
@@ -187,7 +187,9 @@ jobs:
rust:
if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') }}
name: rust (${{ matrix.os }})
- runs-on: ${{ matrix.os }}
+ # The matrix keeps the standard labels (they name the job); the larger
+ # runners are mapped here.
+ runs-on: ${{ matrix.os == 'ubuntu-latest' && 'cua-linux-16core' || matrix.os == 'macos-26' && 'macos-26-xlarge' || matrix.os == 'windows-latest' && 'cua-windows-8core' || matrix.os }}
needs: reuse
# Tests only: lint runs in rust-lint, in parallel.
timeout-minutes: 90
diff --git a/.github/workflows/ci-cua-spaces-macos.yml b/.github/workflows/ci-cua-spaces-macos.yml
index cb477b26b7..affb2c3f8f 100644
--- a/.github/workflows/ci-cua-spaces-macos.yml
+++ b/.github/workflows/ci-cua-spaces-macos.yml
@@ -129,7 +129,7 @@ jobs:
ffi:
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
name: Cua Spaces app library (built once)
- runs-on: macos-26
+ runs-on: macos-26-xlarge
env:
CARGO_BUILD_JOBS: 4
# The slice cache key names the repository (same value as the producer).
@@ -177,7 +177,7 @@ jobs:
swift-tests:
name: SwiftUI app (swift tests, bridge contract)
needs: ffi
- runs-on: macos-26
+ runs-on: macos-26-xlarge
steps:
- uses: actions/checkout@v4
- name: Download the Cua Spaces app library
@@ -275,7 +275,7 @@ jobs:
app-bundle:
name: SwiftUI app (bundle, launch check, XCUITest)
needs: ffi
- runs-on: macos-26
+ runs-on: macos-26-xlarge
steps:
- uses: actions/checkout@v4
- name: Download the Cua Spaces app library
diff --git a/.github/workflows/ci-cua-spaces.yml b/.github/workflows/ci-cua-spaces.yml
index 0b4748c56d..e34c633b1f 100644
--- a/.github/workflows/ci-cua-spaces.yml
+++ b/.github/workflows/ci-cua-spaces.yml
@@ -212,7 +212,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- include: ${{ fromJSON(needs.changes.outputs.native == 'true' && '[{"name":"macos-dmg","os":"macos-26","bundles":"app,dmg"},{"name":"windows-nsis-msi","os":"windows-latest","bundles":"nsis,msi"},{"name":"linux-deb-appimage","os":"ubuntu-22.04","bundles":"deb,appimage"}]' || '[{"name":"linux-deb-appimage","os":"ubuntu-22.04","bundles":"deb,appimage"}]') }}
+ include: ${{ fromJSON(needs.changes.outputs.native == 'true' && '[{"name":"macos-dmg","os":"macos-26-xlarge","bundles":"app,dmg"},{"name":"windows-nsis-msi","os":"cua-windows-8core","bundles":"nsis,msi"},{"name":"linux-deb-appimage","os":"ubuntu-22.04","bundles":"deb,appimage"}]' || '[{"name":"linux-deb-appimage","os":"ubuntu-22.04","bundles":"deb,appimage"}]') }}
runs-on: ${{ matrix.os }}
# A cold Windows bundle takes about 1 h 45 min (the sidecar release build
# alone is ~50 min). Fail a real hang instead of holding a runner for the
@@ -228,7 +228,7 @@ jobs:
CARGO_PROFILE_DEV_DEBUG: "0"
# Two jobs on the 7 GB Linux runner: four rustc processes ran it out of
# memory ("runner received a shutdown signal").
- CARGO_BUILD_JOBS: ${{ matrix.os == 'ubuntu-22.04' && 2 || 4 }}
+ CARGO_BUILD_JOBS: ${{ matrix.os == 'ubuntu-22.04' && 2 || matrix.os == 'cua-windows-8core' && 8 || 4 }}
steps:
- uses: actions/checkout@v4
# Linking the debug test binaries and the bundle exhausted the Linux
diff --git a/.github/workflows/ci-infinite-canvas-swift.yml b/.github/workflows/ci-infinite-canvas-swift.yml
index 9555316c92..8395466ab6 100644
--- a/.github/workflows/ci-infinite-canvas-swift.yml
+++ b/.github/workflows/ci-infinite-canvas-swift.yml
@@ -79,7 +79,7 @@ jobs:
needs: changes
if: ${{ needs.changes.outputs.run == 'true' && !startsWith(github.head_ref, 'release-please--branches--') }}
name: infinite-canvas-swift (swift test)
- runs-on: macos-26
+ runs-on: macos-26-xlarge
timeout-minutes: 90
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
diff --git a/.github/workflows/ci-nix-linux.yml b/.github/workflows/ci-nix-linux.yml
index 46a0f75191..e7815644a7 100644
--- a/.github/workflows/ci-nix-linux.yml
+++ b/.github/workflows/ci-nix-linux.yml
@@ -62,7 +62,7 @@ jobs:
rust-source:
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
name: Nix / ${{ matrix.name }}
- runs-on: ubuntu-latest
+ runs-on: cua-linux-16core
timeout-minutes: 60
strategy:
fail-fast: false
diff --git a/.github/workflows/ci-openkoalabot-example-samples.yml b/.github/workflows/ci-openkoalabot-example-samples.yml
index 67ef9c1612..9ec8b373f7 100644
--- a/.github/workflows/ci-openkoalabot-example-samples.yml
+++ b/.github/workflows/ci-openkoalabot-example-samples.yml
@@ -147,7 +147,7 @@ jobs:
needs: changes
if: ${{ needs.changes.outputs.run == 'true' && !startsWith(github.head_ref, 'release-please--branches--') }}
name: openkoalabot-example-swift (swift test)
- runs-on: macos-26
+ runs-on: macos-26-xlarge
timeout-minutes: 60
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
diff --git a/.github/workflows/ci-rust-windows.yml b/.github/workflows/ci-rust-windows.yml
index ef73c33ab5..f6d7eb54b2 100644
--- a/.github/workflows/ci-rust-windows.yml
+++ b/.github/workflows/ci-rust-windows.yml
@@ -62,7 +62,7 @@ jobs:
unit:
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
name: Rust Windows unit and compile
- runs-on: windows-latest
+ runs-on: cua-windows-8core
# The suite below has been running within a hair of this budget for months:
# the last green run on `main` (359fad56) took 28m31s of 30m. The tests this
# branch adds push it past the line, and the failure mode is silent -- every
diff --git a/.github/workflows/e2b-bindings.yml b/.github/workflows/e2b-bindings.yml
index c2eb9b6c71..03a647ddc1 100644
--- a/.github/workflows/e2b-bindings.yml
+++ b/.github/workflows/e2b-bindings.yml
@@ -44,7 +44,7 @@ env:
jobs:
swift:
name: swift tests (macOS)
- runs-on: macos-26
+ runs-on: macos-26-xlarge
# Cold, the release cua-sdk build alone nears 45 minutes on macos-26.
timeout-minutes: 90
defaults:
diff --git a/.github/workflows/e2e-cua-sdk.yml b/.github/workflows/e2e-cua-sdk.yml
index 96815843f4..96bca5a063 100644
--- a/.github/workflows/e2e-cua-sdk.yml
+++ b/.github/workflows/e2e-cua-sdk.yml
@@ -144,11 +144,14 @@ jobs:
name: build / release SDK
needs: changes
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false' }}
- runs-on: ubuntu-24.04
+ runs-on: cua-linux-16core
timeout-minutes: 240
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
+ # One rustc per core of the 16-core runner (the workflow default of 4 is
+ # for the standard 4-core one).
+ CARGO_BUILD_JOBS: "16"
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: ./.github/actions/linux-rust-prep
@@ -183,11 +186,14 @@ jobs:
name: build / debug CLI, TypeScript, wasm
needs: changes
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false' }}
- runs-on: ubuntu-24.04
+ runs-on: cua-linux-16core
timeout-minutes: 240
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
+ # One rustc per core of the 16-core runner (the workflow default of 4 is
+ # for the standard 4-core one).
+ CARGO_BUILD_JOBS: "16"
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Unit-test the shard planner and the runner helpers
@@ -228,11 +234,14 @@ jobs:
name: build / fixtures, static cua-spacesd
needs: changes
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false' }}
- runs-on: ubuntu-24.04
+ runs-on: cua-linux-16core
timeout-minutes: 240
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
+ # One rustc per core of the 16-core runner (the workflow default of 4 is
+ # for the standard 4-core one).
+ CARGO_BUILD_JOBS: "16"
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: ./.github/actions/linux-rust-prep
@@ -277,11 +286,14 @@ jobs:
name: build / Rust test binaries
needs: changes
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false' }}
- runs-on: ubuntu-24.04
+ runs-on: cua-linux-16core
timeout-minutes: 240
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
+ # One rustc per core of the 16-core runner (the workflow default of 4 is
+ # for the standard 4-core one).
+ CARGO_BUILD_JOBS: "16"
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: ./.github/actions/linux-rust-prep
@@ -315,7 +327,7 @@ jobs:
name: build / reference images
needs: changes
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false' }}
- runs-on: ubuntu-24.04
+ runs-on: cua-linux-16core
timeout-minutes: 120
env:
# Optional: an authenticated Docker Hub keeps anonymous pull rate limits