Prove attachment reconciliation under storage faults
This commit is contained in:
Executable
+17
@@ -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"
|
||||
Reference in New Issue
Block a user