From 4bb52eadd801388cf6cd5e986395a0aa72fa3773 Mon Sep 17 00:00:00 2001 From: Jaggob <37583151+Jaggob@users.noreply.github.com> Date: Tue, 9 Jun 2026 11:29:06 +0200 Subject: [PATCH] fix(release): exclude Playwright artefacts from the app tarball The e2e run drops `playwright-report/`, `test-results/`, `blob-report/` and `.playwright/` at the repo root. These are gitignored, but the tarball builder rsyncs the working tree (not `git archive`), so they leaked into the v1.1.0-alpha.3 build and more than doubled its size (516K vs the expected ~290K). Add them to RSYNC_EXCLUDES so a release built right after running the e2e suite stays clean. --- scripts/build-release-tarball.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build-release-tarball.sh b/scripts/build-release-tarball.sh index 1ca46a7..50ced1c 100755 --- a/scripts/build-release-tarball.sh +++ b/scripts/build-release-tarball.sh @@ -85,6 +85,12 @@ RSYNC_EXCLUDES=( --exclude='psalm.xml' --exclude='psalm-baseline.xml' --exclude='dist/' + # Playwright e2e artefacts (gitignored, but rsync copies the working + # tree regardless) — must never end up in the app tarball. + --exclude='test-results/' + --exclude='playwright-report/' + --exclude='blob-report/' + --exclude='.playwright/' ) rsync -a "${RSYNC_EXCLUDES[@]}" "$ROOT_DIR/" "$APP_STAGE/"