test(e2e): aggregate-all-missing env vars in a preflight setup project #98
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/e2e-runner-toolcache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
env.ts threw at the FIRST missing required var, so a CI run with five unset Forgejo secrets only ever reported
Missing required env var E2E_EMAILper attempt. The operator had to fix one, rerun, see the next missing one, fix that, rerun, and so on - five trips minimum.Add
preflightRequiredEnv()in lib/env.ts that walks the full required-var list and throws a single error listing every gap with a one-line purpose for each. Wire it through a newpreflightsetup project (tests/preflight.setup.ts) thatsetupandauth-uiboth depend on;apialready depends onsetupso it inherits the gate transitively.auth-uiwas previously dependency-free, so on a misconfigured CI it raced past preflight straight into a SPA-form failure deep in the test. The new dependency makes its failure mode match the rest: one clean error from preflight, not three different exceptions across three projects.#PMS-140