Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
ci(cua-sandbox): skip periodic live E2E on forks (#3055)
r33drichards0443e13f364d
diff --git a/.github/scripts/tests/test_periodic_cua_sandbox_live.py b/.github/scripts/tests/test_periodic_cua_sandbox_live.pyindex d27aac2b98..0952fe7e06 100644--- a/.github/scripts/tests/test_periodic_cua_sandbox_live.py+++ b/.github/scripts/tests/test_periodic_cua_sandbox_live.py@@ -79,6 +79,15 @@ class TestPeriodicCuaSandboxLive(unittest.TestCase):self.assertIn('"lane":"main-source"', prepare_script)self.assertIn('"lane":"published-package"', prepare_script)+ def test_jobs_only_run_in_the_upstream_repository(self) -> None:+ workflow = self.workflow()+ for job_name in ("prepare", "live"):+ with self.subTest(job=job_name):+ self.assertEqual(+ workflow["jobs"][job_name]["if"],+ "github.repository == 'trycua/cua'",+ )+def test_prepare_matrix_selects_lanes_for_each_trigger(self) -> None:expected_matrices = {("push", ""): {"include": [{"lane": "main-source"}]},@@ -119,6 +128,7 @@ class TestPeriodicCuaSandboxLive(unittest.TestCase):)required_contract = ("libs/python/cua-fleet/**",+ "github.repository == 'trycua/cua'","Check Fleet OAuth credentials","step-scoped OAuth credentials","CUA_LIVE_E2E_SOURCE_SHA",diff --git a/.github/workflows/periodic-cua-sandbox-live.yml b/.github/workflows/periodic-cua-sandbox-live.ymlindex 3844e4743c..e1b7254054 100644--- a/.github/workflows/periodic-cua-sandbox-live.yml+++ b/.github/workflows/periodic-cua-sandbox-live.yml@@ -29,6 +29,7 @@ permissions:jobs:prepare:+ if: github.repository == 'trycua/cua'runs-on: ubuntu-latestoutputs:matrix: ${{ steps.matrix.outputs.matrix }}@@ -50,6 +51,7 @@ jobs:echo "matrix=$matrix" >> "$GITHUB_OUTPUT"live:+ if: github.repository == 'trycua/cua'needs: prepareruns-on: ubuntu-latesttimeout-minutes: 25diff --git a/docs/superpowers/plans/2026-08-09-periodic-cua-sandbox-live-e2e.md b/docs/superpowers/plans/2026-08-09-periodic-cua-sandbox-live-e2e.mdindex 0c9655eed4..ccbea35f42 100644--- a/docs/superpowers/plans/2026-08-09-periodic-cua-sandbox-live-e2e.md+++ b/docs/superpowers/plans/2026-08-09-periodic-cua-sandbox-live-e2e.md@@ -545,6 +545,11 @@ on:- ".github/scripts/tests/test_periodic_cua_sandbox_live.py"```+Both the `prepare` and `live` jobs carry+`if: github.repository == 'trycua/cua'`, so a fork that syncs `main` or+enables the schedule cannot run the live smoke or post a fork-originated+alert to Alertmanager.+The `prepare` job emits `main-source` for every `push`, both lanes for`schedule`, and the requested `workflow_dispatch` lane. The contract testextracts this shell script from parsed YAML, runs it with a temporarydiff --git a/docs/superpowers/specs/2026-08-09-periodic-cua-sandbox-live-e2e-design.md b/docs/superpowers/specs/2026-08-09-periodic-cua-sandbox-live-e2e-design.mdindex 9cb325f45b..ca5a6eaed9 100644--- a/docs/superpowers/specs/2026-08-09-periodic-cua-sandbox-live-e2e-design.md+++ b/docs/superpowers/specs/2026-08-09-periodic-cua-sandbox-live-e2e-design.md@@ -52,6 +52,11 @@ testing the current Fleet-backed public SDK contract.3. `workflow_dispatch` accepts `both`, `main-source`, or `published-package`,plus manual-only `force_failure`.+Both jobs are guarded with `if: github.repository == 'trycua/cua'`. A fork+that syncs `main` or enables the schedule therefore never runs the live smoke,+never fails the credential preflight, and never posts a fork-originated+`PeriodicCuaSandboxLiveE2EFailed` alert to the public Alertmanager endpoint.+The preparation script emits a JSON matrix: every `push` selects only`main-source`; every `schedule` selects both lanes; manual runs select theirrequested lane or both. The workflow contract executes this extracted shell@@ -206,7 +211,8 @@ source regression with a published-package or shared-infrastructure failure.## Workflow Contract CoverageThe repository-side contract parses the workflow with `yaml.BaseLoader` and-asserts triggers, path filters, the executed preparation matrix, checkout ref,+asserts triggers, path filters, the upstream-repository fork guard on both+jobs, the executed preparation matrix, checkout ref,event-and-lane concurrency, credential preflight, copied-suite isolation,version output handling, controlled-failure diagnostics, failure-only artifacts,Alertmanager labels, full-SHA action pins, and absence of explicit deletion.