Files
marqdo-knowledge/docs/releasing.md
T
marqdo-knowledge 835f61dc01 ci: align release tooling with the upstream deterministic pipeline
- 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
2026-11-26 09:05:27 +08:00

3.5 KiB

Releasing marqdo-knowledge

This project is on the beta channel (0.1.0-beta.N); current version 0.1.0-beta.2. A beta release claims only what the pipeline and recorded evidence establish. It does not claim stable quality gates, and the development specification's §16 retrieval and performance targets remain NOT RUN.

The procedure mirrors cflmy/marqdo-cli docs/releasing.md: freeze one release SHA, run every gate on that exact SHA, build the archive from it, cold-install that archive through a real core CLI, then tag. Never package a different checkout.

1. Freeze the release SHA

  1. git status --porcelain is clean, Cargo.lock is committed, all builds use --locked.
  2. Cargo.toml, packaging/tool.json and spec/knowledge.md carry the same tool version (currently 0.1.0-beta.1).
  3. CHANGELOG.md, docs/releases/<version>.md, docs/STATUS.md and docs/ci.md describe the same facts. No "implemented" claim without a test or executed evidence; no NOT RUN item presented as passing.
  4. The core CLI pin is unchanged or the Analysis fixtures were regenerated and re-validated against the new pin.

2. Gates on that SHA

scripts/ci.sh test                      # fmt, clippy -D warnings, locked tests
scripts/ci.sh minimum                   # Rust 1.89 MSRV check
MARQDO_BIN=/path/to/marqdo scripts/ci.sh core   # real Analysis boundary
cargo build --release --locked

The Woodpecker/GitHub pipelines run the same gates. A green local run is not a substitute for the pipeline run recorded for the release commit, and vice versa.

3. Build and verify the archive

MARQDO_BIN=/path/to/marqdo scripts/ci.sh release

This runs the deterministic packager (tools/release/package.py: refuses a dirty tree or mismatched SOURCE_SHA, emits dist/marqdo-knowledge-<version>-<target>.tar.gz, .sha256, FILES.sha256, RELEASE_INFO.json) and the smoke verifier (tools/release/smoke.py: checksum, manifest, source SHA and version checks, then installs the archive into an isolated MARQDO_TOOL_HOME, runs help/compile/query/check and removes the tool). Two package runs from the same commit, binary and toolchain must produce the same archive SHA-256.

Record the archive name and SHA-256 in the tag annotation and release page. Do not commit build artifacts: dist/ is ignored.

4. Tag and publish (beta)

git tag -a v0.1.0-beta.N -m "marqdo-knowledge 0.1.0-beta.N; archive <name> sha256 <hash>"
git push origin master --tags

The tag-only release lane uploads the archive, SHA-256 and RELEASE_INFO.json, and publishes a prerelease using docs/releases/<version>.md as the body. A tag push must not introduce new source changes; if the tree changed, restart at step 1 with a new SHA.

5. Beta exit conditions for this repository

A beta release may be published with these documented gaps:

  • real-model semantic quality and §16 retrieval/performance benchmarks NOT RUN;
  • Linux x86_64 only;
  • upstream batch Analysis interface unavailable in the pinned core (per-entry Analysis is used);
  • incremental compiles rewrite projection rows in one transaction (write-volume benchmark unmeasured);
  • OKF bundle-root absolute links only have OKF semantics in check --okf;
  • single-character CJK queries are bounded/truncated.

They must be published as limitations, never omitted. Stable promotion requires the full acceptance matrix and quality/performance gates in the development specification on the exact release SHA, plus independent consumer and cold install evidence; this document does not authorize a stable release.