docs: describe the current CI protocol gates

This commit is contained in:
cflmy committed 2026-11-24 17:40:54 +08:00
1 parent 09ab131b96
commit 4f3a9bff29
2 files changed
+17 -7

No files matched your search

+5 -1
View File
@@ -209,7 +209,11 @@ fn has_hex_sha(text: &str) -> bool {
#[test] #[test]
fn ci_configuration_uses_only_current_protocols() { fn ci_configuration_uses_only_current_protocols() {
let root = repo_root(); let root = repo_root();
for relative in [".woodpecker/main.yml", ".github/workflows/ci.yml"] { for relative in [
".woodpecker/main.yml",
".github/workflows/ci.yml",
"docs/ci.md",
] {
let text = read(&root.join(relative)); let text = read(&root.join(relative));
for retired in [ for retired in [
"--event-stream", "--event-stream",
+12 -6
View File
@@ -19,12 +19,14 @@ test:
apt install curl/ca-certificates/python3/python3-jsonschema + Node.js 22 apt install curl/ca-certificates/python3/python3-jsonschema + Node.js 22
cargo fmt --all -- --check cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings cargo clippy --workspace --all-targets -- -D warnings
cargo build --locked -p marqdo-provider-worker cargo build --locked -p marqdo-cli -p marqdo-provider-worker
cargo test --workspace --locked cargo test --workspace --locked
cargo run --locked -p marqdo-cli -- run \ check + run tests/consumers/fixtures/observation/basic.mq.md
tests/consumers/fixtures/execution-events/basic.mq.md --event-stream jsonl \ analysis_consumer.py / observation_consumer.py (stream + snapshot)
> /tmp/execution-events.jsonl check + run the nested-loop control-flow conformance fixture
python3 tests/consumers/execution_events_consumer.py /tmp/execution-events.jsonl validate_protocols.py / analysis_consumer.py --require-transfers
observation_consumer.py (stream, snapshot, stale-Analysis rejection)
stream JSONL == snapshot events assertion
cargo test -p marqdo-cli --test docs_consistency cargo test -p marqdo-cli --test docs_consistency
cargo test -p marqdo-cli --test architecture_boundaries cargo test -p marqdo-cli --test architecture_boundaries
cargo test -p marqdo-cli --test stdlib_product cargo test -p marqdo-cli --test stdlib_product
@@ -34,9 +36,13 @@ test:
build (depends on test): build (depends on test):
cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
package + cold-install smoke (which now validates live Execution Events v1) package + cold-install smoke (current Analysis/Observation contracts)
``` ```
The pipeline is a protocol consumer itself: it must exercise only the current
Analysis and Observation contracts. `docs_consistency::ci_configuration_uses_only_current_protocols`
fails if a retired option or consumer name returns.
Node.js 22 is required because the optional foreign-kernel tests use ES-module Node.js 22 is required because the optional foreign-kernel tests use ES-module
syntax; Debian bookworm's Node 18 fails those tests. syntax; Debian bookworm's Node 18 fails those tests.