fix(ci): treat empty E2E_BASE_URL as missing, not as override #94

Merged
nrupard merged 1 commit from fix/e2e-runner-toolcache into main 2026-06-05 16:35:40 +02:00
Owner

Forgejo Actions resolves an unset secret to the literal empty string rather than to undefined, so process.env.E2E_BASE_URL ?? default did not fall back when the secret was not configured. wait-for-deploy.mjs then built a relative /api/v1/version URL and node's fetch refused it with "Failed to parse URL". Playwright's baseURL had the same bug latent.

Replace ?? with explicit empty/whitespace checks in both spots so the documented https://msp.a8n.systems default actually applies when the secret is missing.

#PMS-140

Forgejo Actions resolves an unset secret to the literal empty string rather than to undefined, so `process.env.E2E_BASE_URL ?? default` did not fall back when the secret was not configured. wait-for-deploy.mjs then built a relative `/api/v1/version` URL and node's fetch refused it with "Failed to parse URL". Playwright's baseURL had the same bug latent. Replace `??` with explicit empty/whitespace checks in both spots so the documented `https://msp.a8n.systems` default actually applies when the secret is missing. #PMS-140
fix(ci): treat empty E2E_BASE_URL as missing, not as override
All checks were successful
Check / fmt + clippy + compile + tests (pull_request) Successful in 1m34s
Create release / Create release from merged PR (pull_request) Has been skipped
0de61637c0
Forgejo Actions resolves an unset secret to the literal empty string rather than to undefined, so `process.env.E2E_BASE_URL ?? default` did not fall back when the secret was not configured. wait-for-deploy.mjs then built a relative `/api/v1/version` URL and node's fetch refused it with "Failed to parse URL". Playwright's baseURL had the same bug latent.

Replace `??` with explicit empty/whitespace checks in both spots so the documented `https://msp.a8n.systems` default actually applies when the secret is missing.

#PMS-140
nrupard deleted branch fix/e2e-runner-toolcache 2026-06-05 16:35:40 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-server!94
No description provided.