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:
1 parent
85458c1d93
commit
835f61dc01
13 files changed
+663
-122
No files matched your search
+10
-5
@@ -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)
|
||||
|
||||
|
||||
+10
-7
@@ -1,6 +1,6 @@
|
||||
# Releasing marqdo-knowledge
|
||||
|
||||
This project is on the **beta** channel (`0.1.0-beta.N`). A beta release claims
|
||||
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.
|
||||
@@ -40,11 +40,14 @@ substitute for the pipeline run recorded for the release commit, and vice versa.
|
||||
MARQDO_BIN=/path/to/marqdo scripts/ci.sh release
|
||||
```
|
||||
|
||||
This runs `scripts/package-release.sh` (refuses a dirty tree or mismatched
|
||||
`SOURCE_SHA`, emits `dist/marqdo-knowledge-<version>-<target>.tar.gz`,
|
||||
`.sha256` and `RELEASE_INFO.json`) and `scripts/verify-release.sh` (extracts the
|
||||
archive in a clean directory, installs it into an isolated `MARQDO_TOOL_HOME`,
|
||||
runs `knowledge --help`, compile/query/check smoke, removes the tool).
|
||||
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.
|
||||
@@ -52,7 +55,7 @@ not commit build artifacts: `dist/` is ignored.
|
||||
## 4. Tag and publish (beta)
|
||||
|
||||
```sh
|
||||
git tag -a v0.1.0-beta.1 -m "marqdo-knowledge 0.1.0-beta.1; archive <name> sha256 <hash>"
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user