fix(vector): track packaged migrations in restore smoke
This commit is contained in:
@@ -86,4 +86,14 @@ PATH="$fakebin:$PATH" RESTORE_LOG="$tmp/restore.log" ./scripts/vector-restore.sh
|
||||
grep -q -- '--single-transaction' "$tmp/restore.log"
|
||||
grep -q -- '--exit-on-error' "$tmp/restore.log"
|
||||
|
||||
# The live restore smoke must follow the packaged migration set instead of a stale
|
||||
# hard-coded count when a new migration is added.
|
||||
if grep -Fq 'SELECT count(*) = 3 FROM public.tht_vector_migrations' \
|
||||
scripts/local-vector-smoke.sh; then
|
||||
echo "local vector smoke hard-codes the pre-004 migration count" >&2
|
||||
exit 1
|
||||
fi
|
||||
grep -Fq 'expected_migrations=' scripts/local-vector-smoke.sh
|
||||
grep -Fq 'applied_migrations=' scripts/local-vector-smoke.sh
|
||||
|
||||
echo "vector backup/restore filesystem, identity, and transaction contracts passed."
|
||||
|
||||
Reference in New Issue
Block a user