Skip to content

Commit 90701a5

Browse files
committed
feat(e2b): nightly-local.sh uses tracked-only packing module (P0-2)
Replace inline 'tar --exclude=...' with a one-liner that calls scripts.e2b.lib.packing.pack_directory — same git ls-files + denylist + secret-scan guarantees as the e2b sandbox path. Old tar exclusion list was a maintenance hazard (any new sensitive dir like experience/ had to be added in two places) and provided weaker guarantees (didn't catch .env at repo root).
1 parent d4f80b5 commit 90701a5

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

scripts/nightly-local.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ mkdir -p "${REPORT_DIR}"
5151
# Matrix upload steps in tests/e2b/matrix.yaml hardcode /tmp/autosearch-src.tar.gz
5252
# as the source path, so the file on disk has to match that exact name.
5353
TARBALL="/tmp/autosearch-src.tar.gz"
54-
tar --exclude='.git' --exclude='node_modules' --exclude='.venv' \
55-
--exclude='__pycache__' --exclude='.pytest_cache' \
56-
--exclude='*.egg-info' --exclude='reports' --exclude='build' \
57-
--exclude='.ruff_cache' --exclude='.orchestrator' \
58-
-czf "${TARBALL}" .
54+
55+
# Pack tracked files only (P0-2 fix): scripts.e2b.lib.packing applies
56+
# git ls-files + denylist so .env / experience/ / evidence/ never enter
57+
# the sandbox tarball, even if a developer accidentally git-add'd one.
58+
echo "[nightly-local] packing tracked files only via scripts.e2b.lib.packing"
59+
"${PY}" -c "from pathlib import Path; from scripts.e2b.lib.packing import pack_directory; pack_directory(Path('${REPO_ROOT}'), Path('${TARBALL}'))"
5960

6061
PARALLEL="${AUTOSEARCH_PARALLEL:-15}"
6162

0 commit comments

Comments
 (0)