- add tools/release/package.py: sorted, commit-timestamped, uid/gid-normalised deterministic archive; refuses dirty trees, source-SHA mismatch and stale versions; emits SOURCE_SHA, FILES.sha256 and RELEASE_INFO.json with binaries, protocol revisions, core baseline and manifest digest - add tools/release/smoke.py: verifies checksum/manifest/source/version then cold-installs the archive through a real core CLI into an isolated MARQDO_TOOL_HOME and exercises help/compile/query/check/remove, writing smoke evidence - add tools/ci/test_release_metadata.py: single CI gate for version/fact consistency across Cargo files, tool.json, spec, CHANGELOG, release notes, README and CI configuration - Woodpecker and GitHub pipelines now run the metadata gate and use the Python packager/smoke test in the tag-only release lane; shell release scripts are thin wrappers; docs/ci.md and docs/releasing.md document gates and non-gates
14 lines
582 B
Bash
Executable File
14 lines
582 B
Bash
Executable File
#!/bin/sh
|
|
# Thin wrapper around the cold-install smoke test.
|
|
#
|
|
# MARQDO_BIN=/path/to/marqdo scripts/verify-release.sh [ARCHIVE]
|
|
set -eu
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
MARQDO=${MARQDO_BIN:?set MARQDO_BIN to the core marqdo binary}
|
|
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' "$ROOT/Cargo.toml" | head -1)
|
|
TARGET=${TARGET:-x86_64-unknown-linux-gnu}
|
|
ARCHIVE=${1:-"$ROOT/dist/marqdo-knowledge-$VERSION-$TARGET.tar.gz"}
|
|
MARQDO_BIN="$MARQDO" python3 "$ROOT/tools/release/smoke.py" \
|
|
--archive "$ARCHIVE" \
|
|
--evidence-out "$ROOT/dist/smoke-evidence.json"
|