Prepare verified laboratory 5 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 276dbdad8a
commit 57a253e0b4
122 changed files with 13404 additions and 72 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
GO=${GO:-go}
cd "$ROOT/backend"
gofmt -w internal/adapter/repository/postgres/pipeline_integration_test.go
CGO_ENABLED=0 "$GO" test -c -o "$ROOT/pipeline-db.test" ./internal/adapter/repository/postgres
cd "$ROOT"
"$ROOT/scripts/compose.sh" stop worker
trap '"$ROOT/scripts/compose.sh" up -d worker' EXIT
"$ROOT/scripts/compose.sh" run --rm --no-deps --entrypoint /pipeline-db.test -e RUN_PIPELINE_DB_TESTS=1 -v "$ROOT/pipeline-db.test:/pipeline-db.test:ro" worker -test.v -test.run '^Test(ReplayAfterCompletedPreviousVersionCleanup|VersionedPipelineDuplicateReorderRetryAndCleanup)$'