Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ agents.lock
.agents/skills/warden/
.agents/skills/warden-sweep/
# end
diff-output/
.pnpm-store/
snapshots-head/
snapshots-base/
30 changes: 30 additions & 0 deletions bin/run-snapshots-docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail

REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
IMAGE="mcr.microsoft.com/playwright:v1.58.2-noble"
VOLUME_NAME="sentry-snapshots-node-modules"
OUTPUT_DIR=".artifacts/snapshots"

mkdir -p "$REPO_ROOT/$OUTPUT_DIR"

echo "Running snapshots in Docker (Ubuntu 24.04, matching CI)..."
echo "Output: $REPO_ROOT/$OUTPUT_DIR"

if ! docker volume inspect "$VOLUME_NAME" &>/dev/null; then
echo "First run — installing node_modules (cached for subsequent runs)."
fi

docker run --rm \
--ipc=host \
-v "$REPO_ROOT:/work" \
-v "$VOLUME_NAME:/work/node_modules" \
-w /work \
-e NODE_OPTIONS='--max-old-space-size=4096' \
-e SNAPSHOT_OUTPUT_DIR="$OUTPUT_DIR" \
"$IMAGE" \
bash -c '
corepack enable && corepack prepare pnpm@10.30.2 --activate
pnpm install --frozen-lockfile --store-dir /work/node_modules/.pnpm-store
pnpm run snapshots
'
Loading