From 4f3a9bff298bb5ecfbb9a73388c6672b4b53fc1c Mon Sep 17 00:00:00 2001 From: cflmy Date: Tue, 24 Nov 2026 17:40:54 +0800 Subject: [PATCH] docs: describe the current CI protocol gates --- crates/cli/tests/docs_consistency.rs | 6 +++++- docs/ci.md | 18 ++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/crates/cli/tests/docs_consistency.rs b/crates/cli/tests/docs_consistency.rs index 9928878..147830a 100644 --- a/crates/cli/tests/docs_consistency.rs +++ b/crates/cli/tests/docs_consistency.rs @@ -209,7 +209,11 @@ fn has_hex_sha(text: &str) -> bool { #[test] fn ci_configuration_uses_only_current_protocols() { 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)); for retired in [ "--event-stream", diff --git a/docs/ci.md b/docs/ci.md index 10d567d..12c2666 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -19,12 +19,14 @@ test: apt install curl/ca-certificates/python3/python3-jsonschema + Node.js 22 cargo fmt --all -- --check 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 run --locked -p marqdo-cli -- run \ - tests/consumers/fixtures/execution-events/basic.mq.md --event-stream jsonl \ - > /tmp/execution-events.jsonl - python3 tests/consumers/execution_events_consumer.py /tmp/execution-events.jsonl + check + run tests/consumers/fixtures/observation/basic.mq.md + analysis_consumer.py / observation_consumer.py (stream + snapshot) + check + run the nested-loop control-flow conformance fixture + 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 architecture_boundaries cargo test -p marqdo-cli --test stdlib_product @@ -34,9 +36,13 @@ test: build (depends on test): 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 syntax; Debian bookworm's Node 18 fails those tests.