ci: keep the contract lane short and make Bundle materialization idempotent
ci/woodpecker/pr/main Pipeline was successful
ci/woodpecker/push/main Pipeline was successful

Woodpecker executes the job commands as one shell script; the inline contract
block plus its trailing commands exceeded the runner's command buffer and the
last command was truncated mid-argument (the raw log shows the shell received
'python3 tools/c'). Move the lane into tools/ci/contract_lane.sh and keep the
CI commands short, preserving every check.

CI jobs share one workspace, so a second job saw 'output already exists' from
the first fetch. The helper now reuses an output only after verifying it against
the pin, builds into a temporary sibling and moves it into place atomically.

Refs cflmy/marqdo-cli#11
This commit was merged in pull request #17.
This commit is contained in:
cflmy committed 2026-11-27 01:21:46 +08:00
1 parent 72f57beee0
commit deadf6edee
10 files changed
+31907 -20

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ Bundle, runs the from-archive smoke and the frozen external conformance suite.
```text
contract (rust:1.100-bookworm, python3-jsonschema, both shipped binaries):
cargo build --locked -p marqdo-cli -p marqdo-provider-worker
real CLI check/run over the Observation fixtures
bash tools/ci/contract_lane.sh (real CLI check/run over the Observation fixtures)
analysis_consumer / observation_consumer / validate_protocols
stream==snapshot assertion (tools/ci/verify_observation_stream.py)
stale-Analysis rejection