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.

chore(infra): remove the fleets-wif-smoke Terraform (CUA-1836) (#5455)

Francesco Bonaccibf7acfcd1cd7
diff --git a/.github/workflows/ci-public-containerdisk-refs.yml b/.github/workflows/ci-public-containerdisk-refs.yml
index 6dd674c41f..9bbc16e761 100644
--- a/.github/workflows/ci-public-containerdisk-refs.yml
+++ b/.github/workflows/ci-public-containerdisk-refs.yml
@@ -5,7 +5,6 @@ on:
paths:
- ".github/workflows/ci-public-containerdisk-refs.yml"
- "docs/content/docs/how-to-guides/sandbox/**"
- - "infra/fleets-wif-smoke/**"
- "libs/fleet/backend/auth/**"
- "tests/test_public_containerdisk_refs.py"
diff --git a/infra/fleets-wif-smoke/README.md b/infra/fleets-wif-smoke/README.md
deleted file mode 100644
index d5f4ee7f04..0000000000
--- a/infra/fleets-wif-smoke/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Cua CLI GitHub WIF smoke pool
-
-This stack keeps the `cua-cli-wif-smoke` Fleet pool and namespace available at zero replicas and authorizes GitHub Actions workflows from `trycua/cua` to claim it through GitHub WIF.
-
-Apply it with the manual `Infra: Fleets WIF smoke pool` workflow. The workflow builds `trycua/terraform-provider-fleets` at the pinned merged commit until `trycua/fleets` is published in the Terraform Registry.
-
-The apply job uses a dedicated user-owned Fleets key stored as protected repository secrets:
-
-- `FLEETS_TERRAFORM_CLIENT_ID`
-- `FLEETS_TERRAFORM_CLIENT_SECRET`
-- `FLEETS_TERRAFORM_TOKEN_URL`
-
-The pool starts at zero replicas. The daily smoke workflow scales it to one, claims a UUID-suffixed sandbox, runs commands through `cua sb exec`, deletes the claim, and suspends the pool back to zero replicas.
-
-If the pool was previously created with different credentials, manually dispatch the apply workflow once with `recreate_pool` enabled. The recovery deletes only the managed pool with the original bootstrap credentials, then recreates the pool and trust policy under the dedicated owner key.
diff --git a/infra/fleets-wif-smoke/main.tf b/infra/fleets-wif-smoke/main.tf
deleted file mode 100644
index 8fc8833a45..0000000000
--- a/infra/fleets-wif-smoke/main.tf
+++ /dev/null
@@ -1,46 +0,0 @@
-terraform {
- backend "s3" {
- bucket = "cloud-terraform-state-bc8146107c2d77da"
- key = "cua/fleets-wif-smoke/terraform.tfstate"
- region = "us-west-2"
- dynamodb_table = "cloud-terraform-lock-bc8146107c2d77da"
- encrypt = true
- }
-
- required_providers {
- fleets = {
- source = "trycua/fleets"
- version = "1.0.0"
- }
- }
-}
-
-provider "fleets" {
- endpoint = "https://run.cua.ai"
-}
-
-resource "fleets_pool" "cua_cli_wif_smoke" {
- name = "cua-cli-wif-smoke"
- replicas = 0
- cpu_cores = 4
- memory = "8Gi"
- container_disk_image = "public.ecr.aws/k5j5w0x5/cua-ubuntu-24.04:latest"
- readiness_probe_json = jsonencode({ tcpSocket = { port = 8000 } })
-
- service {
- name = "server"
- target_port = 8000
- protocol = "TCP"
- }
-}
-
-resource "fleets_github_trust_policy" "cua_cli_wif_smoke" {
- name = "cua-cli-wif-smoke"
- repository = "trycua/cua"
-
- allowed_namespaces = [
- fleets_pool.cua_cli_wif_smoke.name,
- ]
-
- enabled = true
-}
diff --git a/scripts/images/image-refs-allowlist.json b/scripts/images/image-refs-allowlist.json
index 188fe9b94d..325723d850 100644
--- a/scripts/images/image-refs-allowlist.json
+++ b/scripts/images/image-refs-allowlist.json
@@ -537,7 +537,6 @@
"public.ecr.aws/k5j5w0x5/cua-ubuntu-24.04:latest": {
"reason": "cloud-built Fleet workspace image (owned and gated by the cloud repo's image doctor); pinned by live tests, fixtures and the qualified-image facts",
"paths": [
- "infra/fleets-wif-smoke/main.tf",
"libs/cua/crates/cua-sandbox-core/src/fleet_local.rs",
"scripts/images/test-check-tag-safety.sh",
"tests/e2e/local-runtimes/fleet-catalog.public.json"