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: delete 7 workflows that CI: Quick already runs (CUA-3558, cut #10) (#6592)

Francesco Bonacci63d8ad7f60d1
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 9c07b2d5b5..41f716fcc7 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -25,7 +25,6 @@
/.github/workflows/ci-cua-driver-contract-clients.yml @f-trycua @injaneity
/.github/workflows/ci-cua-driver-installer-compat.yml @f-trycua @injaneity
/.github/workflows/ci-distro-compat-cua-driver.yml @f-trycua @injaneity
-/.github/workflows/ci-rust-format.yml @f-trycua @injaneity
/.github/workflows/ci-rust-linux.yml @f-trycua @injaneity
/.github/workflows/ci-rust-macos.yml @f-trycua @injaneity
/.github/workflows/ci-rust-windows.yml @f-trycua @injaneity
diff --git a/.github/ci-areas.json b/.github/ci-areas.json
index 5315312bb3..4a80af8995 100644
--- a/.github/ci-areas.json
+++ b/.github/ci-areas.json
@@ -20,8 +20,6 @@
"workflows": [
"ci-cua-relay-image.yml",
"ci-cua-spacesd.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"license-check.yml"
],
"narrowed": true
@@ -42,10 +40,8 @@
"ci-cua-spacesd.yml",
"ci-elastic.yml",
"ci-images-spacesd-lag.yml",
- "ci-lockfiles.yml",
"ci-openkoalabot-example-tauri.yml",
"ci-release-spacesd-pin.yml",
- "ci-spdx-headers.yml",
"ci-test-python.yml",
"e2b-core-nightly.yml",
"e2e-cua-sdk.yml",
@@ -71,14 +67,11 @@
"ci-cua-sandbox-doctor.yml",
"ci-cua-spacesd.yml",
"ci-driver-mcp-candidate.yml",
- "ci-lockfiles.yml",
"ci-nix-linux.yml",
"ci-platform-linux-portability.yml",
- "ci-rust-format.yml",
"ci-rust-linux.yml",
"ci-rust-macos.yml",
"ci-rust-windows.yml",
- "ci-spdx-headers.yml",
"ci-swift-linker.yml",
"ci-test-scripts.yml",
"ci-ts-cursor-motion.yml",
@@ -112,14 +105,11 @@
"ci-driver-mcp-candidate.yml",
"ci-hyprland-plugin.yml",
"ci-jev-use.yml",
- "ci-lockfiles.yml",
"ci-nix-linux.yml",
"ci-platform-linux-portability.yml",
- "ci-rust-format.yml",
"ci-rust-linux.yml",
"ci-rust-macos.yml",
"ci-rust-windows.yml",
- "ci-spdx-headers.yml",
"ci-swift-linker.yml",
"ci-test-scripts.yml",
"ci-ts-cursor-motion.yml",
@@ -163,10 +153,8 @@
"ci-cua-spacesd-html5.yml",
"ci-cua-spacesd.yml",
"ci-elastic.yml",
- "ci-lockfiles.yml",
"ci-openkoalabot-example-tauri.yml",
"ci-pi-durable-crash.yml",
- "ci-spdx-headers.yml",
"ci-test-python.yml",
"ci-vm-density.yml",
"docs-compile-lanes.yml",
@@ -204,8 +192,6 @@
"ci-cua-spacesd.yml",
"ci-images-chromium-pin.yml",
"ci-images-spacesd-lag.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"e2b-core-nightly.yml",
"e2e-cua-sdk.yml",
"license-check.yml",
@@ -222,8 +208,6 @@
"ci-check-docs-links.yml",
"ci-cua-spaces-macos.yml",
"ci-cua-spaces-web.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"ci-test-scripts.yml",
"license-check.yml"
]
@@ -237,8 +221,6 @@
"ci-cua-spaces-web.yml",
"ci-cua-spaces.yml",
"ci-installers.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"license-check.yml"
]
},
@@ -248,8 +230,6 @@
],
"workflows": [
"ci-check-docs-links.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"license-check.yml"
]
},
@@ -264,8 +244,6 @@
"ci-check-docs-links.yml",
"ci-cua-spaces-macos.yml",
"ci-cua-spaces-web.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"ci-test-scripts.yml",
"license-check.yml"
]
@@ -288,14 +266,11 @@
"ci-cua-s1.yml",
"ci-cua-sdk.yml",
"ci-driver-mcp-candidate.yml",
- "ci-lint-python.yml",
- "ci-lockfiles.yml",
"ci-py-agent.yml",
"ci-py-bench-ui.yml",
"ci-py-bench.yml",
"ci-py-core.yml",
"ci-py-som.yml",
- "ci-spdx-headers.yml",
"ci-test-python.yml",
"ci-test-scripts.yml",
"docs-page-tests.yml",
@@ -314,8 +289,6 @@
"ci-check-docs-links.yml",
"ci-container-cuabot.yml",
"ci-lint-typescript.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"ci-ts-core.yml",
"ci-ts-cursor-motion.yml",
"license-check.yml"
@@ -334,8 +307,6 @@
"ci-container-lumier.yml",
"ci-cua-sdk.yml",
"ci-cua-spaces-macos.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"ci-swift-lume.yml",
"ci-test-scripts.yml",
"license-check.yml"
@@ -357,8 +328,6 @@
"ci-container-qemu-windows.yml",
"ci-container-xfce-cua.yml",
"ci-container-xfce.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"license-check.yml"
]
},
@@ -375,9 +344,7 @@
"ci-cua-contrib.yml",
"ci-cua-sandbox-action.yml",
"ci-jev-use.yml",
- "ci-lockfiles.yml",
"ci-public-containerdisk-refs.yml",
- "ci-spdx-headers.yml",
"ci-test-scripts.yml",
"docs-compile-lanes.yml",
"docs-driver-first-run-smoke.yml",
@@ -399,8 +366,6 @@
"ci-cua-compat-e2b.yml",
"ci-cua-compat-modal.yml",
"ci-cua-compat.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"compat-drift.yml",
"e2e-compat-examples.yml",
"license-check.yml"
@@ -413,8 +378,6 @@
"workflows": [
"ci-check-docs-links.yml",
"ci-installers.yml",
- "ci-lockfiles.yml",
- "ci-spdx-headers.yml",
"ci-test-scripts.yml",
"license-check.yml"
]
@@ -425,9 +388,7 @@
],
"workflows": [
"ci-check-docs-links.yml",
- "ci-lockfiles.yml",
"ci-openkoalabot-example-tauri.yml",
- "ci-spdx-headers.yml",
"license-check.yml"
]
}
diff --git a/.github/larger-runners-allowed.txt b/.github/larger-runners-allowed.txt
index 10ddf473e6..957dc5f395 100644
--- a/.github/larger-runners-allowed.txt
+++ b/.github/larger-runners-allowed.txt
@@ -1,4 +1,4 @@
-# Opt-out list for scripts/ci/check-no-larger-runners.py (CI: Block larger runners).
+# Opt-out list for scripts/ci/check-no-larger-runners.py (bin/ci --quick, check larger-runners).
#
# GitHub bills larger runners (macOS xlarge/large, Linux or Windows N-core,
# custom larger-runner groups) even on public repositories. Standard runners on
diff --git a/.github/workflows/ci-block-larger-runners.yml b/.github/workflows/ci-block-larger-runners.yml
deleted file mode 100644
index f6c9a60140..0000000000
--- a/.github/workflows/ci-block-larger-runners.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: "CI: Block larger runners"
-
-# GitHub bills larger runners (macOS xlarge, Linux 16-core, Windows 8-core,
-# custom groups) even on public repositories; standard runners are free here.
-# October 2026: $3.4k. This fails any workflow `runs-on` that names one.
-# Opt-outs go in .github/larger-runners-allowed.txt (starts empty).
-# Own fast job until the quick stage (#6465) exists; then move it there.
-
-on:
- pull_request:
- paths:
- - ".github/workflows/**"
- - ".github/larger-runners-allowed.txt"
- - ".github/scripts/check_no_larger_runners.py"
- push:
- branches: [main]
- paths:
- - ".github/workflows/**"
- - ".github/larger-runners-allowed.txt"
- merge_group:
- workflow_dispatch:
-
-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:
- block-larger-runners:
- runs-on: ubuntu-latest
- timeout-minutes: 5
- steps:
- - uses: actions/checkout@v4
- - name: Fail on larger runners
- run: python3 .github/scripts/check_no_larger_runners.py
diff --git a/.github/workflows/ci-check-docs-image-refs.yml b/.github/workflows/ci-check-docs-image-refs.yml
index 730a18aa4f..867e935005 100644
--- a/.github/workflows/ci-check-docs-image-refs.yml
+++ b/.github/workflows/ci-check-docs-image-refs.yml
@@ -7,20 +7,11 @@ name: "CI: Check Docs Image Refs"
# scripts/images/docs-image-refs-baseline.json, which may only shrink. Also
# runs nightly: a nightly image regression flips a ledger entry and turns this
# red until the image is fixed or the guide changes.
+#
+# Pull requests are checked by `CI: Quick` (`bin/ci --quick`, check `docs-image-refs`), so this
+# workflow now runs only on its nightly schedule and on demand (CUA-3558).
on:
- pull_request:
- paths:
- - "docs/**"
- - "skills/**"
- - "README.md"
- - "libs/**/README.md"
- - "libs/cua/crates/cua-image/src/canonical.rs"
- - "libs/cua/crates/cua-image/src/resolve.rs"
- - "scripts/images/check-docs-image-refs.py"
- - "scripts/images/doctor_ledger.py"
- - "scripts/images/docs-image-refs-baseline.json"
- - ".github/workflows/ci-check-docs-image-refs.yml"
schedule:
- cron: "11 7 * * *"
workflow_dispatch:
diff --git a/.github/workflows/ci-check-image-refs.yml b/.github/workflows/ci-check-image-refs.yml
deleted file mode 100644
index 4c099656bf..0000000000
--- a/.github/workflows/ci-check-image-refs.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: "CI: Check Image Refs"
-
-# Every container image reference in the repo (code, tests, samples, CI,
-# Dockerfiles, docs) must come from a source of truth: the shared catalog
-# libs/images/sandbox-images.json, a bench lock pin (libs/images/bench/*/lock.json),
-# or an entry with a reason in scripts/images/image-refs-allowlist.json (legacy,
-# cloud-built, third-party and synthetic test refs). Stale allowlist entries
-# fail too. Offline and fast, so it runs on every pull request. Also checks
-# the constants generated from the catalog (cua_bench/images.py).
-
-on:
- pull_request:
- workflow_dispatch:
-
-permissions:
- contents: read
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
- cancel-in-progress: true
-
-jobs:
- image-refs:
- name: Image refs come from the catalog
- runs-on: ubuntu-latest
- timeout-minutes: 10
- steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- with:
- persist-credentials: false
- - name: Unit tests
- run: python3 -m unittest discover -s scripts/images/tests
- - name: Every image ref is known
- run: python3 scripts/images/check-image-refs.py --inventory "$RUNNER_TEMP/inventory.md"
- - name: Generated image constants are current
- run: python3 scripts/images/gen-image-constants.py --check
- - name: Catalog sizes match the catalog digests
- run: python3 scripts/images/record-image-sizes.py --check
- - name: Inventory
- if: always()
- run: |
- if [ -f "$RUNNER_TEMP/inventory.md" ]; then
- sed -n '1,/^## By image/p' "$RUNNER_TEMP/inventory.md" >>"$GITHUB_STEP_SUMMARY"
- fi
diff --git a/.github/workflows/ci-lint-python.yml b/.github/workflows/ci-lint-python.yml
deleted file mode 100644
index 3e99f281b7..0000000000
--- a/.github/workflows/ci-lint-python.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-name: "CI: Lint Python"
-
-on:
- pull_request:
- paths:
- - "libs/python/**"
- - "pyproject.toml"
- - ".github/workflows/ci-lint-python.yml"
-
-env:
- # Cua programs and packages run here never send usage telemetry.
- CUA_TELEMETRY: "0"
- DO_NOT_TRACK: "1"
-
-permissions:
- contents: read
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
- cancel-in-progress: true
-
-jobs:
- lint:
- name: Python Lint & Format
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: 3.12
-
- - name: Install Python dependencies
- run: |
- pip install uv
- uv sync
-
- - name: Python lint & typecheck
- run: |
- uv run isort --check-only libs/python tests
- uv run black --check libs/python tests
- uv run ruff check libs/python tests
- # Temporarily disabled due to untyped codebase
- # uv run mypy .
diff --git a/.github/workflows/ci-lint-workflows.yml b/.github/workflows/ci-lint-workflows.yml
deleted file mode 100644
index ad80dc7e22..0000000000
--- a/.github/workflows/ci-lint-workflows.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-name: "CI: Lint workflows"
-
-# A workflow that references a context it is not allowed to reference does not
-# fail loudly at the offending step -- GitHub rejects the whole file at parse
-# time, before any job exists. The run shows up as a zero-second failure with no
-# jobs, no log, and no annotation reachable from the API. `cd-macos-golden.yml`
-# sat in that state through fifteen pushes because of a single
-# `if: ${{ secrets.APPLE_ID != '' }}` in a step (`secrets` is legal in a job
-# `if:` expression's cousins but not there). actionlint reports it in
-# milliseconds. Run it on every change to the workflow directory so the next one
-# is caught in review instead of in a dead run.
-
-on:
- pull_request:
- paths:
- - ".github/workflows/**"
- - ".github/actions/**"
- - ".github/actionlint.yaml"
- push:
- branches: [main]
- paths:
- - ".github/workflows/**"
- - ".github/actions/**"
- - ".github/actionlint.yaml"
- workflow_dispatch:
-
-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
- steps:
- - uses: actions/checkout@v4
- - name: Install actionlint
- uses: ./.github/actions/install-actionlint
- - name: Run actionlint
- run: |
- set -euo pipefail
- # shellcheck findings inside `run:` blocks are advisory here; the
- # expression/context errors that kill a workflow outright are not.
- actionlint -shellcheck= -pyflakes=
diff --git a/.github/workflows/ci-lockfiles.yml b/.github/workflows/ci-lockfiles.yml
deleted file mode 100644
index 8252ec7f58..0000000000
--- a/.github/workflows/ci-lockfiles.yml
+++ /dev/null
@@ -1,71 +0,0 @@
-name: "CI: Lockfiles"
-
-# Every committed lockfile (Cargo, pnpm, npm, uv) must match its manifests, so
-# a build or `npm install` never rewrites one. scripts/ci/check-lockfiles.sh
-# discovers the lockfiles, so new workspaces are covered without editing this
-# file. Nothing is built; the check only resolves.
-
-on:
- pull_request:
- paths:
- - "**/Cargo.toml"
- - "**/Cargo.lock"
- - "**/package.json"
- - "**/package-lock.json"
- - "**/pnpm-lock.yaml"
- - "**/pnpm-workspace.yaml"
- - "**/pyproject.toml"
- - "**/uv.lock"
- - "**/rust-toolchain.toml"
- - "scripts/ci/check-lockfiles.sh"
- - "scripts/ci/lockfile-drift-allowlist.txt"
- - ".github/workflows/ci-lockfiles.yml"
- push:
- branches: [main]
- paths:
- - "**/Cargo.toml"
- - "**/Cargo.lock"
- - "**/package.json"
- - "**/package-lock.json"
- - "**/pnpm-lock.yaml"
- - "**/pnpm-workspace.yaml"
- - "**/pyproject.toml"
- - "**/uv.lock"
- - "**/rust-toolchain.toml"
- - "scripts/ci/check-lockfiles.sh"
- - "scripts/ci/lockfile-drift-allowlist.txt"
- - ".github/workflows/ci-lockfiles.yml"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-concurrency:
- group: ci-lockfiles-${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
-env:
- CARGO_NET_RETRY: "10"
- CARGO_HTTP_TIMEOUT: "120"
- CARGO_HTTP_MULTIPLEXING: "false"
-
-jobs:
- lockfiles:
- name: lockfiles match manifests
- runs-on: ubuntu-latest
- timeout-minutes: 30
- steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
- with:
- node-version: "22"
- - name: Pin npm
- # The npm that wrote the committed package-lock.json files.
- run: npm install -g [email protected]
- - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
- - name: List lockfiles
- run: scripts/ci/check-lockfiles.sh --list
- - name: Check lockfiles
- # Each workspace's rust-toolchain.toml is honoured (rustup installs it
- # on first use); pnpm runs at the package.json packageManager version.
- run: scripts/ci/check-lockfiles.sh
diff --git a/.github/workflows/ci-quick.yml b/.github/workflows/ci-quick.yml
index d3a242e17c..6008516c59 100644
--- a/.github/workflows/ci-quick.yml
+++ b/.github/workflows/ci-quick.yml
@@ -61,10 +61,22 @@ jobs:
- name: Install actionlint
if: steps.marker.outputs.cache-hit != 'true'
uses: ./.github/actions/install-actionlint
+ - name: Install crane (only when the docs image refs are checked)
+ if: steps.marker.outputs.cache-hit != 'true'
+ run: |
+ if python3 bin/ci --list --quick --no-install 2>&1 | grep -q '^ docs-image-refs '; then
+ go install github.com/google/go-containerregistry/cmd/[email protected]
+ echo "$(go env GOPATH)/bin" >>"$GITHUB_PATH"
+ fi
- name: bin/ci --quick
if: steps.marker.outputs.cache-hit != 'true'
# --no-install: a check that needs a package's node_modules is skipped here (its own workflow
# still runs it) instead of installing it, which would make this stage slow and network-bound.
+ # CUA_CI_REQUIRE_TOOLS: the checks whose standalone workflows were deleted (spdx, lockfiles,
+ # actionlint, larger runners, image refs, Python lint, rustfmt, docs image refs) fail, never
+ # skip, when a tool is missing on the runner.
+ env:
+ CUA_CI_REQUIRE_TOOLS: "1"
run: python3 bin/ci --quick --no-install
- name: Write the pass marker
if: steps.marker.outputs.cache-hit != 'true'
diff --git a/.github/workflows/ci-rust-format.yml b/.github/workflows/ci-rust-format.yml
deleted file mode 100644
index c0cc80bb4d..0000000000
--- a/.github/workflows/ci-rust-format.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: "CI: Rust format"
-
-on:
- pull_request:
- paths:
- - "libs/cua-driver/rust/**"
- - ".github/workflows/ci-rust-format.yml"
- push:
- branches: [main]
- paths:
- - "libs/cua-driver/rust/**"
- - ".github/workflows/ci-rust-format.yml"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-concurrency:
- group: ci-rust-format-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
- cancel-in-progress: true
-
-env:
- CARGO_NET_RETRY: "10"
- CARGO_HTTP_TIMEOUT: "120"
- CARGO_HTTP_MULTIPLEXING: "false"
-
-jobs:
- format:
- name: Rustfmt (${{ matrix.os }})
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
- runs-on: ${{ matrix.os }}
- timeout-minutes: 10
- steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- - name: Install pinned Rust toolchain
- uses: dtolnay/rust-toolchain@4716b85f2fac3e324e64fa2810f6b5c3905760a5 # 1.97.1
- with:
- components: rustfmt
- - name: Check Rust formatting
- working-directory: libs/cua-driver/rust
- run: cargo fmt --all -- --check
diff --git a/.github/workflows/ci-spdx-headers.yml b/.github/workflows/ci-spdx-headers.yml
deleted file mode 100644
index 8e46d27d2c..0000000000
--- a/.github/workflows/ci-spdx-headers.yml
+++ /dev/null
@@ -1,87 +0,0 @@
-name: "CI: SPDX Headers"
-
-# Two checks. The `fsl` job (enforcing) verifies that every source file in an
-# FSL-1.1-MIT package carries `SPDX-License-Identifier: FSL-1.1-MIT` (see
-# legal/LICENSING.md). The `check` job verifies that every cua-driver source file
-# carries an SPDX-License-Identifier header; it is warn-only
-# (continue-on-error: true) while we stamp the existing tree in a separate
-# sweep PR, and will be flipped to enforcing once the tree is clean. See
-# scripts/spdx-headers.py for the applier and the runbook.
-
-on:
- pull_request:
- paths:
- - "libs/cua-driver/**/*.swift"
- - "libs/cua-driver/**/*.rs"
- - "**/LICENSE"
- - "apps/**"
- - "libs/cua/**"
- - "libs/cua-spacesd/**"
- - "libs/spaces-sdk-swift/**"
- - "libs/spaces-app-swift/**"
- - "libs/python/cua-sandbox/**"
- - "libs/python/cua-sandbox-apps/**"
- - "libs/cua-bench/**"
- - "libs/cua-bench-rl/**"
- - "examples/**"
- - "tests/e2e/**"
- - "scripts/spdx-headers.py"
- - ".github/workflows/ci-spdx-headers.yml"
- push:
- branches: [main]
- paths:
- - "libs/cua-driver/**/*.swift"
- - "libs/cua-driver/**/*.rs"
- - "scripts/spdx-headers.py"
-
-permissions:
- contents: read
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
- cancel-in-progress: true
-
-jobs:
- fsl:
- name: Check FSL SPDX headers
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Check FSL SPDX headers
- # Stamp new files with: python3 scripts/spdx-headers.py --fsl
- run: python3 scripts/spdx-headers.py --fsl --check
-
- check:
- name: Check SPDX headers (warn-only)
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Check SPDX headers
- id: spdx
- continue-on-error: true
- run: python3 scripts/spdx-headers.py --check libs/cua-driver
-
- - name: Show help if check failed
- if: steps.spdx.outcome == 'failure'
- run: |
- echo ""
- echo "╔══════════════════════════════════════════════════════════════════╗"
- echo "║ Missing SPDX-License-Identifier headers ║"
- echo "╠══════════════════════════════════════════════════════════════════╣"
- echo "║ ║"
- echo "║ This check is WARN-ONLY today; it will become enforcing once ║"
- echo "║ the existing tree has been stamped in a follow-up sweep PR. ║"
- echo "║ ║"
- echo "║ To stamp new files locally: ║"
- echo "║ ║"
- echo "║ python3 scripts/spdx-headers.py --apply libs/cua-driver ║"
- echo "║ ║"
- echo "║ To preview without writing: ║"
- echo "║ ║"
- echo "║ python3 scripts/spdx-headers.py --dry-run libs/cua-driver ║"
- echo "║ ║"
- echo "╚══════════════════════════════════════════════════════════════════╝"
diff --git a/.github/workflows/claude-auto-fix.yml b/.github/workflows/claude-auto-fix.yml
index 4e64b22f67..5d4c0c6b73 100644
--- a/.github/workflows/claude-auto-fix.yml
+++ b/.github/workflows/claude-auto-fix.yml
@@ -34,7 +34,6 @@ jobs:
let failedWorkflowName = '';
const workflowFileMap = {
- "CI: Lint Python": "ci-lint-python.yml",
"CI: Lint TypeScript": "ci-lint-typescript.yml",
"CI: Test Python": "ci-test-python.yml",
"CI: Test Scripts": "ci-test-scripts.yml",
diff --git a/bin/ci b/bin/ci
index 4be0221238..e53a12b8bb 100755
--- a/bin/ci
+++ b/bin/ci
@@ -573,34 +573,40 @@ WEB_PACKAGES = [
SYNC_REFS: List[Tuple[str, str, str]] = [
# (check id prefix, workflow, text)
("rust-fmt", "ci-cua-sdk.yml", "-- --check"),
- ("rust-fmt", "ci-rust-format.yml", "cargo fmt --all -- --check"),
("rust-clippy", "ci-cua-sdk.yml", "--all-targets --features cua-daemon/test-fixtures,cua-media-client/media-decode,cua-spaces-cli/contrib-modal -- -D warnings"),
("rust-test", "ci-cua-sdk.yml", "CUA_ENV_TEST_SANDBOX: \"1\""),
- ("python", "ci-lint-python.yml", "uv run isort --check-only libs/python tests"),
- ("python", "ci-lint-python.yml", "uv run black --check libs/python tests"),
- ("python", "ci-lint-python.yml", "uv run ruff check libs/python tests"),
("web:apps/cua-spaces-web", "ci-cua-spaces-web.yml", "pnpm install --ignore-workspace --frozen-lockfile"),
("web:apps/cua-spaces-web", "ci-cua-spaces-web.yml", "run: pnpm typecheck"),
("web:apps/cua-spaces", "ci-cua-spaces.yml", "- run: pnpm typecheck"),
("web:libs/typescript", "ci-lint-typescript.yml", "pnpm -C libs/typescript typecheck"),
("web:libs/typescript", "ci-lint-typescript.yml", "pnpm -C libs/typescript format:check"),
+ # The standalone workflows for spdx, lockfiles, actionlint, larger runners, image refs, Python lint and
+ # rustfmt are gone: `CI: Quick` runs them through this script, with missing tools made fatal.
+ ("quick", "ci-quick.yml", "python3 bin/ci --quick"),
+ ("quick", "ci-quick.yml", 'CUA_CI_REQUIRE_TOOLS: "1"'),
("docs-ref", "ci-check-docs.yml", "runner.ts --changed-files-file"),
("docs-ref", "ci-check-docs.yml", "runner.ts --library ${{ matrix.library }} --check"),
]
+# Checks whose standalone GitHub workflow was deleted because `CI: Quick` runs them (CUA-3558). On a
+# runner (CUA_CI_REQUIRE_TOOLS=1, set by ci-quick.yml) a missing tool fails them instead of skipping
+# them, so a runner image change can never turn one of these checks into a silent pass.
+QUICK_COVERED_IDS = "spdx,spdx-driver,lockfiles,actionlint,larger-runners,image-refs,image-tests,python,rust-fmt,docs-image-refs"
+REQUIRED_TOOL_CHECKS = set(QUICK_COVERED_IDS.split(",")) if os.environ.get("CUA_CI_REQUIRE_TOOLS") == "1" else set()
+
+
+
def static_checks(changes: Changes, ctx: "Context") -> List[Check]:
checks: List[Check] = []
add = checks.append
if changes.touches(r"\.(rs|py|ts|tsx|js|mjs|swift|sh)$|^scripts/spdx-headers\.py$"):
add(Check("spdx", "SPDX headers (FSL)", "python3 scripts/spdx-headers.py --fsl --check",
- fix="python3 scripts/spdx-headers.py --fsl --apply", safe_fix=True,
- ci=(("ci-spdx-headers.yml", "python3 scripts/spdx-headers.py --fsl --check"),)))
+ fix="python3 scripts/spdx-headers.py --fsl --apply", safe_fix=True))
if changes.touches(r"^libs/cua-driver/.*\.(rs|swift)$"):
add(Check("spdx-driver", "SPDX headers (Cua Driver, MIT)", "python3 scripts/spdx-headers.py --check libs/cua-driver",
- fix="python3 scripts/spdx-headers.py --apply libs/cua-driver", safe_fix=True,
- ci=(("ci-spdx-headers.yml", "python3 scripts/spdx-headers.py --check libs/cua-driver"),)))
+ fix="python3 scripts/spdx-headers.py --apply libs/cua-driver", safe_fix=True))
lock_hits = changes.touches(LOCKFILE_RX)
if lock_hits:
@@ -616,35 +622,30 @@ def static_checks(changes: Changes, ctx: "Context") -> List[Check]:
kinds.add("uv")
if re.search(r"^scripts/ci/", f):
kinds.update({"cargo", "pnpm", "npm", "uv"})
- tools = {"cargo": "cargo", "pnpm": "pnpm", "npm": "npm", "uv": "uv"}
+ # check-lockfiles.sh falls back to `npx pnpm@<version>`, so a runner without pnpm still checks.
+ tools = {"cargo": "cargo", "pnpm": "npx", "npm": "npm", "uv": "uv"}
add(Check("lockfiles", f"lockfiles match manifests ({', '.join(sorted(kinds))})",
"scripts/ci/check-lockfiles.sh " + " ".join(f"--kind {k}" for k in sorted(kinds)),
fix_from_output=r"^FAIL .*?; fix: (.+)$", safe_fix=True,
- tools=tuple(sorted(tools[k] for k in kinds)), group="lockfiles",
- ci=(("ci-lockfiles.yml", "scripts/ci/check-lockfiles.sh"),)))
+ tools=tuple(sorted(tools[k] for k in kinds)), group="lockfiles"))
if changes.touches(r"^\.github/(workflows|actions)/|^\.github/actionlint\.yaml$"):
add(Check("actionlint", "actionlint (workflows)", "actionlint -shellcheck= -pyflakes=",
- tools=("actionlint",), hint="install: brew install actionlint (CI pins v1.7.12)",
- ci=(("ci-lint-workflows.yml", "actionlint -shellcheck= -pyflakes="),)))
+ tools=("actionlint",), hint="install: brew install actionlint (CI pins v1.7.12)"))
if changes.touches(r"^\.github/(workflows/|larger-runners-allowed\.txt|scripts/check_no_larger_runners\.py)"):
add(Check("larger-runners", "no paid larger runners in workflows",
"python3 .github/scripts/check_no_larger_runners.py",
- hint="use ubuntu-latest, macos-26 or windows-latest; opt-outs: .github/larger-runners-allowed.txt",
- ci=(("ci-block-larger-runners.yml", "check_no_larger_runners.py"),)))
+ hint="use ubuntu-latest, macos-26 or windows-latest; opt-outs: .github/larger-runners-allowed.txt"))
# Repo-wide gate (no path filter in CI): every image ref comes from the catalog.
if changes.files or changes.full:
add(Check("image-refs", "image refs come from the catalog",
"python3 scripts/images/check-image-refs.py && python3 scripts/images/gen-image-constants.py --check "
"&& python3 scripts/images/record-image-sizes.py --check",
- hint="reference images through the catalog (scripts/images/README.md) or allowlist them in scripts/images/image-refs-allowlist.json; stale constants: python3 scripts/images/gen-image-constants.py",
- ci=(("ci-check-image-refs.yml", "python3 scripts/images/check-image-refs.py"),
- ("ci-check-image-refs.yml", "python3 scripts/images/gen-image-constants.py --check"))))
+ hint="reference images through the catalog (scripts/images/README.md) or allowlist them in scripts/images/image-refs-allowlist.json; stale constants: python3 scripts/images/gen-image-constants.py"))
if changes.touches(r"^(scripts/images/|libs/images/)"):
- add(Check("image-tests", "image tooling unit tests", "python3 -m unittest discover -s scripts/images/tests",
- ci=(("ci-check-image-refs.yml", "python3 -m unittest discover -s scripts/images/tests"),)))
+ add(Check("image-tests", "image tooling unit tests", "python3 -m unittest discover -s scripts/images/tests"))
if changes.touches(r"^docs/content/|^docs/code-block-(baseline|policy)\.json$|^tests/e2e/cua-sdk/docs/"):
add(Check("docs-code-blocks", "docs code blocks have a disposition",
@@ -660,8 +661,7 @@ def static_checks(changes: Changes, ctx: "Context") -> List[Check]:
f'git fetch -q origin image-doctor-ledger 2>/dev/null && git archive FETCH_HEAD | tar -x -C "$l" || true; '
f'b="$l/.base.json"; args=(--ledger "$l"); git show {changes.base}:scripts/images/docs-image-refs-baseline.json > "$b" 2>/dev/null && args+=(--baseline-base "$b"); '
f'python3 scripts/images/check-docs-image-refs.py "${{args[@]}}"',
- tools=("crane",), hint="install crane: brew install crane",
- ci=(("ci-check-docs-image-refs.yml", "python3 scripts/images/check-docs-image-refs.py"),))
+ tools=("crane",), hint="install crane: brew install crane")
add(c)
# Generated reference docs: the docs runner itself says which generators a change affects.
@@ -744,10 +744,7 @@ def python_checks(changes: Changes) -> List[Check]:
return [Check("python", "Python isort, black, ruff (libs/python, tests)",
f"uv run -q isort --check-only {paths} && uv run -q black --check {paths} && uv run -q ruff check {paths}",
fix=f"uv run -q isort {paths} && uv run -q black {paths} && uv run -q ruff check --fix {paths}",
- safe_fix=True, tools=("uv",), group="uv",
- ci=(("ci-lint-python.yml", "uv run isort --check-only libs/python tests"),
- ("ci-lint-python.yml", "uv run black --check libs/python tests"),
- ("ci-lint-python.yml", "uv run ruff check libs/python tests")))]
+ safe_fix=True, tools=("uv",), group="uv")]
def web_checks(changes: Changes) -> List[Check]:
@@ -825,8 +822,7 @@ def rust_checks(changes: Changes, ctx: "Context") -> List[Check]:
label = f"{root}: {', '.join(names) if len(names) <= 4 else f'{len(names)} crates'}"
group = f"cargo:{root}"
out.append(Check(f"rust-fmt:{root}", f"rustfmt ({label})", f"cargo fmt {plist} -- --check", cwd=root,
- fix=f"(cd {root} && cargo fmt {plist})", safe_fix=True, tools=("cargo",),
- ci=(("ci-rust-format.yml", "cargo fmt --all -- --check"),)))
+ fix=f"(cd {root} && cargo fmt {plist})", safe_fix=True, tools=("cargo",)))
lint = names + ([] if changes.full else dependents(ws, names))
if not changes.full and len(lint) > len(names) + 12: # a core crate: lint its direct dependents only
direct = sorted({p for p, deps in ws.path_deps.items() if set(deps) & set(names)} - set(names))
@@ -957,6 +953,8 @@ def build_plan(changes: Changes, ctx: Context) -> List[Check]:
c.skip_reason = "--quick"
continue
missing = [t for t in c.tools if not have(t)]
+ if missing and c.id.split(":")[0] in REQUIRED_TOOL_CHECKS:
+ continue # CI: a missing tool must fail the check, never skip it (the standalone workflow is gone)
if missing:
c.skip_reason = f"{', '.join(missing)} not installed" + (f"; {c.hint}" if c.hint and "install" in c.hint else "")
return plan
diff --git a/docs/contributing/CI.md b/docs/contributing/CI.md
index b090f3a256..1c1b7d8542 100644
--- a/docs/contributing/CI.md
+++ b/docs/contributing/CI.md
@@ -20,6 +20,12 @@ each failure. Run it before you push. It catches in minutes what otherwise costs
- Python isort, black and ruff; TypeScript typecheck, tests and the design lint for the web packages you touched;
- actionlint for workflows, SPDX headers, and the unit tests of the crates you changed.
+`CI: Quick` runs `bin/ci --quick` on every pull request, so these checks have no workflow of their own: SPDX
+headers, lockfiles, actionlint, the larger-runner ban, image refs, Python lint, rustfmt and the docs image
+refs (the last also runs nightly in `ci-check-docs-image-refs.yml`). On the runner a missing tool fails them
+(`CUA_CI_REQUIRE_TOOLS=1`) instead of skipping them, and `bin/ci --verify-sync` fails if `ci-quick.yml`
+stops running `bin/ci --quick`. Do not add a workflow that repeats one of them.
+
```bash
bin/ci # the checks your change affects (compares with the merge base with origin/main)
bin/ci --quick # only checks that build nothing: seconds
diff --git a/docs/contributing/TESTING.md b/docs/contributing/TESTING.md
index ee1d00fac0..a11e2fd696 100644
--- a/docs/contributing/TESTING.md
+++ b/docs/contributing/TESTING.md
@@ -19,7 +19,7 @@ truth.
| Cua Spaces app | Vitest, Tauri Rust tests | **CI: Cua Spaces** |
| Installers | `scripts/install/tests` | **CI: Installers** smoke jobs on Linux, macOS, and Windows |
| Public docs | Generator drift, hygiene, links, and production build | Rendered Fumadocs site |
-| Images and sandboxes | Component build and schema tests; **CI: Check Image Refs** (`python3 scripts/images/check-image-refs.py`: every image ref comes from `libs/images/sandbox-images.json`, a bench lock or the allowlist; frozen legacy names only in their listed paths) | **CD: Image linux**, image smoke tests |
+| Images and sandboxes | Component build and schema tests; the image-refs check in `bin/ci --quick` (`python3 scripts/images/check-image-refs.py`: every image ref comes from `libs/images/sandbox-images.json`, a bench lock or the allowlist; frozen legacy names only in their listed paths) | **CD: Image linux**, image smoke tests |
Path-filtered CI avoids running unrelated operating systems, so a green job for
one component does not validate another component.
diff --git a/libs/images/README.md b/libs/images/README.md
index 822b2a5c39..b9ff52dc1b 100644
--- a/libs/images/README.md
+++ b/libs/images/README.md
@@ -74,7 +74,7 @@ Pass the same `--stamp` (and `--work`, when set) to every run of one release. `t
`sandbox-images.json` is the one list of images the repo points at: the apps, the CLI (`cua images ls`), the docs tables and cua-bench read it. Benchmark entries name their `bench/<id>/lock.json` pins and the benchmarks they run.
- A new or renamed tag goes in `sandbox-images.json` first. Then run `pnpm --dir docs docs:generate:sandbox` and `python3 scripts/images/gen-image-constants.py`.
-- `scripts/images/check-image-refs.py` (**CI: Check Image Refs**) fails on any image ref in code, tests, CI, Dockerfiles or docs that is not a catalog entry, a lock pin, or a reasoned entry of `scripts/images/image-refs-allowlist.json` (legacy, cloud-built, third-party and synthetic test refs). Unused allowlist entries fail too.
+- `scripts/images/check-image-refs.py` (the image-refs check in `bin/ci --quick`) fails on any image ref in code, tests, CI, Dockerfiles or docs that is not a catalog entry, a lock pin, or a reasoned entry of `scripts/images/image-refs-allowlist.json` (legacy, cloud-built, third-party and synthetic test refs). Unused allowlist entries fail too.
- Docs pages list images through generated regions (`GENERATED:catalog-cua-images`, `GENERATED:catalog-benchmarks`), not hand-typed tables.
## One definition, two outputs