Abort startup on an unknown PIXA_ environment variable (closes #133) #136

Merged
clawbot merged 2 commits from issue-133-unknown-pixa-variables into next 2026-09-28 16:12:58 +02:00
2 Commits
Author SHA1 Message Date
sneak 09c627bf8b Abort startup on an unknown PIXA_ environment variable (closes #133)
check / check (push) Successful in 2m58s
A variable whose name starts with PIXA_ but is neither a setting's
variable, from the list pairing each config key with its variable, nor
PIXA_CONFIG_PATH now aborts startup naming it, as an unknown config key
does. PIXA_PORT is named with a pointer to PORT. The check runs after
the config file loads, so the variables the file's env section sets are
checked too. README.md says so under Configuration.

Model: opus-5-5
2026-09-28 13:53:27 +00:00
sneak 3bcb2cd6e5 test: an unknown PIXA_ environment variable aborts startup (closes #133)
Tests, written before the change, for the check of PIXA_ names at
startup: a PIXA_ variable that is not a setting's variable aborts naming
it, PIXA_PORT aborts with a message saying to use PORT, and
PIXA_CONFIG_PATH and every setting's variable are accepted. Two tests
run New, as the server does at startup: one with a misspelled variable
in the environment, one with it in the config file's env section. They
call validateKnownEnvVars, which the change adds, so the package does
not build until it lands.

Model: opus-5-5
2026-09-28 13:53:27 +00:00