Repository navigation
Breaking changes
- Make /stop and /stats/reset POST-only. If you're using the web UI as an api, you'll need to adjust your calls #3567
What's Changed
- chore: move resonse -> response from geventhttpclient and set min geventhttpclient version to 2.5.1 by @even-even in #3540
- chore: up python 3.13 -> 3.14 in dockerfiles and up uv to 0.12.24 by @even-even in #3542
- Percent-encode the request target in FastHttpUser by @SulimanAbdulrazzaq in #3541
- Cancel the web UI run_time timer when a test is stopped or restarted by @SulimanAbdulrazzaq in #3543
- Keep OTEL request names that were already seen when the name cap is reached by @SulimanAbdulrazzaq in #3544
- Accept response_time=None in the OTEL and CSV request listeners by @SulimanAbdulrazzaq in #3545
- Report a malformed HTTP response in FastHttpUser as a failed request by @SulimanAbdulrazzaq in #3549
- Do not report a duplicate shape class when one locustfile imports it from another by @SulimanAbdulrazzaq in #3553
- Keep a fractional spawn rate in the --html report file name by @Lesereingrape in #3555
- Reject a non-finite spawn_rate instead of reporting a successful start by @Lesereingrape in #3557
- Fix RST warnings for **kwargs in Milvus/Qdrant user docstrings by @SatvikMishra08 in #3551
- Create the output directory for --html, --csv, --json-file and --logfile by @SulimanAbdulrazzaq in #3550
- Do not ask users that are already stopping to stop again by @SulimanAbdulrazzaq in #3548
- Use a local server instead of www.locust.io in two test_main tests by @SulimanAbdulrazzaq in #3561
- Keep the worker's message loop alive when a custom message listener raises by @SulimanAbdulrazzaq in #3552
- Do not crash locust_exception_handler when Environment.parsed_options is None by @SulimanAbdulrazzaq in #3562
- Do not skip the next listener when a listener removes itself while the event fires by @SulimanAbdulrazzaq in #3563
- Fire user_error when an exception is raised in User.on_start by @SulimanAbdulrazzaq in #3564
- Fix MongoDBClient querying the wrong database and never running the query by @SulimanAbdulrazzaq in #3565
- Make /stop and /stats/reset POST-only to close CSRF vector by @charan-rathore in #3567
- fix: don't crash the stats history CSV writer on workers with --csv-full-history by @ybai08 in #3568
- test: use local_http_server instead of www.locust.io in test_pytest_locustfile by @piyusha2005-bit in #3569
New Contributors
- @SatvikMishra08 made their first contribution in #3551
- @charan-rathore made their first contribution in #3567
- @ybai08 made their first contribution in #3568
- @piyusha2005-bit made their first contribution in #3569
Full Changelog: 2.46.7...2.47.0