Conversation
…ment NOTE: We are at 50% of coverage, the target is 70%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive continuous integration (CI) workflow, testing infrastructure, and performance/load testing setup for the backend. It adds GitHub Actions CI, Docker Compose configuration for test environments, backend test environment variables, and a full load testing suite using k6. Documentation and status badges are also updated to reflect these improvements.
CI & Testing Infrastructure:
.github/workflows/ci.yml) that runs backend tests with coverage, performs TypeScript checks, builds Docker images, and includes a deploy-to-staging step for themainbranch. The workflow also enforces a minimum 70% code coverage threshold and uploads results to Codecov.docker-compose.test.yml) to spin up isolated test services for Postgres, Redis, MailHog, and the backend, with appropriate health checks and optimized settings for testing and load scenarios..env.testfile for the backend, specifying environment variables tailored for test runs, including database, Redis, API key, SMTP, and rate limiting configuration.Performance & Load Testing:
load-testsdirectory to the backend with a detailedREADME.mdexplaining how to run performance and load tests using k6, including scenarios, targets, and troubleshooting tips.ingestion.js) that simulates various log ingestion scenarios (sustained, burst, ramp-up), collects latency and error metrics, and outputs a summary report.Documentation & Status Badges:
README.mdto include CI and code coverage badges, providing visibility into build and test status.