Optimize test environment to use a smaller MongoDB connection pool size

Update test environment to use MONGO_POOL_SIZE=2 in my.test.env. This is the minimum pool size that handles concurrent operations without timeouts, improving test determinism. Production default remains 5.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ccad3408-03dd-4bf8-9acb-b1d67ab9adcc
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/cf276ff5-4001-4b44-93fe-7c9786ee4327/MVHBPJ5
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
bewest
2026-01-19 13:15:09 -08:00
committed by Ben West
parent 295e1c2c5d
commit 46bd7c559b
2 changed files with 19 additions and 1 deletions
+2
View File
@@ -39,6 +39,8 @@ The frontend utilizes Webpack for asset bundling and features charting with D3/j
| `MONGO_POOL_DEBUG` | (unset) | Set to `true` to enable connection pool event logging |
To restore legacy behavior: `MONGO_POOL_SIZE=100`
Test environment uses `MONGO_POOL_SIZE=2` (configured in `my.test.env`) - the minimum that handles concurrent operations without timeouts.
- **Prediction Array Truncation:** Optional feature to truncate large prediction arrays (IOB, COB, UAM, ZT) in devicestatus documents before storage. Controlled by `PREDICTIONS_MAX_SIZE` environment variable. When set (e.g., `PREDICTIONS_MAX_SIZE=288`), prediction arrays exceeding this limit are truncated to prevent MongoDB issues with excessively large documents. The value 288 represents 24 hours of 5-minute readings. Truncation only occurs when the env var is explicitly set; unset means no truncation.
- **OIDC Actor Identity (Proposed - High Priority):** OpenID Connect integration to replace freeform `enteredBy` with cryptographically-verified actor identities. Enables care coordination, audit trails, and delegation tracking. See `docs/proposals/oidc-actor-identity-proposal.md` for full RFC including: