Repository navigation
packaging: supported skip-build path with honest BUILD-INFO (mecmcp#355) - #264
Merged
Merged
Conversation
scripts/build-release.sh gains PANOSMCP_PACKAGE_SKIP_BUILD=1 for packaging a CI-built binary (workstation glibc is newer than the LXCs'). It requires PANOSMCP_BINARY_SOURCE_COMMIT (40-hex, present in the clone) and records it as git_commit, with packaging_commit always recorded. BUILD-INFO now carries binary_sha256 and a single rustc= line: the real rustc -vV when built here, "unknown (... not compiled by this script)" when prebuilt. conformance.toml makes R3 fatal; CI stages the conformance package from build-release.sh output and runs packaging/tests/skip-build-provenance.sh. OPERATIONS.md documents the path and the new fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex review of the skip-build path: the archive took VERSION from the packaging checkout and the toolchain pin from its rust-toolchain.toml, so an older CI binary could ship under a newer version's name with a pin it was never built with. Both now come from PANOSMCP_BINARY_SOURCE_COMMIT, and the binary's own --version must match or packaging refuses. The provenance test gains a stub-binary negative case for the version check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remainder of mechubsec/mecmcp#355: a supported skip-build packaging path whose BUILD-INFO does not claim a toolchain that never compiled the binary.
What changes
scripts/build-release.sh:PANOSMCP_PACKAGE_SKIP_BUILD=1packages an existingtarget/release/rust-panosmcp(e.g. extracted from the release image). It requiresPANOSMCP_BINARY_SOURCE_COMMIT(full 40-hex, present in the clone), reads version and toolchain pin at that commit, and refuses a binary whose--versiondisagrees.packaging_commit=andbinary_sha256=;rustc=is a single line,unknown (…)on the skip-build path.packaging/conformance.toml:build_info = true+skip_build_env, so R3 is fatal.packaging/tests/skip-build-provenance.sh.docs/OPERATIONS.mddocuments the path.Verification
--prebuilt; shellcheck clean.binary_sha256, version guard removed): each caught.Not verified locally: R6 image check and the CI YAML itself.
Pre-existing, unrelated:
packaging/lxc/tests/test_stale_scan_legacy_detection.shalso fails on main.Refs mechubsec/mecmcp#355
🤖 Generated with Claude Code