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-driver): let rebuild dispatches pass the macOS hosted gate (#6613)
Francesco Bonaccid78af6e3efc6
diff --git a/.github/scripts/tests/test_cua_perception_pr_review_trigger.py b/.github/scripts/tests/test_cua_perception_pr_review_trigger.pyindex 1142e6a7c2..ad2d8ee2d9 100644--- a/.github/scripts/tests/test_cua_perception_pr_review_trigger.py+++ b/.github/scripts/tests/test_cua_perception_pr_review_trigger.py@@ -171,9 +171,12 @@ def test_macos_direct_lume_registration_is_manual_and_not_pr_event_chained() ->entry_text, entry_workflow = load_workflow(MACOS_ENTRY)entry_triggers = triggers(entry_workflow)assert set(entry_triggers) == {"workflow_dispatch", "workflow_call"}- # The release-gate call exposes only the hosted source SHA; direct Lume+ # The release-gate call exposes only the hosted source SHA and the rebuild flag; direct Lume# registration stays a manual dispatch.- assert set(entry_triggers["workflow_call"]["inputs"]) == {"source_sha"}+ assert set(entry_triggers["workflow_call"]["inputs"]) == {+ "source_sha",+ "rebuild_of_released_source",+ }assert entry_workflow["jobs"]["register-lume"]["if"] == "inputs.mode == 'lume'"callers = sorted(path.namediff --git a/.github/workflows/cd-rust-cua-driver.yml b/.github/workflows/cd-rust-cua-driver.ymlindex 0c0db548ad..663e357c11 100644--- a/.github/workflows/cd-rust-cua-driver.yml+++ b/.github/workflows/cd-rust-cua-driver.yml@@ -1287,6 +1287,7 @@ jobs:uses: ./.github/workflows/e2e-rust-macos.ymlwith:source_sha: ${{ inputs.channel == 'nightly' && inputs.source_ref || inputs.rebuild_sha || github.sha }}+ rebuild_of_released_source: ${{ inputs.channel != 'nightly' && inputs.rebuild_sha != '' }}e2e-standalone-browsers:name: release gate / standalone browser E2Ediff --git a/.github/workflows/e2e-rust-macos.yml b/.github/workflows/e2e-rust-macos.ymlindex a72ff3c2f3..c99b386e57 100644--- a/.github/workflows/e2e-rust-macos.yml+++ b/.github/workflows/e2e-rust-macos.yml@@ -12,6 +12,11 @@ on:description: "Full 40-character commit SHA to certify"required: truetype: string+ rebuild_of_released_source:+ description: "Rebuild dispatch: certify an already-tagged source SHA with the workflow from a newer ref"+ required: false+ type: boolean+ default: falseworkflow_dispatch:inputs:source_sha:@@ -67,6 +72,7 @@ jobs:env:CUA_E2E_SOURCE_SHA: ${{ inputs.source_sha }}CUA_E2E_WORKFLOW_SHA: ${{ github.sha }}+ CUA_E2E_REBUILD: ${{ inputs.rebuild_of_released_source && 'true' || 'false' }}steps:- name: Initialize evidence directory@@ -88,7 +94,7 @@ jobs:fisource_sha_lower="$(printf '%s' "${CUA_E2E_SOURCE_SHA}" | tr '[:upper:]' '[:lower:]')"workflow_sha_lower="$(printf '%s' "${CUA_E2E_WORKFLOW_SHA}" | tr '[:upper:]' '[:lower:]')"- if [[ "${source_sha_lower}" != "${workflow_sha_lower}" ]]; then+ if [[ "${source_sha_lower}" != "${workflow_sha_lower}" && "${CUA_E2E_REBUILD}" != "true" ]]; thenecho "source_sha must match the selected workflow ref tip (${CUA_E2E_WORKFLOW_SHA})" >&2exit 2fi@@ -141,6 +147,7 @@ jobs:env:CUA_E2E_SOURCE_SHA: ${{ inputs.source_sha }}CUA_E2E_WORKFLOW_SHA: ${{ github.sha }}+ CUA_E2E_REBUILD: ${{ inputs.rebuild_of_released_source && 'true' || 'false' }}CUA_E2E_INTERNAL_LANE: ${{ matrix.lane }}steps:@@ -154,7 +161,7 @@ jobs:fisource_sha_lower="$(printf '%s' "${CUA_E2E_SOURCE_SHA}" | tr '[:upper:]' '[:lower:]')"workflow_sha_lower="$(printf '%s' "${CUA_E2E_WORKFLOW_SHA}" | tr '[:upper:]' '[:lower:]')"- if [[ "${source_sha_lower}" != "${workflow_sha_lower}" ]]; then+ if [[ "${source_sha_lower}" != "${workflow_sha_lower}" && "${CUA_E2E_REBUILD}" != "true" ]]; thenecho "source_sha must match the selected workflow ref tip (${CUA_E2E_WORKFLOW_SHA})" >&2exit 2fi