Skip to content

Commit f2b8dd1

Browse files
dzhelezovclaude
andcommitted
build: pin fast-check exactly (3.23.2) and copy the resolved tree wholesale
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 85670c2 commit f2b8dd1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/sync-upstream.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ if [ "${2:-}" = "--test" ]; then
6767
# because renaming the core to @subsquid/ponder orphans sibling workspace packages (e.g. benchmark's
6868
# `ponder@workspace:*`), so a lockfile re-resolve (which a new package.json dep would force) fails.
6969
echo "▶ provisioning fast-check (dev-only, for the property tests)"
70-
# OUTSIDE the clone so npm doesn't walk up into the pnpm workspace root.
70+
# OUTSIDE the clone so npm doesn't walk up into the pnpm workspace root. Pinned exactly for
71+
# reproducible CI; the whole resolved tree is copied so transitive deps can never be missed.
7172
FCDIR="$(mktemp -d)"
72-
( cd "$FCDIR" && npm init -y >/dev/null 2>&1 && npm install --no-audit --no-fund --silent fast-check@^3 )
73-
cp -R "$FCDIR/node_modules/fast-check" "$FCDIR/node_modules/pure-rand" "$CORE/node_modules/"
73+
( cd "$FCDIR" && npm init -y >/dev/null 2>&1 && npm install --no-audit --no-fund --silent fast-check@3.23.2 )
74+
cp -R "$FCDIR/node_modules/." "$CORE/node_modules/"
7475
rm -rf "$FCDIR"
7576
echo "▶ running Portal-layer tests"
7677
( cd "$CORE" && pnpm exec vitest run --config vite.portal.config.ts )

0 commit comments

Comments
 (0)