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
fix(ci): give the shared Electron + Tauri E2E leg its own sccache family (#6449)
injaneitya67733c9aa7b
diff --git a/.github/scripts/tests/test_e2e_rust_linux_workflow.py b/.github/scripts/tests/test_e2e_rust_linux_workflow.pyindex b403ae1904..698b07e80e 100644--- a/.github/scripts/tests/test_e2e_rust_linux_workflow.py+++ b/.github/scripts/tests/test_e2e_rust_linux_workflow.py@@ -321,3 +321,16 @@ def test_cache_saves_never_write_pull_request_scope_but_keep_dispatches() -> Non)== 4)+++def test_shared_leg_keeps_its_own_sccache_family() -> None:+ """The release driver and Tauri units of the shared leg live in their own entry.++ In the default libs-cua-driver-rust family the day's entry is saved first by+ debug-only unit jobs; the shared leg then gets an exact hit, never saves, and+ rebuilds its release units on every run.+ """+ workflow = WORKFLOW.read_text(encoding="utf-8")+ shared = workflow.split("\n shared:\n", 1)[1].split("\n native:\n", 1)[0]+ assert "shared-key: cua-driver-e2e-shared" in shared+ assert workflow.count("shared-key: cua-driver-e2e-shared") == 1diff --git a/.github/scripts/tests/test_e2e_rust_windows_workflow.py b/.github/scripts/tests/test_e2e_rust_windows_workflow.pyindex 3caa3e2f91..efd926bd74 100644--- a/.github/scripts/tests/test_e2e_rust_windows_workflow.py+++ b/.github/scripts/tests/test_e2e_rust_windows_workflow.py@@ -127,3 +127,16 @@ def test_cache_saves_never_write_pull_request_scope_but_keep_dispatches() -> Non)== 1)+++def test_shared_leg_keeps_its_own_sccache_family() -> None:+ """Same invariant as the Linux matrix: the shared leg saves its own entry."""+ workflow = yaml.safe_load(WORKFLOW.read_text(encoding="utf-8"))+ families = {+ name: step["with"].get("shared-key")+ for name, job in workflow["jobs"].items()+ for step in job.get("steps", [])+ if step.get("uses") == "./.github/actions/rust-cache"+ }+ assert families["shared"] == "cua-driver-e2e-shared"+ assert list(families.values()).count("cua-driver-e2e-shared") == 1diff --git a/.github/workflows/e2e-rust-linux.yml b/.github/workflows/e2e-rust-linux.ymlindex fc598dae13..c84d8c7559 100644--- a/.github/workflows/e2e-rust-linux.yml+++ b/.github/workflows/e2e-rust-linux.yml@@ -153,10 +153,13 @@ jobs:with:ref: ${{ needs.source.outputs.sha }}- uses: dtolnay/rust-toolchain@4716b85f2fac3e324e64fa2810f6b5c3905760a5 # 1.97.1+ # Own family: in libs-cua-driver-rust the day's entry is saved first by+ # debug-only unit jobs, this job then gets an exact hit and never saves,+ # so its release driver and Tauri units missed on every run.- uses: ./.github/actions/rust-cachewith:workspaces: "libs/cua-driver/rust -> target"- key: e2e-shared+ shared-key: cua-driver-e2e-sharedsave-if: ${{ github.event_name != 'pull_request' && needs.source.outputs.sha == github.sha }}- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4with:diff --git a/.github/workflows/e2e-rust-windows.yml b/.github/workflows/e2e-rust-windows.ymlindex f2e38b021b..5fc8e00e66 100644--- a/.github/workflows/e2e-rust-windows.yml+++ b/.github/workflows/e2e-rust-windows.yml@@ -97,10 +97,11 @@ jobs:with:ref: ${{ needs.source.outputs.sha }}- uses: dtolnay/rust-toolchain@4716b85f2fac3e324e64fa2810f6b5c3905760a5 # 1.97.1+ # Own family for the same reason as the Linux shared leg.- uses: ./.github/actions/rust-cachewith:workspaces: "libs/cua-driver/rust -> target"- key: e2e-shared+ shared-key: cua-driver-e2e-sharedsave-if: ${{ github.event_name != 'pull_request' && needs.source.outputs.sha == github.sha && inputs.runner == 'windows-latest' }}- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4with: