[Testing / CI/CD] Ability to automate scale testing with a mock server and test different datasets, loadgen, etc. and run it as a part of CI/CD (#274)#274
Conversation
jjk-g
left a comment
There was a problem hiding this comment.
overall lgtm
Thoughts on creating a top level tests directory and putting the e2e directory under tests?
Thanks for raising this — great point. In most open-source Python projects, there are two common patterns for organizing E2E tests:
Given our current setup — with Keeping E2E tests in a separate top-level
CC: @jjk-g |
Update: python version as matrix variable in action Fix: PDM python version as same as assgined (pdm use the latest python version by default)
|
add a new commit:
|
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: huaxig, jjk-g The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
This introduces an e2e testing using a mock server to enable automated scale testing as part of our CI/CD pipeline.
Key changes include:
basic_mock_client_benchmarkis added. This test runs a benchmark with the mock client, generates reports, and asserts key metrics like achieved request rate and success count.run_benchmark_minimalfunction is created to simplify the process of running benchmarks in tests. It handles configuration, execution, and result parsing.pdm run test:e2ecommand to easily run the end-to-end tests in our CI/CD workflow or Dev Env.Note: there are few more commits to add test to CI workflow