The multiline if/printf block was truncated by the runner shell, so the contract lane aborted with a syntax error after all protocol consumers had already passed. Replace it with a single Python byte-append and an && guard; the assertion still requires the stale artifact to be rejected.
This commit is contained in:
1 parent
1543d33c8a
commit
31ccfe15f8
1 file changed
+3
-4
@@ -31,12 +31,11 @@ steps:
|
||||
- python3 tools/ci/verify_observation_stream.py /tmp/control-events.jsonl /tmp/control-observation.json
|
||||
- |
|
||||
set -eu
|
||||
cp /tmp/control-analysis.json /tmp/analysis-stale.json
|
||||
printf ' ' >> /tmp/analysis-stale.json
|
||||
if python3 tests/consumers/observation_consumer.py --analysis /tmp/analysis-stale.json /tmp/control-events.jsonl; then
|
||||
python3 -c 'import pathlib; p = pathlib.Path("/tmp/control-analysis.json"); pathlib.Path("/tmp/analysis-stale.json").write_bytes(p.read_bytes() + b" ")'
|
||||
python3 tests/consumers/observation_consumer.py --analysis /tmp/analysis-stale.json /tmp/control-events.jsonl && {
|
||||
echo "stale Analysis was accepted" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
echo "stale Analysis rejected"
|
||||
|
||||
test:
|
||||
|
||||
Reference in new issue
Block a user