Commit Graph

6 Commits

Author SHA1 Message Date
beubax 4e7d31a748 test: isolate server storage env 2026-06-15 14:26:23 +05:30
Manoj Bajaj c1a9f66393 fix: add env field to config and disable PostHog in non-prod environments
Adds `env: Literal["prod", "dev", "test"]` to `AuthsomeConfig` (read from
`AUTHSOME_ENV`) so the runtime environment is a first-class config concern
shared across client and server.

Gates `analytics_enabled` on `env == "prod"` in `ServerConfig` so PostHog
is never initialised in dev or test — preventing the background consumer
thread from blocking pytest process exit and causing CI jobs to hang until
the 6-hour GitHub Actions timeout.

Test suite now sets `AUTHSOME_ENV=test` at module level and in the
`_disable_analytics` autouse fixture. The CI workflow also sets it as
defence-in-depth and adds `timeout-minutes: 10` so runaway jobs fail fast.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-10 19:49:41 +05:30
Manoj Bajaj 6fe11073c8 feat: Fix failing tests 2026-06-09 09:06:58 +05:30
Manoj Bajaj 10f6e8ae41 fix: Remove type checking hacks 2026-06-04 21:28:22 +05:30
Ankit Ranjan d1abc48f11 feat: disable analytics automatically when running under pytest and add verification tests 2026-05-22 16:06:43 +05:30
Ankit Ranjan b0835eb299 refactor: decompose monolithic CLI tests into modular, feature-specific test files 2026-05-08 17:41:50 +05:30