- 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
3.4 KiB
CI/CD for marqdo-knowledge
The pipeline mirrors the upstream marqdo-cli approach: one fast Rust contract
lane, one minimum-Rust lane, one lane that builds the pinned core CLI and runs
the real-Analysis integration tests, and a tag-only release lane that builds a
deterministic archive, cold-installs it through a real marqdo binary and
publishes the checksum.
Configurations:
.woodpecker/main.yml— self-hosted Woodpecker (push, pull_request, tag)..github/workflows/ci.yml— GitHub Actions mirror (push, pull_request, tag).scripts/ci.sh— the same lanes locally (test,minimum,core,release,all).tools/release/package.py— deterministic archive,SOURCE_SHA,FILES.sha256,RELEASE_INFO.json, SHA-256 sidecar.tools/release/smoke.py— checksum/manifest/version verification and cold install in an isolatedMARQDO_TOOL_HOME(install, help, compile/query/check, remove; writesdist/smoke-evidence.json).tools/ci/test_release_metadata.py— version/fact consistency gate.scripts/package-release.sh/scripts/verify-release.sh— thin wrappers for the Python tooling.
Pinned core boundary
The core CLI is an external contract. CI does not use an already-installed
marqdo: it builds cflmy/marqdo-cli at
4bbefc92449ee480c8a2c89b0308feb4cda8d0e7 (3.0.0-rc.4, Analysis revision 3)
and exports MARQDO_TEST_BIN for tests/core_cli.rs and
tests/compile.rs. Changing the pin requires re-running the tamper fixtures and
recording a new Analysis fixture artifact.
Gates executed by CI
| Gate | Command |
|---|---|
| release metadata consistency | python3 tools/ci/test_release_metadata.py |
| formatting | cargo fmt --all -- --check |
| lints | cargo clippy --workspace --all-targets --locked -- -D warnings |
| unit + integration tests | cargo test --workspace --locked |
| real core CLI boundary | MARQDO_TEST_BIN=<pinned core> cargo test --workspace --locked |
| minimum Rust | cargo +1.89 check --locked --workspace --all-targets |
| release build | cargo build --release --locked |
| deterministic package + cold install | python3 tools/release/package.py ... && python3 tools/release/smoke.py --archive ... |
Not gated by CI (explicit non-claims)
- Real-model semantic quality benchmark (§8.3/§16) — needs a pinned model and weights, not available to this repository's CI.
- Retrieval/performance benchmarks (§16) — need a frozen multi-domain dataset and reference hardware.
- Windows/macOS native builds — the beta platform claim is Linux x86_64 only.
- Upstream batch
--documentsAnalysis interface (U01) — the pinned core exposes per-entrycheck --emit; this beta invokes it per entry. - Incremental write-volume benchmark.
These are recorded as NOT RUN in STATUS.md. A green pipeline is
evidence for the executed gates only; it is not evidence for those items.
Local reproduction
# Fast lane
scripts/ci.sh test
# MSRV lane (installs 1.89 through rustup when absent)
scripts/ci.sh minimum
# Real Analysis lane: use an existing built core, or clone/build the pin
MARQDO_BIN=/path/to/marqdo scripts/ci.sh core
# Full release lane (build, package, cold-install smoke)
MARQDO_BIN=/path/to/marqdo scripts/ci.sh release
The release archive records SOURCE_SHA, RELEASE_INFO.json (version,
channel, target, API/Analysis/schema revisions, core baseline, rustc/cargo) and
the archive SHA-256. Checksums are integrity evidence, not publisher
authentication.