fix(release): include local PDF fixtures in both full gates

This commit is contained in:
Hermes
2026-11-26 18:19:30 +10:00
parent d6f66656e0
commit bca532350c
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -28,6 +28,10 @@ env_before=$(sha256sum "$prod/.env" | cut -d' ' -f1)
# Fresh full gate for this exact main push; the dev approval can be days old.
cp "$prod/$index" "$checkout/$index"
sqlite3 "$prod/smeta-web.db" ".backup $checkout/smeta-web.db"
mkdir -p "$checkout/tests/fixtures/tsn_local"
for pdf in tsn3-1.pdf index222.pdf; do
cp "$prod/tests/fixtures/tsn_local/$pdf" "$checkout/tests/fixtures/tsn_local/$pdf"
done
APP_DIR="$checkout" COPY_DIR=/home/mcp-user/smeta-prod-auto-predeploy \
bash "$checkout/scripts/predeploy-tests.sh" > "$log" 2>&1 || {
tail -30 "$log" >&2
+4
View File
@@ -37,6 +37,10 @@ fi
git -C "$stage" merge --ff-only "$sha"
cp "$prod/$index" "$stage/$index"
sqlite3 "$prod/smeta-web.db" ".backup $stage/smeta-web.db"
mkdir -p "$stage/tests/fixtures/tsn_local"
for pdf in tsn3-1.pdf index222.pdf; do
cp "$prod/tests/fixtures/tsn_local/$pdf" "$stage/tests/fixtures/tsn_local/$pdf"
done
test "$(stat -c %i "$prod/smeta-web.db")" != "$(stat -c %i "$stage/smeta-web.db")"
test "$(readlink -f "$prod/smeta-web.db")" != "$(readlink -f "$stage/smeta-web.db")"
python3 "$stage/scripts/shadow/preflight.py" "$stage/.env"