ci/woodpecker/push/woodpecker Pipeline was successful
Replace the retired rc.2 Analysis v2/Trace v2/Execution Events v1 stack with the
single current contract family:
- Analysis v3 (ADR-0069 public boundary): one check --emit artifact carries the
exact source, Markdown AST, heading scopes (heading_span + complete span),
anchors, state-bearing references, calls, resources and diagnostics; the old
revision-3 shape is rejected with a rebuild hint.
- Observation v1: one run/call --output jsonl stream (+ atomic
--observation-file snapshot) decoded by one decoder and projected into the
reader/SSE/export layers; stale/malformed/truncated/incomplete never render
as success.
- CLI Tool revision 1: requires {api_revision:1, analysis:3, observation:1},
product range >=3.0.0-rc.3,<4.0.0, only MARQDO_BIN and
MARQDO_API_REVISION are consumed.
- Remove compatibility branches, retired flags/env vars and duplicate decoders;
re-record Analysis v3 and Observation v1 fixtures; rewrite contract,
integration and security tests (173 passing locally).
- Add check-no-legacy/check-docs/check-observation gates, rc.4 pins in the
CI pipelines, 0.3.0 Tool bundle and evidence manifest support.
See issues #4, #5 and #6; acceptance baseline is CLI source
452e9a32bd9e40dba427d4180691c58bab74449e, archive
9c3f166b5e5b8840d39d10019074e4e1c42432fc23e26c69670e64fdcf4e15d8.
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Contract-focused gate: formatting, lints, all tests, CLI Tool revision 1
|
|
# install smoke, static verify and static export against the frozen core.
|
|
# No browser. Current contracts: Analysis revision 3, Observation revision 1.
|
|
#
|
|
# Usage: MARQDO_BIN=/abs/path/marqdo scripts/test-contract.sh
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$repo_root"
|
|
|
|
: "${MARQDO_BIN:?set MARQDO_BIN to the frozen marqdo binary}"
|
|
export PATH="${HOME}/.cargo/bin:${PATH}"
|
|
export CARGO_HOME="${CARGO_HOME:-$repo_root/.cargo-home}"
|
|
|
|
cargo fmt --all -- --check
|
|
cargo clippy --all-targets -- -D warnings
|
|
cargo test --locked
|
|
cargo build --release --locked
|
|
|
|
MARQDO_BIN="$MARQDO_BIN" ./scripts/package.sh
|
|
|
|
export MARQDO_TOOL_HOME="$repo_root/dist/contract-tool-home"
|
|
rm -rf "$MARQDO_TOOL_HOME"
|
|
"$MARQDO_BIN" tool install "$repo_root/dist/marqdo-view/tool.json" >/dev/null
|
|
"$MARQDO_BIN" view --help >/dev/null
|
|
"$MARQDO_BIN" view verify examples/mixed-modes/index.mq.md
|
|
"$MARQDO_BIN" view export examples/tables-math --out "$repo_root/dist/contract-site"
|
|
test -f "$repo_root/dist/contract-site/manifest.json"
|
|
|
|
echo "contract: PASS"
|