Skip to content

test(hermeticity): never let the test suite touch prod Firestore (item 7)#215

Merged
arigatoexpress merged 1 commit into
mainfrom
fix/test-hermeticity
Jun 20, 2026
Merged

test(hermeticity): never let the test suite touch prod Firestore (item 7)#215
arigatoexpress merged 1 commit into
mainfrom
fix/test-hermeticity

Conversation

@arigatoexpress

Copy link
Copy Markdown
Owner

conftest points Firestore at an absent emulator host + throwaway project so unmocked test writes fail fast locally instead of polluting prod (this session's local full-suite runs created junk leads in live data). CI no-op (no ADC there); runtime unaffected. Verified: full suite 1113 passed, prod leads 63→63.

A developer's ADC defaults to the prod project, so unmocked test writes landed in
LIVE customer data (this session's full-suite runs created junk leads in prod —
see memory tho-prod-ops-state). conftest now points Firestore at an absent local
emulator host + a throwaway project, so any unmocked write fails fast LOCALLY
instead of polluting prod. CI already has no ADC (no-op there); runtime/prod is
unaffected (pytest-only). To use a real emulator, start it + set the env yourself.

Verified: full suite 1113 passed locally, prod leads count unchanged (63 -> 63).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@arigatoexpress arigatoexpress merged commit d857723 into main Jun 20, 2026
2 checks passed
@arigatoexpress arigatoexpress deleted the fix/test-hermeticity branch June 20, 2026 03:18
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