Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(ci): install zip for Windows package contract

Martin Vogel9099bc383fc4
diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml
index c6d98127b..3b9562975 100644
--- a/.github/workflows/_test.yml
+++ b/.github/workflows/_test.yml
@@ -425,6 +425,7 @@ jobs:
mingw-w64-clang-${{ matrix.pkg }}-ccache
make
git
+ zip
- name: Create protected per-user temp root
# One implementation, shared with _soak.yml and the VM leg
diff --git a/tests/test_package_runtime_assets_contract.sh b/tests/test_package_runtime_assets_contract.sh
index 8ef4a36c8..af910818f 100644
--- a/tests/test_package_runtime_assets_contract.sh
+++ b/tests/test_package_runtime_assets_contract.sh
@@ -40,6 +40,7 @@ def require(condition: bool, message: str) -> None:
package_release = read("scripts/package-release.sh")
+test_workflow = read(".github/workflows/_test.yml")
strip_position = package_release.find('strip_release_binary "$STAGED_BINARY"')
probe_position = package_release.find('"$STAGED_BINARY" --verify-runtime-assets')
tar_position = package_release.find('tar -czf "$OUT_DIR/$NAME.tar.gz"')
@@ -67,6 +68,15 @@ require(
and 'zip -q "$OUT_DIR/$NAME.zip" "${ARCHIVE_MEMBERS[@]}"' in package_release,
"Windows release archive must be created from the same private directory that was probed",
)
+windows_test_job = re.search(
+ r"(?ms)^ test-windows:\n(?P<body>.*?)(?=^ [a-zA-Z0-9_-]+:\n)",
+ test_workflow,
+)
+require(
+ windows_test_job is not None
+ and re.search(r"(?m)^\s+zip\s*$", windows_test_job.group("body")) is not None,
+ "Windows test jobs that exercise package-release.sh must install zip",
+)
homebrew = read("pkg/homebrew/Formula/codebase-memory-mcp.rb")