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(release): stop Release Please for deprecated and archived packages (CUA-3571) (#6665)

Francesco Bonaccia043b584b2c1
diff --git a/.github/scripts/merge_release_please_manifests.py b/.github/scripts/merge_release_please_manifests.py
index 6dea50ff13..f8606b7f4d 100644
--- a/.github/scripts/merge_release_please_manifests.py
+++ b/.github/scripts/merge_release_please_manifests.py
@@ -17,15 +17,7 @@ COMPONENT_PATHS = {
"cua-spacesd": "libs/cua-spacesd",
"cua-sdk": "libs/cua",
"cua-spaces": "apps/cua-spaces-macos",
- "agent": "libs/python/agent",
- "core": "libs/python/core",
"bench": "libs/cua-bench",
- "bench-ui": "libs/python/bench-ui",
- "som": "libs/python/som",
- "sandbox-apps": "libs/python/cua-sandbox-apps",
- "npm-core": "libs/typescript/core",
- "npm-playground": "libs/typescript/playground",
- "cuabot": "libs/cuabot",
}
diff --git a/.github/scripts/release_notes.py b/.github/scripts/release_notes.py
index 05edba6606..017ba0f0b1 100644
--- a/.github/scripts/release_notes.py
+++ b/.github/scripts/release_notes.py
@@ -47,29 +47,13 @@ DISPLAY_NAMES = {
"cua-sdk": "cua SDK",
"cua-spacesd": "cua-spacesd",
"sandbox": "Cua Sandbox",
- "agent": "Cua Agent",
- "core": "Cua Core",
"bench": "Cua Bench",
- "bench-ui": "Cua Bench UI",
- "som": "Cua SOM",
- "sandbox-apps": "Cua Sandbox Apps",
- "npm-core": "@trycua/core",
- "npm-playground": "@trycua/playground",
- "cuabot": "CuaBot",
}
# component -> (registry, package); the footer names the exact published version.
INSTALL = {
"cua-sdk": (("pypi", "cua"), ("npm", "@trycua/cua")),
"sandbox": (("pypi", "cua-sandbox"),),
- "agent": (("pypi", "cua-agent"),),
- "core": (("pypi", "cua-core"),),
"bench": (("pypi", "cua-bench"),),
- "bench-ui": (("pypi", "cua-bench-ui"),),
- "som": (("pypi", "cua-som"),),
- "sandbox-apps": (("pypi", "cua-sandbox-apps"),),
- "npm-core": (("npm", "@trycua/core"),),
- "npm-playground": (("npm", "@trycua/playground"),),
- "cuabot": (("npm", "cuabot"),),
}
@@ -80,15 +64,7 @@ INSTALL = {
# release the notes come from git alone, so they still list every change; the
# check that the changelog cites each pull request starts with the next one.
LEGACY_BASELINE_TAGS = frozenset({
- "agent-v0.9.0",
- "core-v0.3.2",
"bench-v0.3.0",
- "bench-ui-v0.7.1",
- "som-v0.1.4",
- "sandbox-apps-v0.1.2",
- "npm-core-v0.1.6",
- "npm-playground-v0.3.0",
- "cuabot-v1.0.16",
})
diff --git a/.github/scripts/resolve_release_please_request.py b/.github/scripts/resolve_release_please_request.py
index b7d293ebb3..875c09e162 100644
--- a/.github/scripts/resolve_release_please_request.py
+++ b/.github/scripts/resolve_release_please_request.py
@@ -18,15 +18,7 @@ COMPONENT_PATHS = {
"cua-spacesd": "libs/cua-spacesd",
"cua-sdk": "libs/cua",
"cua-spaces": "apps/cua-spaces-macos",
- "agent": "libs/python/agent",
- "core": "libs/python/core",
"bench": "libs/cua-bench",
- "bench-ui": "libs/python/bench-ui",
- "som": "libs/python/som",
- "sandbox-apps": "libs/python/cua-sandbox-apps",
- "npm-core": "libs/typescript/core",
- "npm-playground": "libs/typescript/playground",
- "cuabot": "libs/cuabot",
}
SEMVER = re.compile(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$")
BUMP_TYPES = {"automatic", "patch", "minor", "major"}
diff --git a/.github/scripts/tests/release_please_enrolled_preview.cjs b/.github/scripts/tests/release_please_enrolled_preview.cjs
index 14cf5c9e89..e359ffe73f 100644
--- a/.github/scripts/tests/release_please_enrolled_preview.cjs
+++ b/.github/scripts/tests/release_please_enrolled_preview.cjs
@@ -17,25 +17,8 @@ const manifest = JSON.parse(fs.readFileSync(path.join(root, '.release-please-man
// path -> [legacy tag prefix, a source file inside it, files the release PR must update]
const PACKAGES = {
- 'libs/python/agent': ['agent-v', 'cua_agent/__init__.py',
- ['libs/python/agent/CHANGELOG.md', 'libs/python/agent/pyproject.toml', 'uv.lock', 'libs/cua-bench/uv.lock']],
- 'libs/python/core': ['core-v', 'cua_core/__init__.py',
- ['libs/python/core/CHANGELOG.md', 'libs/python/core/pyproject.toml', 'uv.lock', 'libs/cua-bench/uv.lock']],
'libs/cua-bench': ['bench-v', 'cua_bench/__init__.py',
['libs/cua-bench/CHANGELOG.md', 'libs/cua-bench/pyproject.toml', 'libs/cua-bench/uv.lock']],
- 'libs/python/bench-ui': ['bench-ui-v', 'bench_ui/__init__.py',
- ['libs/python/bench-ui/CHANGELOG.md', 'libs/python/bench-ui/pyproject.toml', 'uv.lock']],
- 'libs/python/som': ['som-v', 'som/__init__.py',
- ['libs/python/som/CHANGELOG.md', 'libs/python/som/pyproject.toml', 'uv.lock']],
- 'libs/python/cua-sandbox-apps': ['sandbox-apps-v', 'cua_sandbox_apps/__init__.py',
- ['libs/python/cua-sandbox-apps/CHANGELOG.md', 'libs/python/cua-sandbox-apps/pyproject.toml',
- 'libs/python/cua-sandbox-apps/uv.lock']],
- 'libs/typescript/core': ['npm-core-v', 'src/index.ts',
- ['libs/typescript/core/CHANGELOG.md', 'libs/typescript/core/package.json']],
- 'libs/typescript/playground': ['npm-playground-v', 'src/index.ts',
- ['libs/typescript/playground/CHANGELOG.md', 'libs/typescript/playground/package.json']],
- 'libs/cuabot': ['cuabot-v', 'src/index.ts',
- ['libs/cuabot/CHANGELOG.md', 'libs/cuabot/package.json']],
};
function optionsFor(packagePath) {
@@ -115,8 +98,6 @@ async function main() {
{ sha: 'd'.repeat(40), message: 'fix: y', files: ['libs/python/cua-sandbox/z.py'] },
]);
assert.equal(leaked['libs/cua-bench'], undefined, 'libs/cua-bench-rl must not bump cua-bench');
- assert.equal(leaked['libs/python/cua-sandbox-apps'], undefined,
- 'libs/python/cua-sandbox must not bump sandbox-apps');
for (const packagePath of Object.keys(PACKAGES)) {
assert.ok(config.packages[packagePath], `${packagePath} is enrolled`);
diff --git a/.github/scripts/tests/test_release_notes.py b/.github/scripts/tests/test_release_notes.py
index 7bebece3c8..bb6b912403 100644
--- a/.github/scripts/tests/test_release_notes.py
+++ b/.github/scripts/tests/test_release_notes.py
@@ -19,15 +19,7 @@ CONFIG = json.loads((ROOT / "release-please-config.json").read_text())
MANIFEST = json.loads((ROOT / ".release-please-manifest.json").read_text())
WORKFLOWS = ROOT / ".github/workflows"
ENROLLED = {
- "libs/python/agent": "agent",
- "libs/python/core": "core",
"libs/cua-bench": "bench",
- "libs/python/bench-ui": "bench-ui",
- "libs/python/som": "som",
- "libs/python/cua-sandbox-apps": "sandbox-apps",
- "libs/typescript/core": "npm-core",
- "libs/typescript/playground": "npm-playground",
- "libs/cuabot": "cuabot",
}
@@ -44,12 +36,7 @@ def components() -> dict[str, str]:
("cua-spaces-v0.8.0", "cua-spaces", ["apps/cua-spaces-macos"], []),
("cua-spacesd-v0.5.4", "cua-spacesd", ["libs/cua-spacesd"], None),
("sandbox-v0.9.1", "sandbox", ["libs/python/cua-sandbox"], []),
- ("sandbox-apps-v0.1.3", "sandbox-apps", ["libs/python/cua-sandbox-apps"], []),
("bench-v0.3.1", "bench", ["libs/cua-bench"], []),
- ("bench-ui-v0.7.2", "bench-ui", ["libs/python/bench-ui"], []),
- ("core-v0.3.3", "core", ["libs/python/core"], []),
- ("npm-core-v0.1.7", "npm-core", ["libs/typescript/core"], []),
- ("cuabot-v1.0.17", "cuabot", ["libs/cuabot"], None),
],
)
def test_stable_tags_resolve_to_exactly_their_release_please_package(tag, component, paths, excludes):
@@ -183,18 +170,17 @@ def test_publish_draft_keeps_the_body_and_never_takes_latest():
def test_version_check_catches_a_package_file_that_drifted(tmp_path):
- (tmp_path / "libs/python/core").mkdir(parents=True)
- (tmp_path / "libs/python/core/pyproject.toml").write_text('[project]\nname = "cua-core"\nversion = "0.3.3"\n')
- (tmp_path / "uv.lock").write_text('[[package]]\nname = "cua-core"\nversion = "0.3.2"\n')
- package = CONFIG["packages"]["libs/python/core"]
+ (tmp_path / "libs/cua-bench").mkdir(parents=True)
+ (tmp_path / "libs/cua-bench/pyproject.toml").write_text('[project]\nname = "cua-bench"\nversion = "0.3.3"\n')
+ (tmp_path / "libs/cua-bench/uv.lock").write_text('[[package]]\nname = "cua-bench"\nversion = "0.3.2"\n')
+ package = CONFIG["packages"]["libs/cua-bench"]
values = {
- extra["path"]: validate_release_versions.extra_file_version(tmp_path, "libs/python/core", extra)
+ extra["path"]: validate_release_versions.extra_file_version(tmp_path, "libs/cua-bench", extra)
for extra in package["extra-files"]
- if not extra["path"].startswith("/libs/")
}
- assert values == {"pyproject.toml": "0.3.3", "/uv.lock": "0.3.2"}
+ assert values == {"pyproject.toml": "0.3.3", "uv.lock": "0.3.2"}
with pytest.raises(validate_release_versions.VersionError, match="mismatched"):
- validate_release_versions.require_equal("core", "0.3.3", values)
+ validate_release_versions.require_equal("bench", "0.3.3", values)
def test_legacy_baselines_are_exactly_the_enrolled_packages_last_legacy_tags():
@@ -223,9 +209,9 @@ def test_only_a_legacy_baseline_relaxes_the_changelog_citation_check(monkeypatch
original = release_notes.release_attribution.changelog_references_change
monkeypatch.setattr(release_notes, "_build", fake_build)
- for previous in ("sandbox-apps-v0.1.2", "sandbox-apps-v0.1.3"):
+ for previous in ("bench-v0.3.0", "bench-v0.3.1"):
monkeypatch.setattr(release_notes.release_attribution, "find_previous_tag", lambda *_a, p=previous: p)
- release_notes.render(repo_root=ROOT, repository="trycua/cua", tag="sandbox-apps-v0.1.4",
+ release_notes.render(repo_root=ROOT, repository="trycua/cua", tag="bench-v0.3.2",
sha="a" * 40, out_dir=tmp_path, ref=None, github=object())
assert release_notes.release_attribution.changelog_references_change is original
- assert seen == {"sandbox-apps-v0.1.2": True, "sandbox-apps-v0.1.3": False}
+ assert seen == {"bench-v0.3.0": True, "bench-v0.3.1": False}
diff --git a/.github/scripts/tests/test_validate_release_versions.py b/.github/scripts/tests/test_validate_release_versions.py
index 956a5d318d..aca0ce101d 100644
--- a/.github/scripts/tests/test_validate_release_versions.py
+++ b/.github/scripts/tests/test_validate_release_versions.py
@@ -27,15 +27,6 @@ def copy_release_sources(destination: Path) -> None:
"uv.lock",
"libs/cua-bench/uv.lock",
"libs/cua-bench/pyproject.toml",
- "libs/python/agent/pyproject.toml",
- "libs/python/core/pyproject.toml",
- "libs/python/bench-ui/pyproject.toml",
- "libs/python/som/pyproject.toml",
- "libs/python/cua-sandbox-apps/pyproject.toml",
- "libs/python/cua-sandbox-apps/uv.lock",
- "libs/typescript/core/package.json",
- "libs/typescript/playground/package.json",
- "libs/cuabot/package.json",
):
(destination / relative).parent.mkdir(parents=True, exist_ok=True)
shutil.copy(REPO_ROOT / relative, destination / relative)
diff --git a/.github/scripts/validate_release_versions.py b/.github/scripts/validate_release_versions.py
index 078296557e..9bdfa1260f 100644
--- a/.github/scripts/validate_release_versions.py
+++ b/.github/scripts/validate_release_versions.py
@@ -315,15 +315,7 @@ def spaces_app_versions(root: Path) -> tuple[str, dict[str, str]]:
# Packages whose Release Please entry is the whole version contract: the
# manifest version must equal every extra file Release Please bumps.
CONFIG_ONLY_PACKAGES = (
- "libs/python/agent",
- "libs/python/core",
"libs/cua-bench",
- "libs/python/bench-ui",
- "libs/python/som",
- "libs/python/cua-sandbox-apps",
- "libs/typescript/core",
- "libs/typescript/playground",
- "libs/cuabot",
)
LOCK_ENTRY = re.compile(r"^\$\.package\[\?\(@\.name\.value=='([^']+)'\)\]\.version$")
diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml
index a9ad11fa7e..6843b2321e 100644
--- a/.github/workflows/release-notes.yml
+++ b/.github/workflows/release-notes.yml
@@ -19,15 +19,7 @@ on:
- "cua-sdk-v*"
- "cua-spacesd-v*"
- "sandbox-v*"
- - "agent-v*"
- - "core-v*"
- "bench-v*"
- - "bench-ui-v*"
- - "som-v*"
- - "sandbox-apps-v*"
- - "npm-core-v*"
- - "npm-playground-v*"
- - "cuabot-v*"
workflow_dispatch:
inputs:
tag:
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 1283028072..3777cb6fcb 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -20,15 +20,7 @@ on:
- cua-spacesd
- cua-sdk
- cua-spaces
- - agent
- - core
- bench
- - bench-ui
- - som
- - sandbox-apps
- - npm-core
- - npm-playground
- - cuabot
bump:
description: "Version bump for the selected component"
required: true
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index a5ac5df67c..1c88216703 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -6,13 +6,5 @@
"libs/cua": "0.10.1",
"libs/cua-spacesd": "0.12.2",
"apps/cua-spaces-macos": "0.21.1",
- "libs/python/agent": "0.9.1",
- "libs/python/core": "0.3.2",
- "libs/cua-bench": "0.3.1",
- "libs/python/bench-ui": "0.7.1",
- "libs/python/som": "0.2.0",
- "libs/python/cua-sandbox-apps": "0.1.3",
- "libs/typescript/core": "0.1.6",
- "libs/typescript/playground": "0.3.0",
- "libs/cuabot": "1.0.16"
+ "libs/cua-bench": "0.3.1"
}
diff --git a/release-please-config.json b/release-please-config.json
index 467aab73c9..f3b033c569 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -97,7 +97,7 @@
"path": "/libs/cua-spacesd/Cargo.lock",
"jsonpath": "$.package[?(@.name.value=='cursor-overlay')].version"
},
-{
+ {
"type": "toml",
"path": "/libs/cua-spacesd/Cargo.lock",
"jsonpath": "$.package[?(@.name.value=='cua-cursor-motion')].version"
@@ -142,7 +142,7 @@
"path": "/libs/cua-spacesd/tests/spaces-e2e/Cargo.lock",
"jsonpath": "$.package[?(@.name.value=='cursor-overlay')].version"
},
-{
+ {
"type": "toml",
"path": "/libs/cua-spacesd/tests/spaces-e2e/Cargo.lock",
"jsonpath": "$.package[?(@.name.value=='cua-cursor-motion')].version"
@@ -187,7 +187,7 @@
"path": "/libs/cua-spacesd/tests/teleport-e2e/Cargo.lock",
"jsonpath": "$.package[?(@.name.value=='cursor-overlay')].version"
},
-{
+ {
"type": "toml",
"path": "/libs/cua-spacesd/tests/teleport-e2e/Cargo.lock",
"jsonpath": "$.package[?(@.name.value=='cua-cursor-motion')].version"
@@ -470,54 +470,6 @@
}
]
},
- "libs/python/agent": {
- "release-type": "simple",
- "component": "agent",
- "package-name": "cua-agent",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "extra-files": [
- {
- "type": "toml",
- "path": "pyproject.toml",
- "jsonpath": "$.project.version"
- },
- {
- "type": "toml",
- "path": "/uv.lock",
- "jsonpath": "$.package[?(@.name.value=='cua-agent')].version"
- },
- {
- "type": "toml",
- "path": "/libs/cua-bench/uv.lock",
- "jsonpath": "$.package[?(@.name.value=='cua-agent')].version"
- }
- ]
- },
- "libs/python/core": {
- "release-type": "simple",
- "component": "core",
- "package-name": "cua-core",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "extra-files": [
- {
- "type": "toml",
- "path": "pyproject.toml",
- "jsonpath": "$.project.version"
- },
- {
- "type": "toml",
- "path": "/uv.lock",
- "jsonpath": "$.package[?(@.name.value=='cua-core')].version"
- },
- {
- "type": "toml",
- "path": "/libs/cua-bench/uv.lock",
- "jsonpath": "$.package[?(@.name.value=='cua-core')].version"
- }
- ]
- },
"libs/cua-bench": {
"release-type": "simple",
"component": "bench",
@@ -536,110 +488,6 @@
"jsonpath": "$.package[?(@.name.value=='cua-bench')].version"
}
]
- },
- "libs/python/bench-ui": {
- "release-type": "simple",
- "component": "bench-ui",
- "package-name": "cua-bench-ui",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "extra-files": [
- {
- "type": "toml",
- "path": "pyproject.toml",
- "jsonpath": "$.project.version"
- },
- {
- "type": "toml",
- "path": "/uv.lock",
- "jsonpath": "$.package[?(@.name.value=='cua-bench-ui')].version"
- }
- ]
- },
- "libs/python/som": {
- "release-type": "simple",
- "component": "som",
- "package-name": "cua-som",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "extra-files": [
- {
- "type": "toml",
- "path": "pyproject.toml",
- "jsonpath": "$.project.version"
- },
- {
- "type": "toml",
- "path": "/uv.lock",
- "jsonpath": "$.package[?(@.name.value=='cua-som')].version"
- }
- ]
- },
- "libs/python/cua-sandbox-apps": {
- "release-type": "simple",
- "component": "sandbox-apps",
- "package-name": "cua-sandbox-apps",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "extra-files": [
- {
- "type": "toml",
- "path": "pyproject.toml",
- "jsonpath": "$.project.version"
- },
- {
- "type": "toml",
- "path": "uv.lock",
- "jsonpath": "$.package[?(@.name.value=='cua-sandbox-apps')].version"
- }
- ]
- },
- "libs/typescript/core": {
- "release-type": "simple",
- "component": "npm-core",
- "package-name": "@trycua/core",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "extra-files": [
- {
- "type": "json",
- "path": "package.json",
- "jsonpath": "$.version"
- }
- ]
- },
- "libs/typescript/playground": {
- "release-type": "simple",
- "component": "npm-playground",
- "package-name": "@trycua/playground",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "extra-files": [
- {
- "type": "json",
- "path": "package.json",
- "jsonpath": "$.version"
- }
- ]
- },
- "libs/cuabot": {
- "release-type": "simple",
- "component": "cuabot",
- "package-name": "cuabot",
- "bump-minor-pre-major": true,
- "changelog-path": "CHANGELOG.md",
- "exclude-paths": [
- "libs/cuabot/Dockerfile",
- "libs/cuabot/VERSION",
- "libs/cuabot/.bumpversion.docker.cfg"
- ],
- "extra-files": [
- {
- "type": "json",
- "path": "package.json",
- "jsonpath": "$.version"
- }
- ]
}
}
}