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
This commit is contained in:
marqdo-knowledge committed 2026-11-26 09:05:27 +08:00
1 parent 85458c1d93
commit 835f61dc01
13 files changed
+663 -122

No files matched your search

+10 -5
View File
@@ -12,10 +12,14 @@ Configurations:
- `.github/workflows/ci.yml` — GitHub Actions mirror (push, pull_request, tag).
- `scripts/ci.sh` — the same lanes locally (`test`, `minimum`, `core`,
`release`, `all`).
- `scripts/package-release.sh` — locked release build, archive,
`SOURCE_SHA`/`RELEASE_INFO.json`, SHA-256 checksum.
- `scripts/verify-release.sh` — cold install in an isolated
`MARQDO_TOOL_HOME`, dispatch, compile/query/check smoke, remove.
- `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 isolated `MARQDO_TOOL_HOME` (install, help, compile/query/check,
remove; writes `dist/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
@@ -30,13 +34,14 @@ recording a new Analysis fixture artifact.
| 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` |
| package + cold install | `scripts/package-release.sh && scripts/verify-release.sh` |
| deterministic package + cold install | `python3 tools/release/package.py ... && python3 tools/release/smoke.py --archive ...` |
## Not gated by CI (explicit non-claims)