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: bound and deduplicate driver workflow runs (#4141)

Francesco Bonacci59d801bf142c
diff --git a/.github/workflows/ci-cua-driver-contract-clients.yml b/.github/workflows/ci-cua-driver-contract-clients.yml
index 9d546229e7..a5c1da2760 100644
--- a/.github/workflows/ci-cua-driver-contract-clients.yml
+++ b/.github/workflows/ci-cua-driver-contract-clients.yml
@@ -62,7 +62,7 @@ permissions:
contents: read
concurrency:
- group: ci-cua-driver-contract-clients-${{ github.workflow }}-${{ github.ref }}
+ group: ci-cua-driver-contract-clients-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-cua-driver-installer-compat.yml b/.github/workflows/ci-cua-driver-installer-compat.yml
index e9b028b0ae..48fc4fb174 100644
--- a/.github/workflows/ci-cua-driver-installer-compat.yml
+++ b/.github/workflows/ci-cua-driver-installer-compat.yml
@@ -21,10 +21,17 @@ permissions:
contents: read
pull-requests: read
+# In a reusable call, github.workflow names the caller, so each caller keeps
+# its own group.
+concurrency:
+ group: cua-driver-installer-compat-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
scope:
name: Resolve installer compatibility scope
runs-on: ubuntu-latest
+ timeout-minutes: 5
outputs:
should_run: ${{ steps.scope.outputs.should_run }}
versions: ${{ steps.versions.outputs.versions }}
@@ -107,6 +114,7 @@ jobs:
os: [ubuntu-latest, macos-26, windows-latest]
version: ${{ fromJSON(needs.scope.outputs.versions) }}
runs-on: ${{ matrix.os }}
+ timeout-minutes: 15
env:
CUA_DRIVER_RS_VERSION: ${{ matrix.version }}
CUA_DRIVER_RS_KEEP_VERSIONS: "0"
@@ -171,6 +179,7 @@ jobs:
needs: [scope, install]
if: always()
runs-on: ubuntu-latest
+ timeout-minutes: 5
steps:
- name: Report result
run: |
diff --git a/.github/workflows/ci-cua-driver-preflight.yml b/.github/workflows/ci-cua-driver-preflight.yml
index c3e3ce158f..d22eb4710c 100644
--- a/.github/workflows/ci-cua-driver-preflight.yml
+++ b/.github/workflows/ci-cua-driver-preflight.yml
@@ -12,6 +12,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ci-cua-driver-preflight-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
linux:
name: "Linux / lightweight desktop readiness"
diff --git a/.github/workflows/ci-cua-driver-valgrind.yml b/.github/workflows/ci-cua-driver-valgrind.yml
index 59b51deb39..653e725939 100644
--- a/.github/workflows/ci-cua-driver-valgrind.yml
+++ b/.github/workflows/ci-cua-driver-valgrind.yml
@@ -20,7 +20,7 @@ permissions:
contents: read
concurrency:
- group: ci-cua-driver-valgrind-${{ github.workflow }}-${{ github.ref }}
+ group: ci-cua-driver-valgrind-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-cua-perception-release.yml b/.github/workflows/ci-cua-perception-release.yml
index 0c70c388a2..57987574b5 100644
--- a/.github/workflows/ci-cua-perception-release.yml
+++ b/.github/workflows/ci-cua-perception-release.yml
@@ -38,6 +38,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ci-cua-perception-release-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
crate:
name: crate (${{ matrix.target }})
@@ -52,6 +56,7 @@ jobs:
- target: windows-x64
os: windows-latest
runs-on: ${{ matrix.os }}
+ timeout-minutes: 30
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
@@ -62,6 +67,7 @@ jobs:
contract:
runs-on: ubuntu-latest
+ timeout-minutes: 15
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
diff --git a/.github/workflows/ci-distro-compat-cua-driver.yml b/.github/workflows/ci-distro-compat-cua-driver.yml
index 52d46ba682..89b1063eb7 100644
--- a/.github/workflows/ci-distro-compat-cua-driver.yml
+++ b/.github/workflows/ci-distro-compat-cua-driver.yml
@@ -57,6 +57,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ci-distro-compat-cua-driver-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
# ── Resolve the binary version to test ───────────────────────────────────────
# Fetch the latest published cua-driver-rs release tag so individual matrix
@@ -68,6 +72,7 @@ jobs:
github.event_name != 'release' ||
startsWith(github.event.release.tag_name, 'cua-driver-rs-v')
runs-on: ubuntu-latest
+ timeout-minutes: 30
outputs:
version: ${{ steps.pick.outputs.version }}
binary_url: ${{ steps.pick.outputs.binary_url }}
@@ -149,6 +154,7 @@ jobs:
# Don't block the PR if no release binary exists yet.
continue-on-error: true
runs-on: ubuntu-latest
+ timeout-minutes: 15
env:
# The released binary's smoke commands must never create client telemetry
# or installation markers from a CI runner. Set both names during the
@@ -291,6 +297,7 @@ jobs:
needs: [resolve-version, distro-smoke]
if: always()
runs-on: ubuntu-latest
+ timeout-minutes: 5
steps:
- name: Check results
run: |
diff --git a/.github/workflows/ci-driver-linux-bootstrap.yml b/.github/workflows/ci-driver-linux-bootstrap.yml
index 019ae509d9..5978ae67be 100644
--- a/.github/workflows/ci-driver-linux-bootstrap.yml
+++ b/.github/workflows/ci-driver-linux-bootstrap.yml
@@ -10,6 +10,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ci-driver-linux-bootstrap-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
bootstrap:
name: Debian 11 bootstrap (${{ matrix.arch }})
diff --git a/.github/workflows/ci-nix-linux.yml b/.github/workflows/ci-nix-linux.yml
index de65216c30..0afd2e25b4 100644
--- a/.github/workflows/ci-nix-linux.yml
+++ b/.github/workflows/ci-nix-linux.yml
@@ -48,7 +48,7 @@ permissions:
contents: read
concurrency:
- group: ci-nix-linux-${{ github.workflow }}-${{ github.ref }}
+ group: ci-nix-linux-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-rust-format.yml b/.github/workflows/ci-rust-format.yml
index 4084fdc86d..c7c1dfb231 100644
--- a/.github/workflows/ci-rust-format.yml
+++ b/.github/workflows/ci-rust-format.yml
@@ -16,7 +16,7 @@ permissions:
contents: read
concurrency:
- group: ci-rust-format-${{ github.workflow }}-${{ github.ref }}
+ group: ci-rust-format-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-rust-linux.yml b/.github/workflows/ci-rust-linux.yml
index 79c6e412cb..f7ac382a5f 100644
--- a/.github/workflows/ci-rust-linux.yml
+++ b/.github/workflows/ci-rust-linux.yml
@@ -50,7 +50,7 @@ permissions:
contents: read
concurrency:
- group: ci-rust-linux-${{ github.workflow }}-${{ github.ref }}
+ group: ci-rust-linux-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-rust-macos.yml b/.github/workflows/ci-rust-macos.yml
index 3d91f57b99..603dd11035 100644
--- a/.github/workflows/ci-rust-macos.yml
+++ b/.github/workflows/ci-rust-macos.yml
@@ -36,7 +36,7 @@ permissions:
contents: read
concurrency:
- group: ci-rust-macos-${{ github.workflow }}-${{ github.ref }}
+ group: ci-rust-macos-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-rust-windows.yml b/.github/workflows/ci-rust-windows.yml
index 00f2eb0964..a0a11ef4de 100644
--- a/.github/workflows/ci-rust-windows.yml
+++ b/.github/workflows/ci-rust-windows.yml
@@ -45,7 +45,7 @@ permissions:
contents: read
concurrency:
- group: ci-rust-windows-${{ github.workflow }}-${{ github.ref }}
+ group: ci-rust-windows-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-swift-linker.yml b/.github/workflows/ci-swift-linker.yml
index 6477cef319..70feefecb8 100644
--- a/.github/workflows/ci-swift-linker.yml
+++ b/.github/workflows/ci-swift-linker.yml
@@ -34,7 +34,7 @@ permissions:
contents: read
concurrency:
- group: swift-linker-${{ github.ref }}
+ group: swift-linker-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/ci-test-scripts.yml b/.github/workflows/ci-test-scripts.yml
index cde04e647e..0236318069 100644
--- a/.github/workflows/ci-test-scripts.yml
+++ b/.github/workflows/ci-test-scripts.yml
@@ -81,6 +81,10 @@ on:
- "libs/lume/src/Main.swift"
- "scripts/docs-generators/config.json"
+concurrency:
+ group: ci-test-scripts-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
windows-uninstall:
runs-on: windows-latest
@@ -97,6 +101,7 @@ jobs:
test:
runs-on: ubuntu-latest
+ timeout-minutes: 15
steps:
- name: Checkout code
diff --git a/.github/workflows/docs-driver-first-run-smoke.yml b/.github/workflows/docs-driver-first-run-smoke.yml
index f5c29df5be..3347496f80 100644
--- a/.github/workflows/docs-driver-first-run-smoke.yml
+++ b/.github/workflows/docs-driver-first-run-smoke.yml
@@ -18,6 +18,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: docs-driver-first-run-smoke-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
first-run:
runs-on: ubuntu-24.04
diff --git a/.github/workflows/e2e-rust-linux-wayland.yml b/.github/workflows/e2e-rust-linux-wayland.yml
index cc746a1484..bddb411a0d 100644
--- a/.github/workflows/e2e-rust-linux-wayland.yml
+++ b/.github/workflows/e2e-rust-linux-wayland.yml
@@ -35,10 +35,17 @@ permissions:
contents: read
actions: read
+# Identical dispatches queue behind the running certification instead of
+# racing it. In-progress runs are never cancelled.
+concurrency:
+ group: e2e-rust-linux-wayland-${{ github.ref }}-${{ inputs.ref }}-${{ inputs.environment }}-${{ inputs.lane }}-${{ inputs.cell_filter }}
+ cancel-in-progress: false
+
jobs:
source:
name: "Resolve exact source"
runs-on: ubuntu-latest
+ timeout-minutes: 10
outputs:
sha: ${{ steps.resolve.outputs.sha }}
lanes: ${{ steps.resolve.outputs.lanes }}
diff --git a/.github/workflows/e2e-rust-linux.yml b/.github/workflows/e2e-rust-linux.yml
index e16180f8b2..a8ac30cd5a 100644
--- a/.github/workflows/e2e-rust-linux.yml
+++ b/.github/workflows/e2e-rust-linux.yml
@@ -45,10 +45,17 @@ permissions:
contents: read
actions: read
+# Identical dispatches queue behind the running certification instead of
+# racing it. In-progress runs are never cancelled.
+concurrency:
+ group: e2e-rust-linux-${{ github.ref }}-${{ inputs.ref }}-${{ inputs.lane }}-${{ inputs.cell_filter }}
+ cancel-in-progress: false
+
jobs:
source:
name: "Resolve exact source"
runs-on: ubuntu-latest
+ timeout-minutes: 10
outputs:
sha: ${{ steps.resolve.outputs.sha }}
steps:
diff --git a/.github/workflows/e2e-rust-standalone-browsers.yml b/.github/workflows/e2e-rust-standalone-browsers.yml
index 2af1c4ad84..e338eb5642 100644
--- a/.github/workflows/e2e-rust-standalone-browsers.yml
+++ b/.github/workflows/e2e-rust-standalone-browsers.yml
@@ -19,10 +19,17 @@ permissions:
contents: read
actions: read
+# Identical dispatches queue behind the running certification instead of
+# racing it. In-progress runs are never cancelled.
+concurrency:
+ group: e2e-rust-standalone-browsers-${{ github.ref }}-${{ inputs.ref }}
+ cancel-in-progress: false
+
jobs:
source:
name: "Resolve exact source"
runs-on: ubuntu-latest
+ timeout-minutes: 10
outputs:
sha: ${{ steps.resolve.outputs.sha }}
steps:
diff --git a/.github/workflows/e2e-rust-windows.yml b/.github/workflows/e2e-rust-windows.yml
index 635d103186..3599649eb3 100644
--- a/.github/workflows/e2e-rust-windows.yml
+++ b/.github/workflows/e2e-rust-windows.yml
@@ -45,10 +45,17 @@ permissions:
contents: read
actions: read
+# Identical dispatches queue behind the running certification instead of
+# racing it. In-progress runs are never cancelled.
+concurrency:
+ group: e2e-rust-windows-${{ github.ref }}-${{ inputs.ref }}-${{ inputs.runner }}-${{ inputs.lane }}
+ cancel-in-progress: false
+
jobs:
source:
name: "Resolve exact source"
runs-on: ubuntu-latest
+ timeout-minutes: 10
outputs:
sha: ${{ steps.resolve.outputs.sha }}
steps:
diff --git a/.github/workflows/review-cua-perception-candidates.yml b/.github/workflows/review-cua-perception-candidates.yml
index 2e8060649a..cf19175f12 100644
--- a/.github/workflows/review-cua-perception-candidates.yml
+++ b/.github/workflows/review-cua-perception-candidates.yml
@@ -23,6 +23,7 @@ jobs:
github.event.action == 'labeled' &&
github.event.label.name == 'cua-perception-live-review'
runs-on: ubuntu-latest
+ timeout-minutes: 10
outputs:
source_pr_number: ${{ steps.resolve.outputs.source_pr_number }}
source_sha: ${{ steps.resolve.outputs.source_sha }}