Files
marqdo-view/.github/workflows/ci.yml
T
Marqdo View 340ecb035f
ci/woodpecker/push/woodpecker Pipeline was successful
feat: migrate View 0.3.0 to marqdo 3.0.0-rc.4 contracts
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.
2026-11-25 22:12:51 +08:00

91 lines
2.7 KiB
YAML

name: ci
on:
push:
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_MIN_STACK: "8388608"
jobs:
no-legacy:
name: no retired contracts (G01/G12)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Fail on retired Analysis/Trace/flags/Tool negotiation
shell: bash
run: scripts/check-no-legacy.sh
- name: Current docs describe the rc.4 baseline
shell: bash
run: scripts/check-docs.sh
quality:
name: fmt / clippy / tests
runs-on: ubuntu-24.04
env:
CARGO_HOME: ${{ github.workspace }}/.cargo-home
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.89.0"
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --locked --all-targets -- -D warnings
- name: Tests
run: cargo test --locked
frozen-acceptance:
name: frozen rc.4 acceptance (install / Observation / SSE / export / browser)
runs-on: ubuntu-24.04
needs: [no-legacy, quality]
env:
CARGO_TERM_COLOR: always
RUST_MIN_STACK: "8388608"
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/tests/.cache/pw-browsers
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.89.0"
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Fetch the official frozen rc.4 CLI and verify its identity
shell: bash
run: |
set -euo pipefail
frozen="$(scripts/frozen-beta.sh fetch "$RUNNER_TEMP/marqdo-frozen")"
echo "MARQDO_BIN=$frozen" >> "$GITHUB_ENV"
- name: Install Chromium
run: |
(cd tests/browser && npm ci --no-audit --no-fund)
(cd tests/browser && npx playwright install --with-deps chromium)
- name: Run one-command acceptance (G01-G12)
run: scripts/acceptance.sh
- name: Upload acceptance evidence
uses: actions/upload-artifact@v4
with:
name: view-evidence-${{ github.sha }}
path: |
docs/evidence/452e9a32bd9e40dba427d4180691c58bab74449e/manifest.json
dist/acceptance/manifest.json
dist/acceptance/logs/
dist/marqdo-view-*.tar.gz
dist/marqdo-view-*.tar.gz.sha256
if-no-files-found: error