Skip to content

Commit afa9e9b

Browse files
Brooooooklynclaude
andcommitted
ci: locate where the e2e account var is stripped (step shell vs vitest main)
test.env forwarding did not help, so the account var is likely lost before the vitest main process. Log the var lengths in the CI step shell and at vite config load to pinpoint where it disappears. Temporary. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019wnwcxjavdb2xys8XGZora
1 parent d5f8e58 commit afa9e9b

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
- run: vp exec playwright install chromium
5555
if: ${{ contains(matrix.os, 'windows') }}
5656

57+
# TEMP diagnostic (remove after): confirm the step shell has all three vars before `vp run`.
58+
- name: e2e env in step shell (debug)
59+
run: node -e "console.log('[[STEP]] token', (process.env.VOID_E2E_CF_TOKEN||'').length, 'account', (process.env.VOID_E2E_CF_ACCOUNT_ID||'').length, 'runid', (process.env.VOID_E2E_RUN_ID||'').length)"
60+
5761
- run: vp run test:all
5862

5963
done:

‎vite.config.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ const e2eWorkerEnv = {
1313
VOID_E2E_CF_ACCOUNT_ID: process.env.VOID_E2E_CF_ACCOUNT_ID ?? '',
1414
VOID_E2E_RUN_ID: process.env.VOID_E2E_RUN_ID ?? '',
1515
};
16+
// TEMP diagnostic (remove after): does the vitest MAIN config process have the vars? If account is 0
17+
// here while the CI step shell had 32, the env is filtered before vitest (in `vp run`), so test.env
18+
// cannot recover it.
19+
console.error(
20+
`[[CFG]] token=${(process.env.VOID_E2E_CF_TOKEN ?? '').length} account=${(process.env.VOID_E2E_CF_ACCOUNT_ID ?? '').length} runid=${(process.env.VOID_E2E_RUN_ID ?? '').length}`,
21+
);
1622

1723
// Windows CI runners are 2-3x slower for builds and server startup.
1824
const ciTimeoutScale = process.platform === 'win32' ? 3 : 1;

0 commit comments

Comments
 (0)