Skip to content

The agent that grows with you

test(vercel): pin the *.sock exclusion in the bulk-download tar script

teknium1f29f6a018735
diff --git a/tests/tools/test_vercel_sandbox_environment.py b/tests/tools/test_vercel_sandbox_environment.py
index dbcf2667e62..4b2694ce8b5 100644
--- a/tests/tools/test_vercel_sandbox_environment.py
+++ b/tests/tools/test_vercel_sandbox_environment.py
@@ -384,6 +384,11 @@ class TestFileSync:
env.cleanup()
env.cleanup()
+ # The remote tar must skip live sockets (gateway.sock) instead of failing the download.
+ tar_scripts = [args[1] for cmd, args, _ in sandbox.run_command_calls
+ if cmd == "bash" and args and args[1].startswith("tar cf ")]
+ assert tar_scripts and all("--exclude='*.sock'" in script for script in tar_scripts)
+
# Credential mounts are upload-only since bcfc7458fa ("fix remote
# sync-back credential overwrite"): the sandbox must never rewrite a
# host credential file, so token.txt keeps its host content, and the