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
|
- python3 tools/ci/verify_observation_stream.py /tmp/control-events.jsonl /tmp/control-observation.json
|
||||||
- |
|
- |
|
||||||
set -eu
|
set -eu
|
||||||
cp /tmp/control-analysis.json /tmp/analysis-stale.json
|
python3 -c 'import pathlib; p = pathlib.Path("/tmp/control-analysis.json"); pathlib.Path("/tmp/analysis-stale.json").write_bytes(p.read_bytes() + b" ")'
|
||||||
printf ' ' >> /tmp/analysis-stale.json
|
python3 tests/consumers/observation_consumer.py --analysis /tmp/analysis-stale.json /tmp/control-events.jsonl && {
|
||||||
if python3 tests/consumers/observation_consumer.py --analysis /tmp/analysis-stale.json /tmp/control-events.jsonl; then
|
|
||||||
echo "stale Analysis was accepted" >&2
|
echo "stale Analysis was accepted" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
}
|
||||||
echo "stale Analysis rejected"
|
echo "stale Analysis rejected"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
|||||||
Reference in new issue
Block a user