Repository navigation
Conversation
- Updated method signatures in analytics, auth, and ingest services to use multi-line formatting for parameters. - Changed logging level from info to debug in IngestController and EventProducer for more granular logging. - Enhanced readability of the ClientRetentionCache documentation. - Improved message publishing logic in EventProducer to handle fire-and-forget scenarios. - Cleaned up email template utility functions for better formatting. - Removed unnecessary blank lines and consolidated HTML escaping logic in html.utils.ts.
Refactor code for improved readability and consistency
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (24)
📝 WalkthroughWalkthroughAdds k6 ingestion load tests and RabbitMQ monitoring, documents sustained-load results, supports configurable publisher confirmations, adds an email verification backfill, and includes logging, formatting, ignore-rule, and documentation updates. ChangesLoad testing and ingestion throughput
Email verification backfill
Code presentation and logging maintenance
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant K6 as k6 load test
participant IngestAPI
participant EventProducer
participant RabbitMQ
K6->>IngestAPI: POST ingest payload
IngestAPI->>EventProducer: publish API hit event
EventProducer->>RabbitMQ: publish message
IngestAPI-->>K6: return 202 response
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Biome (2.5.3)server/scripts/k6/capacity-breaking-point.jsFile contains syntax errors that prevent linting: Line 1: Illegal use of an import declaration outside of a module; Line 2: Illegal use of an import declaration outside of a module; Line 3: Illegal use of an import declaration outside of a module; Line 27: Illegal use of an export declaration outside of a module; Line 55: Illegal use of an export declaration outside of a module server/scripts/k6/ingest-load-test.jsFile contains syntax errors that prevent linting: Line 1: Illegal use of an import declaration outside of a module; Line 2: Illegal use of an import declaration outside of a module; Line 3: Illegal use of an import declaration outside of a module; Line 46: Illegal use of an export declaration outside of a module; Line 64: Illegal use of an export declaration outside of a module server/scripts/k6/capacity-ceiling-retest.jsFile contains syntax errors that prevent linting: Line 1: Illegal use of an import declaration outside of a module; Line 2: Illegal use of an import declaration outside of a module; Line 3: Illegal use of an import declaration outside of a module; Line 27: Illegal use of an export declaration outside of a module; Line 50: Illegal use of an export declaration outside of a module
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This pull request introduces a comprehensive suite of load testing and backfill scripts, along with related documentation and housekeeping improvements. The main focus is on enabling realistic, automated performance testing of the ingestion path using k6, as well as providing one-off scripts for data backfills in MongoDB. Additional changes improve repository hygiene by updating ignore files.
Load testing infrastructure:
ingest-load-test.js,capacity-test.js,capacity-ceiling-retest.js,capacity-breaking-point.js,sustained-load-test.js) for various load and capacity testing scenarios on the ingestion API, including ramp-up, sustained, and breaking point tests. Each script generates realistic traffic and validates system behavior under different loads. [1] [2] [3] [4] [5]monitor-queue.shto poll RabbitMQ queue depth during tests, allowing correlation of HTTP acceptance with backend queue processing.README.mdwith a new section documenting load testing methodology, results, and tuning steps.Data backfill scripts:
backfillEmailVerified.tsto setisEmailVerified=truefor existing users missing this field, preventing retroactive lockouts after verification enforcement.backfillApiHitExpiry.tsscript, which previously set TTL expiry fields on legacy API hit documents.Repository hygiene:
.gitignoreand.dockerignoreto exclude log, CSV, and error files, preventing accidental commits of test artifacts. [1] [2]Minor code quality improvements:
Summary by CodeRabbit
New Features
Performance
Documentation
Chores