Modeled on cflmy/marqdo-cli: - Woodpecker pipeline with fmt/clippy/tests, MSRV 1.89 lane, a lane that builds the pinned core CLI and runs the real Analysis integration tests, and a tag-only release lane - GitHub Actions mirror with the same gates plus artifact upload and prerelease publication - scripts/ci.sh local lanes (test/minimum/core/release/all) - package-release.sh now refuses a dirty tree or SOURCE_SHA mismatch, runs a locked release build and records SOURCE_SHA, RELEASE_INFO.json and SHA-256 - verify-release.sh cold-installs the archive into an isolated MARQDO_TOOL_HOME and runs the documented install/help/compile/query/check/remove smoke path - docs/ci.md and docs/releasing.md document gates, explicit non-gates and the beta freeze/tag procedure
72 lines
3.1 KiB
Markdown
72 lines
3.1 KiB
Markdown
# 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`).
|
|
- `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.
|
|
|
|
## 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 |
|
|
|---|---|
|
|
| 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` |
|
|
|
|
## 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 `--documents` Analysis interface (U01) — the pinned core
|
|
exposes per-entry `check --emit`; this beta invokes it per entry.
|
|
- Incremental write-volume benchmark.
|
|
|
|
These are recorded as NOT RUN in [`STATUS.md`](STATUS.md). A green pipeline is
|
|
evidence for the executed gates only; it is not evidence for those items.
|
|
|
|
## Local reproduction
|
|
|
|
```sh
|
|
# 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.
|