Prove attachment reconciliation under storage faults

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 14:20:22 +03:00
parent 55bb55d639
commit 9c15fc3744
4 changed files with 242 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
# Run on an isolated synthetic-data Compose stand. COMPOSE_FILE may include a local override.
set -eu
cd "$(dirname "$0")/.."
mkdir -p evidence/reconciliation
stamp=$(date -u +%Y%m%dT%H%M%SZ)
temporary="evidence/reconciliation/.run-$stamp.tmp"
output="evidence/reconciliation/run-$stamp.json"
trap 'rm -f "$temporary"' EXIT HUP INT TERM
docker compose --env-file .env --profile maintenance build reconcile
docker compose --env-file .env --profile maintenance run --rm -T reconcile python - \
< student-tests/test_reconcile_research.py > "$temporary"
python3 -m json.tool "$temporary" >/dev/null
mv "$temporary" "$output"
trap - EXIT HUP INT TERM
printf 'Reconciliation evidence: %s\n' "$output"