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.

fix(cua-driver): keep pre-1.0 releases pre-major (#2430)

Francesco Bonacci51519d701750
diff --git a/.github/scripts/tests/test_cua_driver_release_wiring.py b/.github/scripts/tests/test_cua_driver_release_wiring.py
index 8a65e88b24..d0f3e59454 100644
--- a/.github/scripts/tests/test_cua_driver_release_wiring.py
+++ b/.github/scripts/tests/test_cua_driver_release_wiring.py
@@ -1,5 +1,6 @@
"""Regression tests for cua-driver-rs release and PyPI wiring."""
+import json
from pathlib import Path
import unittest
@@ -81,6 +82,13 @@ class TestCuaDriverReleaseWiring(unittest.TestCase):
self.assertNotIn("if: steps.release.outputs.prs_created == 'true'", workflow)
self.assertNotIn("RELEASE_PRS: ${{ steps.release.outputs.prs }}", workflow)
+ def test_driver_breaking_changes_remain_pre_major(self) -> None:
+ config = json.loads(self.read("release-please-config.json"))
+ driver = config["packages"]["libs/cua-driver"]
+
+ self.assertTrue(driver["bump-minor-pre-major"])
+ self.assertNotIn("bump-minor-pre-major", config["packages"]["libs/lume"])
+
def test_release_please_exposes_targeted_bump_dropdowns(self) -> None:
workflow = self.read(".github/workflows/release-please.yml")
diff --git a/release-please-config.json b/release-please-config.json
index 953d218f6c..9cd319d947 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -10,6 +10,7 @@
"release-type": "simple",
"component": "cua-driver-rs",
"package-name": "cua-driver-rs",
+ "bump-minor-pre-major": true,
"version-file": "rust/VERSION",
"changelog-path": "rust/CHANGELOG.md",
"exclude-paths": [