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: fix SDK checks on main (Swift contract tools, Windows disk-guard test) (#6151)

cua-agents[bot]d7973741fe88
diff --git a/libs/cua/crates/cua-cli/tests/cache.rs b/libs/cua/crates/cua-cli/tests/cache.rs
index c122f3dc58..88168a4edd 100644
--- a/libs/cua/crates/cua-cli/tests/cache.rs
+++ b/libs/cua/crates/cua-cli/tests/cache.rs
@@ -215,6 +215,8 @@ async fn orphaned_ephemeral_sandboxes_are_reaped_on_the_next_cli_run() {
assert!(base.exists());
}
+// Windows has no QEMU runtime here, so the runtime check fails before the disk guard.
+#[cfg(not(windows))]
#[tokio::test]
async fn low_disk_guard_fails_typed_with_a_prune_hint() {
let mut h = home();
diff --git a/libs/spaces-sdk-swift/Tests/CuaSpacesTests/CuaBackedTests.swift b/libs/spaces-sdk-swift/Tests/CuaSpacesTests/CuaBackedTests.swift
index e5817eb895..f5c5b12964 100644
--- a/libs/spaces-sdk-swift/Tests/CuaSpacesTests/CuaBackedTests.swift
+++ b/libs/spaces-sdk-swift/Tests/CuaSpacesTests/CuaBackedTests.swift
@@ -220,7 +220,9 @@ struct Fixtures {
spacesHome: work.appendingPathComponent("cua").path,
teleportHome: fx.fields["teleport_host_home"])
let tools = try await connection.availableTools()
- XCTAssertEqual(Set(tools), Set(SpacesConnection.contractTools))
+ // `cloud_approve` is person-only: it is in the contract but never
+ // served as a tool.
+ XCTAssertEqual(Set(tools), Set(SpacesConnection.contractTools).subtracting(["cloud_approve"]))
try await exercise(connection, fx, work: work, keyvault: false)
}