This commit is contained in:
1 parent
a1a223f53f
commit
c03a8d9d98
6 files changed
+406
-238
No files matched your search
+29
-21
@@ -1,14 +1,14 @@
|
||||
# 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.
|
||||
Ordinary Woodpecker checks use the existing shared image and its released CLI.
|
||||
Pull requests, default-branch pushes and manual runs share one workflow. Rust
|
||||
source, manifest and CI changes also check the minimum supported Rust. Release
|
||||
tags check the pinned historical core and produce the package evidence.
|
||||
|
||||
Configurations:
|
||||
|
||||
- `.woodpecker/main.yml` — self-hosted Woodpecker (push, pull_request, tag).
|
||||
- `.woodpecker/ci.yml` runs ordinary component checks. `.woodpecker/main.yml`
|
||||
runs release-tag compatibility checks, packaging and cold installation.
|
||||
- `.github/workflows/ci.yml` — GitHub Actions mirror (push, pull_request, tag).
|
||||
- `scripts/ci.sh` — the same lanes locally (`test`, `minimum`, `core`,
|
||||
`release`, `all`).
|
||||
@@ -23,12 +23,11 @@ Configurations:
|
||||
|
||||
## 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.
|
||||
Ordinary CI uses the official `3.0.0-rc.5` CLI from the shared image. The tag
|
||||
compatibility step also builds the existing `3.0.0-rc.4` core pin
|
||||
`4bbefc92449ee480c8a2c89b0308feb4cda8d0e7` and runs the real-Analysis tests.
|
||||
Changing the historical pin requires rerunning the tamper fixtures and
|
||||
recording the new Analysis fixture evidence.
|
||||
|
||||
## Gates executed by CI
|
||||
|
||||
@@ -43,16 +42,25 @@ recording a new Analysis fixture artifact.
|
||||
| release build | `cargo build --release --locked` |
|
||||
| deterministic package + cold install | `python3 tools/release/package.py ... && python3 tools/release/smoke.py --archive ...` |
|
||||
|
||||
## Forge publication from the tag lane
|
||||
## Reviewed forge publication
|
||||
|
||||
The tag-only release lane builds and smoke-tests the deterministic archive and
|
||||
then invokes `tools/release/publish-gitea.py` when `GITEA_TOKEN` is present in
|
||||
the step environment. If the Woodpecker instance does not inject repository
|
||||
secrets into tag pipelines, the lane prints a `publish: skipped` notice, keeps
|
||||
the build/smoke evidence, and the prerelease is published from the same tagged
|
||||
SHA by a reviewed local invocation with the token read from a local-only
|
||||
environment file. Never put the token in the repository, pipeline config, logs
|
||||
or documentation.
|
||||
The tag lane prepares assets without credentials. From the clean reviewed tag,
|
||||
select the successful default-branch `ci` pipeline for that exact commit. Keep
|
||||
the archive, its checksum, `RELEASE_INFO.json`, `FILES.sha256`, and
|
||||
`smoke-evidence.json` together. The smoke test verifies and records the released
|
||||
CLI identity used for the cold installation.
|
||||
|
||||
```sh
|
||||
python3 tools/release/publish-gitea.py --prepare \
|
||||
--tag "$release_tag" --pipeline "$component_pipeline" --archive "$archive"
|
||||
```
|
||||
|
||||
The approved publisher runs the same command with `--body-file` in place of
|
||||
`--prepare` and a `GITEA_TOKEN` from the dedicated publisher account. The tool
|
||||
requires applicable branch and tag protection, resumes matching drafts, verifies
|
||||
the bytes on the forge and publishes only a complete inventory. A matching
|
||||
public release is idempotent. A changed asset blocks the operation and needs a
|
||||
new release decision.
|
||||
|
||||
## Not gated by CI (explicit non-claims)
|
||||
|
||||
|
||||
Reference in new issue
Block a user