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: reduce GitHub Actions cost (#6225)

Francesco Bonacci2f4d30377478
diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml
index c5d5c66025..b3252ff5df 100644
--- a/.github/actionlint.yaml
+++ b/.github/actionlint.yaml
@@ -1,22 +1,6 @@
# 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_cua_spaces_workflow.py b/.github/scripts/tests/test_ci_cua_spaces_workflow.py
index 7b1d3324df..81d05ac22d 100644
--- a/.github/scripts/tests/test_ci_cua_spaces_workflow.py
+++ b/.github/scripts/tests/test_ci_cua_spaces_workflow.py
@@ -32,5 +32,7 @@ def test_pull_requests_keep_the_cheap_tauri_checks():
# `rust` compiles and tests src-tauri; `frontend` runs vitest + typecheck.
for name in ("rust", "frontend"):
condition = JOBS[name].get("if", "")
+ # Only the draft-skip clause may mention pull_request.
+ condition = condition.replace("github.event_name != 'pull_request' || !github.event.pull_request.draft", "")
assert "pull_request" not in condition and "ci:full" not in condition
assert "src-tauri/Cargo.toml" in str(JOBS["rust"]["steps"])
diff --git a/.github/scripts/tests/test_ci_swift_samples_scope.py b/.github/scripts/tests/test_ci_swift_samples_scope.py
index e7a5ebd6a7..44914a3ed0 100644
--- a/.github/scripts/tests/test_ci_swift_samples_scope.py
+++ b/.github/scripts/tests/test_ci_swift_samples_scope.py
@@ -303,7 +303,7 @@ class WorkflowWiringTests(unittest.TestCase):
swift = jobs["swift"]
self.assertEqual(swift["needs"], "changes")
# The arm64 larger runner of the same macOS image (macos-26 is 3-core).
- self.assertEqual(swift["runs-on"], "macos-26-xlarge")
+ self.assertEqual(swift["runs-on"], "macos-26")
def test_effective_job_conditions(self):
# The scope decision is final, except that release-please branches skip the
diff --git a/.github/scripts/tests/test_e2e_cua_sdk_scope.py b/.github/scripts/tests/test_e2e_cua_sdk_scope.py
index 29e5d893ab..dc315c031d 100644
--- a/.github/scripts/tests/test_e2e_cua_sdk_scope.py
+++ b/.github/scripts/tests/test_e2e_cua_sdk_scope.py
@@ -370,7 +370,7 @@ def test_workflow_wiring():
assert changes["steps"][1]["env"]["EVENT"] == "${{ github.event_name }}"
# The nightly lane is not behind the scope job.
assert "needs" not in live
- assert live["if"] == "github.event_name == 'schedule'"
+ assert "github.event_name == 'schedule'" in live["if"] and "needs.changes" not in live["if"]
assert set(WORKFLOW[True]) == {"pull_request", "schedule", "workflow_dispatch"}
diff --git a/.github/workflows/cd-cua-spaces-natives-main.yml b/.github/workflows/cd-cua-spaces-natives-main.yml
index dcd89bb09a..651e9c236e 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: cua-windows-8core, target: x86_64-pc-windows-msvc }
+ - { label: win32-x64, runner: windows-latest, 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-bench-ale-compat.yml b/.github/workflows/ci-bench-ale-compat.yml
index 5910d7c0d4..b7e0198189 100644
--- a/.github/workflows/ci-bench-ale-compat.yml
+++ b/.github/workflows/ci-bench-ale-compat.yml
@@ -22,6 +22,10 @@ permissions:
env:
ALE_SHA: d10fb61a14f9719774c3520c5763068b28ef5546
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
ale-compat:
name: ALE tasks and harness (${{ matrix.deps }})
diff --git a/.github/workflows/ci-container-cuabot.yml b/.github/workflows/ci-container-cuabot.yml
index 1c146245d1..0e3bf48e71 100644
--- a/.github/workflows/ci-container-cuabot.yml
+++ b/.github/workflows/ci-container-cuabot.yml
@@ -11,6 +11,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/docker-reusable-build.yml
diff --git a/.github/workflows/ci-container-kasm.yml b/.github/workflows/ci-container-kasm.yml
index ad2a7b7f55..660bece523 100644
--- a/.github/workflows/ci-container-kasm.yml
+++ b/.github/workflows/ci-container-kasm.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/docker-reusable-build.yml
diff --git a/.github/workflows/ci-container-lumier.yml b/.github/workflows/ci-container-lumier.yml
index eee4012d50..3d3628da82 100644
--- a/.github/workflows/ci-container-lumier.yml
+++ b/.github/workflows/ci-container-lumier.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/docker-reusable-build.yml
diff --git a/.github/workflows/ci-container-qemu-android.yml b/.github/workflows/ci-container-qemu-android.yml
index 786a6f8dd3..8ecef58a1c 100644
--- a/.github/workflows/ci-container-qemu-android.yml
+++ b/.github/workflows/ci-container-qemu-android.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/docker-reusable-build.yml
diff --git a/.github/workflows/ci-container-qemu-linux.yml b/.github/workflows/ci-container-qemu-linux.yml
index 6a507b5d4a..ab49858daf 100644
--- a/.github/workflows/ci-container-qemu-linux.yml
+++ b/.github/workflows/ci-container-qemu-linux.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/docker-reusable-build.yml
diff --git a/.github/workflows/ci-container-qemu-windows.yml b/.github/workflows/ci-container-qemu-windows.yml
index 2b1f578a92..d565361886 100644
--- a/.github/workflows/ci-container-qemu-windows.yml
+++ b/.github/workflows/ci-container-qemu-windows.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/docker-reusable-build.yml
diff --git a/.github/workflows/ci-container-xfce-cua.yml b/.github/workflows/ci-container-xfce-cua.yml
index 77c1ae229a..59cf2ccfa3 100644
--- a/.github/workflows/ci-container-xfce-cua.yml
+++ b/.github/workflows/ci-container-xfce-cua.yml
@@ -14,6 +14,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build-and-smoke:
name: build-and-smoke (${{ matrix.platform }})
diff --git a/.github/workflows/ci-container-xfce.yml b/.github/workflows/ci-container-xfce.yml
index af03b00ad5..4b5b7cbd50 100644
--- a/.github/workflows/ci-container-xfce.yml
+++ b/.github/workflows/ci-container-xfce.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/docker-reusable-build.yml
diff --git a/.github/workflows/ci-cua-byoc.yml b/.github/workflows/ci-cua-byoc.yml
index 1412d0323c..ec00c0a588 100644
--- a/.github/workflows/ci-cua-byoc.yml
+++ b/.github/workflows/ci-cua-byoc.yml
@@ -41,6 +41,10 @@ env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_BUILD_JOBS: "4"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
rust:
name: providers against their API mocks
diff --git a/.github/workflows/ci-cua-s1.yml b/.github/workflows/ci-cua-s1.yml
index c5df69db16..17e04bb9d6 100644
--- a/.github/workflows/ci-cua-s1.yml
+++ b/.github/workflows/ci-cua-s1.yml
@@ -15,6 +15,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
test:
name: Lint, test, and train smoke (Python ${{ matrix.python-version }})
diff --git a/.github/workflows/ci-cua-sandbox-action.yml b/.github/workflows/ci-cua-sandbox-action.yml
index c4e5973a7a..7e2cd840f1 100644
--- a/.github/workflows/ci-cua-sandbox-action.yml
+++ b/.github/workflows/ci-cua-sandbox-action.yml
@@ -22,6 +22,10 @@ env:
CUA_TELEMETRY: "0"
DO_NOT_TRACK: "1"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
lint:
name: shellcheck and docs actionlint
diff --git a/.github/workflows/ci-cua-sdk.yml b/.github/workflows/ci-cua-sdk.yml
index 010f027f70..10d8ef60d0 100644
--- a/.github/workflows/ci-cua-sdk.yml
+++ b/.github/workflows/ci-cua-sdk.yml
@@ -10,6 +10,7 @@ name: "CI: cua SDK"
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
- "libs/cua/**"
- "libs/python/cua-e2b/**"
@@ -70,7 +71,7 @@ jobs:
# .github/scripts/ci_reuse_pr_result.py. Rollback: set the repository
# variable CI_REUSE_PR_RESULTS to "off".
reuse:
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--')) }}
name: reuse PR results
runs-on: ubuntu-latest
timeout-minutes: 5
@@ -105,17 +106,17 @@ jobs:
--subset "pr_subset=rust (ubuntu-latest)|rust lint (ubuntu-latest)|rust lint (windows-latest)|crates.io dry run|spaces e2e (ubuntu-latest)|bindings drift (ubuntu-latest)|kotlin compile|build SDK (linux, release)|build test fixtures (linux)|build cua and cua-spaces CLIs (linux)|python smoke (ubuntu-latest)|node smoke (ubuntu-latest)|browser (wasm32) build + smoke"
rust-lint:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') }}
name: rust lint (${{ matrix.os }})
runs-on: ${{ matrix.os }}
needs: reuse
# Windows clippy runs on every pull request: Windows-only compile errors
# used to surface only on release PRs.
- timeout-minutes: 90
+ timeout-minutes: 60
strategy:
fail-fast: false
matrix:
- os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26","windows-latest"]') || '["ubuntu-latest","windows-latest"]') }}
+ os: ${{ fromJSON((github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26","windows-latest"]') || '["ubuntu-latest","windows-latest"]') }}
defaults:
run:
working-directory: libs/cua
@@ -185,18 +186,18 @@ jobs:
fi
rust:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') }}
name: rust (${{ 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 }}
+ runs-on: ${{ matrix.os }}
needs: reuse
# Tests only: lint runs in rust-lint, in parallel.
- timeout-minutes: 90
+ timeout-minutes: 60
strategy:
fail-fast: false
matrix:
- os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26","windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') || '["ubuntu-latest"]') }}
+ os: ${{ fromJSON((github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26","windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') || '["ubuntu-latest"]') }}
defaults:
run:
working-directory: libs/cua
@@ -278,7 +279,7 @@ jobs:
# (a path dependency without a version, a file embedded from outside the
# crate, a dependency on an unpublished crate).
crates-dry-run:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
name: crates.io dry run
runs-on: ubuntu-latest
needs: reuse
@@ -301,7 +302,7 @@ jobs:
# cua-spacesd server core in process. A standalone workspace so libs/cua
# never depends on the driver workspace (see the boundary check above).
spaces-e2e:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') }}
name: spaces e2e (${{ matrix.os }})
runs-on: ${{ matrix.os }}
needs: reuse
@@ -309,7 +310,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26"]') || '["ubuntu-latest"]') }}
+ os: ${{ fromJSON((github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26"]') || '["ubuntu-latest"]') }}
defaults:
run:
working-directory: libs/cua-spacesd/tests/spaces-e2e
@@ -341,7 +342,7 @@ jobs:
RUST_MIN_STACK: "8388608"
bindings:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') }}
name: bindings drift (${{ matrix.os }})
runs-on: ${{ matrix.os }}
needs: reuse
@@ -349,7 +350,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26"]') || '["ubuntu-latest"]') }}
+ os: ${{ fromJSON((github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26"]') || '["ubuntu-latest"]') }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: ./.github/actions/linux-rust-prep
@@ -377,7 +378,7 @@ jobs:
cargo run --locked -q -p cua-spaces --bin cua-spaces-control-fixtures -- --check
kotlin:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
# The generated binding must compile (an exported `close` once clashed
# with AutoCloseable.close; uniffi.toml renames such methods).
name: kotlin compile
@@ -395,11 +396,11 @@ jobs:
# compile all of them: 45-55 minutes cold on a 2-vCPU runner). macOS and
# Windows legs (ci:full) still build their own.
build-sdk:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
name: build SDK (linux, release)
runs-on: ubuntu-latest
needs: reuse
- timeout-minutes: 90
+ timeout-minutes: 60
defaults:
run:
shell: bash
@@ -425,11 +426,11 @@ jobs:
compression-level: 1
build-fixtures:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
name: build test fixtures (linux)
runs-on: ubuntu-latest
needs: reuse
- timeout-minutes: 90
+ timeout-minutes: 60
defaults:
run:
shell: bash
@@ -455,11 +456,11 @@ jobs:
compression-level: 1
build-cli:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
name: build cua and cua-spaces CLIs (linux)
runs-on: ubuntu-latest
needs: reuse
- timeout-minutes: 90
+ timeout-minutes: 60
defaults:
run:
shell: bash
@@ -485,7 +486,7 @@ jobs:
compression-level: 1
python:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--')
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--')
&& needs.build-sdk.result != 'failure' && needs.build-sdk.result != 'cancelled'
&& needs.build-fixtures.result != 'failure' && needs.build-fixtures.result != 'cancelled'
&& needs.build-cli.result != 'failure' && needs.build-cli.result != 'cancelled' }}
@@ -494,11 +495,11 @@ jobs:
needs: [reuse, build-sdk, build-fixtures, build-cli]
# A cold Windows run builds cua-sdk (release), the fixtures and the CLI:
# it passed 45 minutes still compiling.
- timeout-minutes: 90
+ timeout-minutes: 60
strategy:
fail-fast: false
matrix:
- os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26","windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') || '["ubuntu-latest"]') }}
+ os: ${{ fromJSON((github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26","windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') || '["ubuntu-latest"]') }}
defaults:
run:
shell: bash
@@ -562,7 +563,7 @@ jobs:
--with "$WHEEL" --with "$CLI_WHEEL" --with-editable . pytest -q -p no:cacheprovider tests/test_conformance.py
node:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--')
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--')
&& needs.build-sdk.result != 'failure' && needs.build-sdk.result != 'cancelled'
&& needs.build-fixtures.result != 'failure' && needs.build-fixtures.result != 'cancelled'
&& needs.build-cli.result != 'failure' && needs.build-cli.result != 'cancelled' }}
@@ -571,11 +572,11 @@ jobs:
needs: [reuse, build-sdk, build-fixtures, build-cli]
# A cold macOS run (release cua-sdk, fixtures, both CLIs) passed 45
# minutes still compiling, as python smoke did on Windows.
- timeout-minutes: 90
+ timeout-minutes: 60
strategy:
fail-fast: false
matrix:
- os: ${{ fromJSON((github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26"]') || '["ubuntu-latest"]') }}
+ os: ${{ fromJSON((github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full')) && (needs.reuse.outputs.pr_subset == 'true' && '["macos-26"]' || '["ubuntu-latest","macos-26"]') || '["ubuntu-latest"]') }}
defaults:
run:
working-directory: libs/cua
@@ -626,7 +627,7 @@ jobs:
npm --prefix typescript/integrations/pi-durable test
browser:
- if: ${{ !cancelled() && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && !startsWith(github.head_ref, 'release-please--branches--') && needs.reuse.outputs.pr_subset != 'true' }}
name: browser (wasm32) build + smoke
runs-on: ubuntu-latest
needs: [reuse, build-fixtures]
@@ -670,10 +671,10 @@ jobs:
swift:
name: swift smoke (macOS)
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-please--') || contains(github.event.pull_request.labels.*.name, 'ci:full')) }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full'))) }}
runs-on: macos-26
# Cold, the release cua-sdk build alone nears 45 minutes on macos-26.
- timeout-minutes: 90
+ timeout-minutes: 60
defaults:
run:
working-directory: libs/cua
diff --git a/.github/workflows/ci-cua-spaces-desktop-install-smoke.yml b/.github/workflows/ci-cua-spaces-desktop-install-smoke.yml
index 7dc1d9f87f..4cc422bdfd 100644
--- a/.github/workflows/ci-cua-spaces-desktop-install-smoke.yml
+++ b/.github/workflows/ci-cua-spaces-desktop-install-smoke.yml
@@ -24,6 +24,10 @@ env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
resolve:
name: Find a run with live artifacts
diff --git a/.github/workflows/ci-cua-spaces-macos.yml b/.github/workflows/ci-cua-spaces-macos.yml
index ff055b02e6..6043b8dedb 100644
--- a/.github/workflows/ci-cua-spaces-macos.yml
+++ b/.github/workflows/ci-cua-spaces-macos.yml
@@ -22,6 +22,7 @@ name: "CI: Cua Spaces for macOS (SwiftUI)"
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
- "apps/cua-spaces-macos/**"
- "libs/cua/crates/cua-spaces-app-core/**"
@@ -88,7 +89,7 @@ env:
jobs:
core:
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--')) }}
name: app core (Rust) + FFI mirror gate
runs-on: ubuntu-24.04
defaults:
@@ -127,9 +128,10 @@ jobs:
# each compiling it (the checks that need the Rust toolchain compile only
# the small bindgen tools).
ffi:
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--')) }}
name: Cua Spaces app library (built once)
- runs-on: macos-26-xlarge
+ runs-on: macos-26
+ timeout-minutes: 45
env:
CARGO_BUILD_JOBS: 4
# The slice cache key names the repository (same value as the producer).
@@ -175,9 +177,11 @@ jobs:
retention-days: 1
swift-tests:
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
name: SwiftUI app (swift tests, bridge contract)
needs: ffi
- runs-on: macos-26-xlarge
+ runs-on: macos-26
+ timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- name: Download the Cua Spaces app library
@@ -247,9 +251,11 @@ jobs:
# shell's TypeScript) still match the library. These run the bindgen tools
# with cargo, so this job has the Rust toolchain; the other Swift jobs do not.
bindings:
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
name: SwiftUI and Electron bindings are up to date
needs: ffi
runs-on: macos-26
+ timeout-minutes: 45
env:
CARGO_BUILD_JOBS: 4
steps:
@@ -289,9 +295,11 @@ jobs:
pnpm native -- --skip-build --check-bindings
app-bundle:
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
name: SwiftUI app (bundle, launch check, XCUITest)
needs: ffi
- runs-on: macos-26-xlarge
+ runs-on: macos-26
+ timeout-minutes: 45
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 a3dd725645..583640502b 100644
--- a/.github/workflows/ci-cua-spaces.yml
+++ b/.github/workflows/ci-cua-spaces.yml
@@ -30,6 +30,7 @@ name: "CI: Cua Spaces"
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
- "apps/cua-spaces/**"
- "libs/cua/**"
@@ -68,6 +69,7 @@ env:
jobs:
changes:
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
name: changes
runs-on: ubuntu-24.04
timeout-minutes: 5
@@ -129,6 +131,7 @@ jobs:
echo "native bundles: $native"
rust:
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
name: rust command-layer tests
runs-on: ubuntu-22.04
timeout-minutes: 60
@@ -188,7 +191,7 @@ jobs:
suite: spaces-rust
frontend:
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--')) }}
name: vitest + typecheck
runs-on: ubuntu-24.04
steps:
@@ -235,11 +238,11 @@ jobs:
# release-please PRs (fast checks only). Main pushes, manual runs and
# `ci:full` PRs build them.
needs: changes
- if: ${{ needs.changes.outputs.bundle == 'true' && !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full')) }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (needs.changes.outputs.bundle == 'true' && !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full'))) }}
strategy:
fail-fast: false
matrix:
- 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"}]') }}
+ 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"}]') }}
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
@@ -255,7 +258,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 || matrix.os == 'cua-windows-8core' && 8 || 4 }}
+ CARGO_BUILD_JOBS: ${{ matrix.os == 'ubuntu-22.04' && 2 || 4 }}
steps:
- uses: actions/checkout@v4
# Linking the debug test binaries and the bundle exhausted the Linux
diff --git a/.github/workflows/ci-cua-spacesd.yml b/.github/workflows/ci-cua-spacesd.yml
index 28fc2c5f47..1882d81715 100644
--- a/.github/workflows/ci-cua-spacesd.yml
+++ b/.github/workflows/ci-cua-spacesd.yml
@@ -6,6 +6,7 @@ name: "CI: cua-spacesd"
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
- "libs/cua-spacesd/**"
- "libs/cua-driver/rust/**"
@@ -88,7 +89,7 @@ env:
jobs:
changes:
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--')) }}
name: "cua-spacesd / changes"
runs-on: ubuntu-latest
timeout-minutes: 5
@@ -149,7 +150,7 @@ jobs:
test:
name: fmt, clippy, test (${{ matrix.os }})
needs: changes
- if: needs.changes.outputs.run == 'true' && needs.changes.outputs.legs_test != '[]'
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (needs.changes.outputs.run == 'true' && needs.changes.outputs.legs_test != '[]') }}
strategy:
fail-fast: false
matrix:
@@ -269,9 +270,9 @@ jobs:
name: Cua Volume mount (Windows NFS client)
# Not shipped yet (renames fail in the Windows NFS client): run on
# demand while the Windows mount is finished.
- if: github.event_name == 'workflow_dispatch'
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (github.event_name == 'workflow_dispatch') }}
runs-on: windows-latest
- timeout-minutes: 75
+ timeout-minutes: 60
defaults:
run:
shell: bash
@@ -327,9 +328,9 @@ jobs:
relay-e2e:
name: relay e2e (docker)
needs: changes
- if: needs.changes.outputs.run == 'true' && contains(needs.changes.outputs.matrix, 'ubuntu') && !contains(fromJSON(needs.changes.outputs.reused), 'relay e2e (docker)')
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (needs.changes.outputs.run == 'true' && contains(needs.changes.outputs.matrix, 'ubuntu') && !contains(fromJSON(needs.changes.outputs.reused), 'relay e2e (docker)')) }}
runs-on: ubuntu-latest
- timeout-minutes: 90
+ timeout-minutes: 60
defaults:
run:
shell: bash
@@ -352,7 +353,7 @@ jobs:
# require if branch protection ever needs one.
result:
name: "cua-spacesd / result"
- if: always()
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (always()) }}
needs: [changes, test, relay-e2e]
runs-on: ubuntu-latest
timeout-minutes: 5
diff --git a/.github/workflows/ci-flaky-quarantine.yml b/.github/workflows/ci-flaky-quarantine.yml
index c0220c16b8..36f1373056 100644
--- a/.github/workflows/ci-flaky-quarantine.yml
+++ b/.github/workflows/ci-flaky-quarantine.yml
@@ -15,6 +15,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
quarantine:
name: quarantine list and flaky tooling
diff --git a/.github/workflows/ci-infinite-canvas-swift.yml b/.github/workflows/ci-infinite-canvas-swift.yml
index 8395466ab6..f3f15cdfe5 100644
--- a/.github/workflows/ci-infinite-canvas-swift.yml
+++ b/.github/workflows/ci-infinite-canvas-swift.yml
@@ -79,8 +79,8 @@ 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-xlarge
- timeout-minutes: 90
+ runs-on: macos-26
+ timeout-minutes: 30
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
diff --git a/.github/workflows/ci-lint-typescript.yml b/.github/workflows/ci-lint-typescript.yml
index e92bb0f194..34d9480c8e 100644
--- a/.github/workflows/ci-lint-typescript.yml
+++ b/.github/workflows/ci-lint-typescript.yml
@@ -14,6 +14,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
lint:
name: TypeScript Lint & Format
diff --git a/.github/workflows/ci-lint-workflows.yml b/.github/workflows/ci-lint-workflows.yml
index 9c57c45901..3195e00769 100644
--- a/.github/workflows/ci-lint-workflows.yml
+++ b/.github/workflows/ci-lint-workflows.yml
@@ -27,6 +27,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
actionlint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/ci-nix-linux.yml b/.github/workflows/ci-nix-linux.yml
index e7815644a7..b79dcc24db 100644
--- a/.github/workflows/ci-nix-linux.yml
+++ b/.github/workflows/ci-nix-linux.yml
@@ -4,6 +4,7 @@ name: "CI: Nix Linux Rust source"
# desktop behavior is owned by the Rust E2E workflows.
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
- "flake.nix"
- "flake.lock"
@@ -60,9 +61,9 @@ env:
jobs:
rust-source:
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--')) }}
name: Nix / ${{ matrix.name }}
- runs-on: cua-linux-16core
+ runs-on: ubuntu-latest
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 9ec8b373f7..7b3b54c4f6 100644
--- a/.github/workflows/ci-openkoalabot-example-samples.yml
+++ b/.github/workflows/ci-openkoalabot-example-samples.yml
@@ -147,8 +147,8 @@ 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-xlarge
- timeout-minutes: 60
+ runs-on: macos-26
+ timeout-minutes: 30
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
diff --git a/.github/workflows/ci-public-containerdisk-refs.yml b/.github/workflows/ci-public-containerdisk-refs.yml
index 6521401800..a97de2924c 100644
--- a/.github/workflows/ci-public-containerdisk-refs.yml
+++ b/.github/workflows/ci-public-containerdisk-refs.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
guard:
runs-on: ubuntu-latest
diff --git a/.github/workflows/ci-py-agent.yml b/.github/workflows/ci-py-agent.yml
index b19bf5534f..2793e2e967 100644
--- a/.github/workflows/ci-py-agent.yml
+++ b/.github/workflows/ci-py-agent.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/py-reusable-build.yml
diff --git a/.github/workflows/ci-py-bench-ui.yml b/.github/workflows/ci-py-bench-ui.yml
index ba42ec0bc0..81e045c1d4 100644
--- a/.github/workflows/ci-py-bench-ui.yml
+++ b/.github/workflows/ci-py-bench-ui.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/py-reusable-build.yml
diff --git a/.github/workflows/ci-py-core.yml b/.github/workflows/ci-py-core.yml
index 4a3c5530f0..440defd8b6 100644
--- a/.github/workflows/ci-py-core.yml
+++ b/.github/workflows/ci-py-core.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/py-reusable-build.yml
diff --git a/.github/workflows/ci-py-som.yml b/.github/workflows/ci-py-som.yml
index f72661da4f..514d873c4d 100644
--- a/.github/workflows/ci-py-som.yml
+++ b/.github/workflows/ci-py-som.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/py-reusable-build.yml
diff --git a/.github/workflows/ci-release-spacesd-pin.yml b/.github/workflows/ci-release-spacesd-pin.yml
index 3b8a4e8f6a..dc65bfe94e 100644
--- a/.github/workflows/ci-release-spacesd-pin.yml
+++ b/.github/workflows/ci-release-spacesd-pin.yml
@@ -18,6 +18,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
spacesd-published:
name: cua-spacesd pin is published
diff --git a/.github/workflows/ci-rust-windows.yml b/.github/workflows/ci-rust-windows.yml
index f6d7eb54b2..7cd32639fb 100644
--- a/.github/workflows/ci-rust-windows.yml
+++ b/.github/workflows/ci-rust-windows.yml
@@ -2,6 +2,7 @@ name: "CI: Rust Windows unit"
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
- "libs/cua-driver/rust/.cargo/**"
- "libs/cua-driver/rust/Cargo.toml"
@@ -60,9 +61,9 @@ env:
jobs:
unit:
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--')) }}
name: Rust Windows unit and compile
- runs-on: cua-windows-8core
+ runs-on: windows-latest
# 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
@@ -74,7 +75,7 @@ jobs:
# A warm Rust cache runs in about 15 minutes (trycua/cua); the cache is
# saved only from main, so a repository without one builds cold, where
# the first test step alone took 22 minutes and the job passed 45.
- timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && inputs.proxy_idle_seconds > 1 && 90 || 75 }}
+ timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && inputs.proxy_idle_seconds > 1 && 90 || 60 }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: dtolnay/rust-toolchain@4716b85f2fac3e324e64fa2810f6b5c3905760a5 # 1.97.1
diff --git a/.github/workflows/ci-ts-core.yml b/.github/workflows/ci-ts-core.yml
index 16af2eecaa..2421693dc6 100644
--- a/.github/workflows/ci-ts-core.yml
+++ b/.github/workflows/ci-ts-core.yml
@@ -15,6 +15,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/ts-reusable-build.yml
diff --git a/.github/workflows/ci-ts-cursor-motion.yml b/.github/workflows/ci-ts-cursor-motion.yml
index a5937c8610..490a764a62 100644
--- a/.github/workflows/ci-ts-cursor-motion.yml
+++ b/.github/workflows/ci-ts-cursor-motion.yml
@@ -16,6 +16,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
uses: ./.github/workflows/ts-reusable-build.yml
diff --git a/.github/workflows/docker-reusable-build.yml b/.github/workflows/docker-reusable-build.yml
index 1f70b88b18..591ddc3767 100644
--- a/.github/workflows/docker-reusable-build.yml
+++ b/.github/workflows/docker-reusable-build.yml
@@ -42,7 +42,9 @@ jobs:
build:
needs: setup
- runs-on: ubuntu-latest
+ # Native arm64 runner (free for public repos): QEMU emulation segfaults
+ # (exit 139) in dpkg post-install scripts.
+ runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
diff --git a/.github/workflows/docs-mcp-corpus-parity.yml b/.github/workflows/docs-mcp-corpus-parity.yml
index bad0f44922..c56b0fec1e 100644
--- a/.github/workflows/docs-mcp-corpus-parity.yml
+++ b/.github/workflows/docs-mcp-corpus-parity.yml
@@ -21,6 +21,10 @@ env:
CUA_TELEMETRY: "0"
DO_NOT_TRACK: "1"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
corpus-parity:
runs-on: ubuntu-24.04
diff --git a/.github/workflows/docs-mcp-server-build-push.yml b/.github/workflows/docs-mcp-server-build-push.yml
index 86fc9a67e3..a92ec35e58 100644
--- a/.github/workflows/docs-mcp-server-build-push.yml
+++ b/.github/workflows/docs-mcp-server-build-push.yml
@@ -29,6 +29,10 @@ permissions:
id-token: write
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
build:
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
diff --git a/.github/workflows/e2b-bindings.yml b/.github/workflows/e2b-bindings.yml
index 03a647ddc1..37b95162f3 100644
--- a/.github/workflows/e2b-bindings.yml
+++ b/.github/workflows/e2b-bindings.yml
@@ -14,6 +14,7 @@ name: e2b-bindings
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
- "libs/cua/crates/cua-sdk/**"
- "libs/cua/proto/**"
@@ -43,10 +44,11 @@ env:
jobs:
swift:
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
name: swift tests (macOS)
- runs-on: macos-26-xlarge
+ runs-on: macos-26
# Cold, the release cua-sdk build alone nears 45 minutes on macos-26.
- timeout-minutes: 90
+ timeout-minutes: 75
defaults:
run:
working-directory: libs/cua
diff --git a/.github/workflows/e2b-conformance.yml b/.github/workflows/e2b-conformance.yml
index 57175ebf1f..05bd2aab12 100644
--- a/.github/workflows/e2b-conformance.yml
+++ b/.github/workflows/e2b-conformance.yml
@@ -38,6 +38,10 @@ env:
CUA_TELEMETRY: "0"
DO_NOT_TRACK: "1"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
hermetic:
name: Hermetic suite, properties, perf guard, coverage matrix
diff --git a/.github/workflows/e2e-cua-sdk.yml b/.github/workflows/e2e-cua-sdk.yml
index 96bca5a063..2615be5c49 100644
--- a/.github/workflows/e2e-cua-sdk.yml
+++ b/.github/workflows/e2e-cua-sdk.yml
@@ -18,6 +18,7 @@ name: "E2E: cua SDK"
on:
pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
paths:
# Keep in step with PATHS in .github/scripts/e2e_cua_sdk_scope.py (a test
# pins the two lists together).
@@ -105,7 +106,7 @@ jobs:
# skipped, the run still exists and succeeds, so `ci-gate` counts it as passed.
changes:
name: "E2E: cua SDK / changes"
- if: ${{ !startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') }}
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule')) }}
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
@@ -143,9 +144,9 @@ jobs:
build-sdk:
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: cua-linux-16core
- timeout-minutes: 240
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false') }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 150
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
@@ -185,9 +186,9 @@ jobs:
build-cli:
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: cua-linux-16core
- timeout-minutes: 240
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false') }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 150
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
@@ -233,9 +234,9 @@ jobs:
build-fixtures:
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: cua-linux-16core
- timeout-minutes: 240
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false') }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 150
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
@@ -285,9 +286,9 @@ jobs:
build-rust-tests:
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: cua-linux-16core
- timeout-minutes: 240
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false') }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 150
env:
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_INCREMENTAL: "0"
@@ -326,8 +327,8 @@ jobs:
build-images:
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: cua-linux-16core
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (!startsWith(github.head_ref, 'release-please--branches--') && (github.event_name != 'schedule') && needs.changes.outputs.run != 'false') }}
+ runs-on: ubuntu-latest
timeout-minutes: 120
env:
# Optional: an authenticated Docker Hub keeps anonymous pull rate limits
@@ -357,6 +358,7 @@ jobs:
if-no-files-found: error
shard:
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
name: tests (shard ${{ matrix.shard }})
needs: [build-sdk, build-cli, build-fixtures, build-rust-tests, build-images]
runs-on: ubuntu-24.04
@@ -423,7 +425,7 @@ jobs:
matrix:
name: matrix (${{ github.event_name == 'workflow_dispatch' && inputs.lanes || 'hermetic,container' }})
needs: shard
- if: ${{ !cancelled() && needs.shard.result != 'skipped' }}
+ if: ${{ !cancelled() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) && needs.shard.result != 'skipped' }}
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
@@ -475,7 +477,7 @@ jobs:
live:
name: nightly (cua-sandbox, qemu)
- if: github.event_name == 'schedule'
+ if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (github.event_name == 'schedule') }}
runs-on: ubuntu-24.04
timeout-minutes: 180
steps:
diff --git a/.github/workflows/fleet-mirror-guard.yml b/.github/workflows/fleet-mirror-guard.yml
index 95a62ada30..e466f01f05 100644
--- a/.github/workflows/fleet-mirror-guard.yml
+++ b/.github/workflows/fleet-mirror-guard.yml
@@ -13,6 +13,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
fleet-mirror-guard:
if: github.event_name != 'merge_group'