Skip to content

fix: isolate tests from developer-local configuration files - #157

Open
paullatzelsperger wants to merge 1 commit into
mainfrom
fix/hermetic-launcher-tests
Open

fix: isolate tests from developer-local configuration files#157
paullatzelsperger wants to merge 1 commit into
mainfrom
fix/hermetic-launcher-tests

Conversation

@paullatzelsperger

@paullatzelsperger paullatzelsperger commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

What this PR changes

prevent test fixtures from reading local develop config from the filesystem, e.g. ~/.appname/

LoadConfigOrPanic searches /etc/appname, $HOME/.appname and the working
directory, so launcher-level tests inherited whatever config files a
developer had (e.g. a postgres setting in ~/.appname/pm.env), making
them fail or silently change behavior. A CFM_CONFIG_DIR environment
variable now overrides the search path exclusively, and the new
fixtures.IsolateConfig helper points it at an empty temp dir in every
test that boots a launcher. Also fixes the broken env cleanup in
TestLoadConfigFromEnvironment, which leaked TESTAPP_* variables into
subsequent tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant