Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
ci(lume): sync the Lume CLI spec version on release branches (#4613)
Francesco Bonaccif83bd7a5c0bb
diff --git a/.github/scripts/sync_lume_release_docs.py b/.github/scripts/sync_lume_release_docs.pyindex 66c7e1b731..c161937f10 100644--- a/.github/scripts/sync_lume_release_docs.py+++ b/.github/scripts/sync_lume_release_docs.py@@ -12,6 +12,9 @@ from typing import Sequencefrom release_reference_docs import reference_pathsBODY_MARKER = r"Documented against Lume \*\*\S+\*\*\."+# The CLI-shape oracle the generator writes next to the pages; it records+# the documented version too.+CLI_SPEC = "scripts/docs-generators/cli-specs/lume.json"def lume_reference_paths(root: Path) -> tuple[str, ...]:@@ -36,6 +39,10 @@ def sync_lume_release_docs(root: Path) -> None:content, BODY_MARKER, f"Documented against Lume **{version}**.", path)path.write_text(content)+ spec = root / CLI_SPEC+ if spec.exists():+ content = replace_once(spec.read_text(), r'^ "version": "[^"]*"$', f' "version": "{version}"', spec)+ spec.write_text(content)def main(argv: Sequence[str] | None = None) -> int:diff --git a/.github/scripts/tests/test_sync_lume_release_docs.py b/.github/scripts/tests/test_sync_lume_release_docs.pyindex fd275d28b4..ae510820a1 100644--- a/.github/scripts/tests/test_sync_lume_release_docs.py+++ b/.github/scripts/tests/test_sync_lume_release_docs.py@@ -17,6 +17,9 @@ def test_sync_lume_release_docs_updates_every_generated_marker(tmp_path: Path):(tmp_path / config).parent.mkdir(parents=True)shutil.copy(REPO_ROOT / config, tmp_path / config)shutil.copytree(REPO_ROOT / DOCS, tmp_path / DOCS)+ spec = "scripts/docs-generators/cli-specs/lume.json"+ (tmp_path / spec).parent.mkdir(parents=True)+ shutil.copy(REPO_ROOT / spec, tmp_path / spec)sync_lume_release_docs(tmp_path)@@ -26,3 +29,6 @@ def test_sync_lume_release_docs_updates_every_generated_marker(tmp_path: Path):for relative in paths:assert "Version: 9.9.9" in (tmp_path / relative).read_text()assert "Documented against Lume **9.9.9**." in (tmp_path / DOCS / "http-api.mdx").read_text()+ # The generator's CLI spec records the documented version; a release+ # that leaves it behind fails the Lume reference check.+ assert '\n "version": "9.9.9"\n' in (tmp_path / spec).read_text()diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.ymlindex 96c2b16c45..e6e936735f 100644--- a/.github/workflows/release-please.yml+++ b/.github/workflows/release-please.yml@@ -259,7 +259,8 @@ jobs:elif [[ "$LUME" == "true" ]]; thenpython3 .github/scripts/sync_lume_release_docs.pypython3 .github/scripts/validate_release_versions.py --product lume- git add docs/content/docs/lume/reference+ git add docs/content/docs/lume/reference \+ scripts/docs-generators/cli-specs/lume.jsonCOMMIT_MESSAGE="chore(lume): synchronize release documentation"elif [[ "$SPACESD" == "true" ]]; then# Release Please bumps the workspace version in Cargo.toml; the