Files
marqdo-prove/docs/evidence/ci-beta-1.md
T
marqdo-prove d8c340b6e2
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/tag/main Pipeline was successful
docs: record CI pipeline #5 and the measured binary-digest difference
- pipeline #5 validates the tag-move evidence commit and the new package-lane
  binary digest; local vs CI binary hashes differ (build path / image), so the
  beta makes no reproducible-build claim
- note that the beta tag was moved once to carry the completed evidence
2026-11-26 13:02:51 +08:00

110 lines
5.4 KiB
Markdown

# CI evidence: v0.1.0-beta.1
Executed Woodpecker CI for the `v0.1.0-beta.1` beta on the shared docker runner
(`ci.cflmy.cn`, Woodpecker `3.20.1`). This file records pipeline numbers,
commits, results and log excerpts. No credentials are recorded here; the
Woodpecker token and the Gitea token live only in the local ignored
`.secrets/release.env` and as a Woodpecker repository secret.
Repository: `cflmy/marqdo-prove` (Gitea id 6, Woodpecker repo id 5).
Release commit / tag: `1a9f3a4c787b930f46d0f996d0e23fbf69f2da22`,
tag `v0.1.0-beta.1`.
## Pipelines
| # | Event | Commit | Result | Duration | URL |
| --- | --- | --- | --- | --- | --- |
| 1 | push (`master`) | `1a9f3a4c` | success | 61 s | https://ci.cflmy.cn/repos/5/pipeline/1 |
| 3 | tag (`v0.1.0-beta.1`) | `1a9f3a4c` | success | 86 s | https://ci.cflmy.cn/repos/5/pipeline/3 |
| 4 | manual (`contract.yml`) | `1a9f3a4c` | success | 69 s | https://ci.cflmy.cn/repos/5/pipeline/4 |
| 5 | push (`master`, CI evidence commit + binary-digest lane) | `44e202e9` | success | 31 s | https://ci.cflmy.cn/repos/5/pipeline/5 |
Pipeline 2 was not created for this release; the numbers are Woodpecker's
repository-wide counter (the same runner also serves other repositories).
## What each lane proved
### Push / tag lane `main.yml`
Steps: `clone`, `test`, `package` — all exit 0.
`test` executed in a clean `rust:1.100-bookworm` container:
- `cargo fmt --all -- --check` — passed
- `cargo clippy --all-targets -- -D warnings` — passed
- `cargo test --locked` — passed, with the same suite counts as the recorded
local environment:
- library unit tests: **69 passed, 0 failed**
- `analysis_document`: **3 passed, 0 failed**
- `document_contract`: **11 passed, 0 failed**
- `formula_contract`: **12 passed, 0 failed**
- doc-tests: 0
- e2e suite: correctly reported as 11 ignored (the shared runner does not
carry the 7.5 GiB pinned Lean/Mathlib backend; see `docs/RELEASE.md` §5)
- `cargo build --release --locked` and `./target/release/marqdo-prove --version`
printed `marqdo-prove 0.1.0-beta.1`
- `package` assembled `dist/marqdo-prove-tool` via `scripts/package-tool.sh`,
archived it and printed `SHA256SUMS`:
`6231edd46519b98594062133f337fc516180a4e4554ae473faadfd64898b86ce marqdo-prove-v0.1.0-beta.1-x86_64-unknown-linux-gnu-tool.tar.gz`
The tag pipeline is the same lane for the tagged commit.
The archive digest differs from the local archive digest
`faa46e93a26538608eb80e9157ee19b4610b456ba5d784eab43070352f88ea40`
because `tar` stores time/ownership metadata; tar archives are not claimed to be
reproducible. The evidence commit (pipeline **#5**) added `sha256sum` of the shipped binary
itself to the CI package log. Measured digests:
| Environment | binary SHA-256 |
| --- | --- |
| local `rustc 1.100.0`, path `/root/work/marqdo-prove` | `7bcbc73dc76802066b50d0a08c86687cb3c44b90af312f6fe1b6272f7f88d34b` |
| CI image `rust:1.100-bookworm`, path `/woodpecker/src/git.cflmy.cn/cflmy/marqdo-prove` | `c29f8526f5f863f29dfcc67df40b3186723b0dbfa3449f6f071d0dee5688ca9b` |
The binaries differ because Rust embeds the absolute build path and the CI image
is not byte-identical to the local toolchain. **No reproducible-build claim is
made for the beta.** Logical identity is the source commit plus the pinned
Lean/Mathlib commit; a reproducible artifact pipeline is stable-release work
(`docs/RELEASE.md` §6 item 5).
The tag `v0.1.0-beta.1` was moved once to the evidence commit containing this
file, so the released tag carries the completed evidence instead of the
"pending" table. Pipeline #3 above validated the pre-move release commit
`1a9f3a4c`; the final tag pipeline number after the move is linked from the
Gitea release page.
### Manual lane `contract.yml` (real upstream CLI)
The shared runner cloned `https://git.cflmy.cn/cflmy/marqdo-cli`, built the real
`marqdo-cli` package, verified `marqdo 3.0.0-rc.4`, and ran Prove's real-CLI
contract tests against it:
- `/tmp/marqdo-cli/target/release/marqdo --version` → `marqdo 3.0.0-rc.4`
- `cargo test --locked --test analysis_document --test document_contract` →
**3 passed, 0 failed** and **11 passed, 0 failed**
This closes, in CI, the clean-container real-CLI integration check that was only
recorded locally in `docs/STATUS.md`: emitted `marqdo.analysis` revision 3 is
consumed by Prove and the negative contract cases fail with the documented
diagnostic codes.
## Release objects
- Gitea prerelease:
https://git.cflmy.cn/cflmy/marqdo-prove/releases/tag/v0.1.0-beta.1
(created via the Gitea API, `prerelease: true`, tag `v0.1.0-beta.1` pointing at
`1a9f3a4c`).
- Woodpecker repository was activated through the API
(`POST /api/repos?forge_remote_id=6`) before the push; the second, idempotent
activation from `scripts/release-beta.sh` returned HTTP 409 (already active).
- CI secret `marqdo_ci_secret` was stored as a Woodpecker repository secret
scoped to `push`, `tag`, `pull_request`, `manual`; no secret value is in git.
## What CI did not cover (and why)
The Lean-backed acceptance suite (`tests/e2e.rs`, 11 tests) still requires the
pinned Lean 4.36 toolchain plus the 7.5 GiB Mathlib olean closure and several
minutes per target. It is green on the recorded dedicated environment
(`docs/STATUS.md`) but is intentionally not executed on the shared docker
runner. Adding a dedicated runner with a cached backend is the first item in the
stable-release backlog (`docs/RELEASE.md` §6).