Skip to content

Commit c0b0aae

Browse files
Brooooooklynclaude
andcommitted
test(deploy): forward e2e credentials through the test:all task allowlist
vp run passes only a task's declared env vars to it, so the live e2e credentials never reached vp test run and the suite skipped even with the secrets injected (both workers reported keys=[VOID_E2E_CF_TOKEN] — the token matched a default, the account id and run id did not). Declare all three in the test:all task's untrackedEnv so they reach the test process without busting the task cache. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019wnwcxjavdb2xys8XGZora
1 parent afa9e9b commit c0b0aae

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎vite.config.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export default defineConfig({
4444
},
4545
'test:all': {
4646
command: 'vp check && vp run build:all && vp run check && vp test run',
47+
// `vp run` passes ONLY the env vars a task declares to that task — not the full environment.
48+
// Without this, the gated live Cloudflare e2e's credentials never reach `vp test run`, so it
49+
// skips even when the CI job injects them. `untrackedEnv` forwards them without folding them
50+
// into the task's cache fingerprint (credentials must not bust the cache).
51+
untrackedEnv: ['VOID_E2E_CF_TOKEN', 'VOID_E2E_CF_ACCOUNT_ID', 'VOID_E2E_RUN_ID'],
4752
},
4853
},
4954
},

0 commit comments

Comments
 (0)