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: ignore Driver installer state bumps in attribution

Francesco Bonacci2f916ed8abd0
diff --git a/.github/scripts/release_attribution.py b/.github/scripts/release_attribution.py
index efa4717c4e..91b0e6c1a0 100644
--- a/.github/scripts/release_attribution.py
+++ b/.github/scripts/release_attribution.py
@@ -60,6 +60,11 @@ VERIFIED_IDENTITY_PR_RE = re.compile(
)
TRAILING_PR_RE = re.compile(r"\s+\(#(?P<number>\d+)\)\s*$")
LEGACY_RELEASE_BUMP_RE = re.compile(r"^Bump (?:cua-driver-rs|lume) to v\S+$", re.IGNORECASE)
+PUBLISHED_INSTALLER_BUMP_RE = re.compile(
+ r"^chore\(cua-driver\): advance published installer version to "
+ r"(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*) \[skip ci\]$",
+ re.IGNORECASE,
+)
NOREPLY_RE = re.compile(
r"^(?:\d+\+)?(?P<login>[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})(?:\[bot\])?)@users\.noreply\.github\.com$",
re.IGNORECASE,
@@ -870,9 +875,11 @@ def build_manifest(
visual_requested = False
for commit in commits_in_range(repo_root, previous_tag, current_ref, paths, exclude_paths):
- if re.match(
- r"^chore(?:\([^)]+\))?: release\b", commit.subject, re.IGNORECASE
- ) or LEGACY_RELEASE_BUMP_RE.match(commit.subject):
+ if (
+ re.match(r"^chore(?:\([^)]+\))?: release\b", commit.subject, re.IGNORECASE)
+ or LEGACY_RELEASE_BUMP_RE.match(commit.subject)
+ or PUBLISHED_INSTALLER_BUMP_RE.match(commit.subject)
+ ):
continue
parsed_subject = parse_conventional_line(commit.subject)
included_types = ALLOWED_TITLE_TYPES if channel == "nightly" else RELEASING_TYPES
diff --git a/.github/scripts/tests/test_release_attribution.py b/.github/scripts/tests/test_release_attribution.py
index 28060efe7f..ce24496263 100644
--- a/.github/scripts/tests/test_release_attribution.py
+++ b/.github/scripts/tests/test_release_attribution.py
@@ -10,6 +10,7 @@ from jsonschema import Draft202012Validator
from release_attribution import (
CommitRecord,
LEGACY_RELEASE_BUMP_RE,
+ PUBLISHED_INSTALLER_BUMP_RE,
ReleaseError,
_change_contributors,
build_manifest,
@@ -333,6 +334,18 @@ def test_legacy_release_bump_subject_is_recognized():
assert not LEGACY_RELEASE_BUMP_RE.match("feat(driver): bump reconnect retries")
+def test_published_installer_bump_subject_is_recognized_narrowly():
+ assert PUBLISHED_INSTALLER_BUMP_RE.match(
+ "chore(cua-driver): advance published installer version to 0.19.3 [skip ci]"
+ )
+ assert not PUBLISHED_INSTALLER_BUMP_RE.match(
+ "chore(cua-driver): advance published installer version to nightly [skip ci]"
+ )
+ assert not PUBLISHED_INSTALLER_BUMP_RE.match(
+ "feat(cua-driver): advance published installer version to 0.19.3 [skip ci]"
+ )
+
+
def test_changelog_accepts_verified_commit_link_when_pr_suffix_is_missing():
commit_sha = "2dad3e519e17b27eaa793151b8671957f578072c"
section = (