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.

test(contracts): align the release contracts with the single-composition layout

Martin Vogelcaf84c5e3507
diff --git a/scripts/package-release.sh b/scripts/package-release.sh
index 8d4599c5e..8be6edbf7 100755
--- a/scripts/package-release.sh
+++ b/scripts/package-release.sh
@@ -183,21 +183,14 @@ if [ "$GOOS" = "windows" ]; then
(
cd "$PACK_DIR"
rm -f "$OUT_DIR/$NAME.zip"
- ARCHIVE_MEMBERS=(
- codebase-memory-mcp.exe LICENSE install.ps1
- THIRD_PARTY_NOTICES.md
- )
- zip -q "$OUT_DIR/$NAME.zip" "${ARCHIVE_MEMBERS[@]}"
+ zip -q "$OUT_DIR/$NAME.zip" \
+ codebase-memory-mcp.exe LICENSE install.ps1 THIRD_PARTY_NOTICES.md
)
echo "=== package-release: $OUT_DIR/$NAME.zip ==="
else
- ARCHIVE_MEMBERS=(
- codebase-memory-mcp LICENSE install.sh
- THIRD_PARTY_NOTICES.md
- )
# BSD tar otherwise materializes macOS extended attributes as hidden
# AppleDouble `._*` members, violating the exact four-file inventory.
COPYFILE_DISABLE=1 tar -czf "$OUT_DIR/$NAME.tar.gz" -C "$PACK_DIR" \
- "${ARCHIVE_MEMBERS[@]}"
+ codebase-memory-mcp LICENSE install.sh THIRD_PARTY_NOTICES.md
echo "=== package-release: $OUT_DIR/$NAME.tar.gz ==="
fi
diff --git a/tests/test_smoke_fixture_contract.sh b/tests/test_smoke_fixture_contract.sh
index 111b5c7cd..b202f967d 100755
--- a/tests/test_smoke_fixture_contract.sh
+++ b/tests/test_smoke_fixture_contract.sh
@@ -137,15 +137,15 @@ for relative, source in (
# Unix fixtures mirror the release archive surface and Linux update aliases.
for name in ("LICENSE", "install.sh", "THIRD_PARTY_NOTICES.md"):
require(name in smoke_local, f"smoke-local.sh archive must include {name}")
+# One composition ships, so there is one archive name and no variant alias.
require(
- "codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" in smoke_local
- and "codebase-memory-mcp-${OS}-${ARCH}.tar.gz" in smoke_local,
- "smoke-local.sh must create the selected variant and standard alias",
+ "codebase-memory-mcp-${OS}-${ARCH}.tar.gz" in smoke_local
+ and "${SUFFIX}" not in smoke_local,
+ "smoke-local.sh must create the single canonical archive with no variant alias",
)
require(
- "codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}-portable.tar.gz" in smoke_local
- and "codebase-memory-mcp-${OS}-${ARCH}-portable.tar.gz" in smoke_local,
- "smoke-local.sh must create Linux portable selected-variant and standard aliases",
+ "codebase-memory-mcp-${OS}-${ARCH}-portable.tar.gz" in smoke_local,
+ "smoke-local.sh must create the Linux portable update alias",
)
require(
'CBM_CACHE_DIR="$WORK_DIR/cache"' in smoke_local
diff --git a/tests/test_windows_bundle_contract.sh b/tests/test_windows_bundle_contract.sh
index 3a7faf52d..5a284d19c 100644
--- a/tests/test_windows_bundle_contract.sh
+++ b/tests/test_windows_bundle_contract.sh
@@ -216,7 +216,7 @@ single_binary_contracts = {
),
"pkg/pypi/src/codebase_memory_mcp/_cli.py": (
r"_WINDOWS_BINARY_NAME\s*=\s*['\"]codebase-memory-mcp\.exe['\"]",
- r"def\s+_windows_binary_ready\(",
+ r"def\s+_runtime_set_ready\(",
),
}
for relative, patterns in single_binary_contracts.items():