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: enforce Cua Driver installer certification

Francesco Bonacci38ec4b3639a5
diff --git a/.github/scripts/tests/test_cua_driver_release_wiring.py b/.github/scripts/tests/test_cua_driver_release_wiring.py
index bc5efdb8f2..c775e6a188 100644
--- a/.github/scripts/tests/test_cua_driver_release_wiring.py
+++ b/.github/scripts/tests/test_cua_driver_release_wiring.py
@@ -430,8 +430,7 @@ class TestCuaDriverReleaseWiring(unittest.TestCase):
".github/workflows/ci-cua-driver-installer-compat.yml"
)
- self.assertIn("pull_request:\n", workflow)
- self.assertNotIn("pull_request:\n paths:", workflow)
+ self.assertIn("workflow_call:\n", workflow)
self.assertIn("Installer compatibility summary", workflow)
self.assertIn("ubuntu-latest, macos-26, windows-latest", workflow)
self.assertIn("repos/$GITHUB_REPOSITORY/releases?per_page=100", workflow)
@@ -440,6 +439,18 @@ class TestCuaDriverReleaseWiring(unittest.TestCase):
self.assertIn("-NoAutoStart", workflow)
self.assertIn('CUA_DRIVER_RS_TELEMETRY_ENABLED: "false"', workflow)
+ release_metadata = self.read(
+ ".github/workflows/ci-release-metadata.yml"
+ )
+ self.assertIn(
+ "uses: ./.github/workflows/ci-cua-driver-installer-compat.yml",
+ release_metadata,
+ )
+ self.assertIn(
+ "validate:\n needs: installer-compatibility",
+ release_metadata,
+ )
+
def test_lume_uses_the_same_draft_finalizer(self) -> None:
workflow = self.read(".github/workflows/cd-swift-lume.yml")
diff --git a/.github/workflows/ci-cua-driver-installer-compat.yml b/.github/workflows/ci-cua-driver-installer-compat.yml
index 812c44e9b5..e1b4ff2f5d 100644
--- a/.github/workflows/ci-cua-driver-installer-compat.yml
+++ b/.github/workflows/ci-cua-driver-installer-compat.yml
@@ -1,7 +1,13 @@
name: "CI: Cua Driver installer compatibility"
on:
- pull_request:
+ workflow_call:
+ inputs:
+ versions:
+ description: "Comma-separated released versions; blank tests the newest two"
+ required: false
+ type: string
+ default: ""
schedule:
- cron: "17 9 * * 1"
workflow_dispatch:
diff --git a/.github/workflows/ci-release-metadata.yml b/.github/workflows/ci-release-metadata.yml
index 901d809b18..88a2bda2a8 100644
--- a/.github/workflows/ci-release-metadata.yml
+++ b/.github/workflows/ci-release-metadata.yml
@@ -10,7 +10,14 @@ permissions:
pull-requests: read
jobs:
+ installer-compatibility:
+ uses: ./.github/workflows/ci-cua-driver-installer-compat.yml
+ permissions:
+ contents: read
+ pull-requests: read
+
validate:
+ needs: installer-compatibility
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
diff --git a/.github/workflows/ci-test-scripts.yml b/.github/workflows/ci-test-scripts.yml
index 10d56bf926..f51c44050f 100644
--- a/.github/workflows/ci-test-scripts.yml
+++ b/.github/workflows/ci-test-scripts.yml
@@ -9,6 +9,7 @@ on:
- ".github/release-backfill/**"
- ".github/workflows/cd-rust-cua-driver.yml"
- ".github/workflows/ci-cua-driver-installer-compat.yml"
+ - ".github/workflows/ci-release-metadata.yml"
- ".github/workflows/cd-swift-lume.yml"
- ".github/workflows/release-please.yml"
- ".github/workflows/release-bump-version.yml"