Skip to content

Commit 44f0779

Browse files
committed
Merge branch 'master' into fix-2575-invalid-host
2 parents ffcab13 + 50bf37e commit 44f0779

40 files changed

+142
-113
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ b5324820b299b1fe7da0608f0cc8ec47f58b1e40
1111
60f3bceacc4ab9567433d40ae3ed280750f55ff1
1212
# sort imports using ruff
1313
f99e9df700a8020e4c1967eb42dcb37ddd26e296
14+
# apply ruff 0.3.0
15+
64428a0b4dfc75a00b175b4231db33704d8f5d36

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ __pycache__
2929
yarn-error.log
3030
.venv
3131
.DS_Store
32+
.python-version

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
# Detailed changelog
22
The most important changes can also be found in [the documentation](https://docs.locust.io/en/latest/changelog.html).
33

4+
## [2.24.0](https://github.com/locustio/locust/tree/2.24.0) (2024-02-29)
5+
6+
[Full Changelog](https://github.com/locustio/locust/compare/2.23.1...2.24.0)
7+
8+
**Fixed bugs:**
9+
10+
- Blank page when accessing Locust Web UI via reverse proxy with subpath [\#2614](https://github.com/locustio/locust/issues/2614)
11+
- \[Report\]\[Modern-UI\] HTML report is blank [\#2603](https://github.com/locustio/locust/issues/2603)
12+
13+
**Closed issues:**
14+
15+
- SocketIOUser send method supports specific subscribe request [\#2616](https://github.com/locustio/locust/issues/2616)
16+
- "Sticky" user types on workers [\#2522](https://github.com/locustio/locust/issues/2522)
17+
18+
**Merged pull requests:**
19+
20+
- Modern UI - Fix logo asset [\#2618](https://github.com/locustio/locust/pull/2618) ([andrewbaldwin44](https://github.com/andrewbaldwin44))
21+
- Bugfix/2614 relative assets and stats links [\#2615](https://github.com/locustio/locust/pull/2615) ([skyanth](https://github.com/skyanth))
22+
- \[Modern UI\] Refactor and Add Tests for Entrypoints [\#2613](https://github.com/locustio/locust/pull/2613) ([andrewbaldwin44](https://github.com/andrewbaldwin44))
23+
- Implement pyproject.toml support for Locust configuration [\#2612](https://github.com/locustio/locust/pull/2612) ([alzex3](https://github.com/alzex3))
24+
- Update Header Logo to Higher Resolution for the Modern UI [\#2611](https://github.com/locustio/locust/pull/2611) ([FooQoo](https://github.com/FooQoo))
25+
- \[Report\]\[Modern-UI\] HTML report is blank [\#2609](https://github.com/locustio/locust/pull/2609) ([andrewbaldwin44](https://github.com/andrewbaldwin44))
26+
- pluggable dispatcher logic [\#2606](https://github.com/locustio/locust/pull/2606) ([mgor](https://github.com/mgor))
27+
- Modern UI: Change Footer to Static Positioning [\#2605](https://github.com/locustio/locust/pull/2605) ([andrewbaldwin44](https://github.com/andrewbaldwin44))
28+
- Check that locustfile downloaded from URL is valid Python code [\#2604](https://github.com/locustio/locust/pull/2604) ([DennisKrone](https://github.com/DennisKrone))
29+
430
## [2.23.1](https://github.com/locustio/locust/tree/2.23.1) (2024-02-11)
531

632
[Full Changelog](https://github.com/locustio/locust/compare/2.23.0...2.23.1)

docs/changelog.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Changelog Highlights
44

55
For full details of the Locust changelog, please see https://github.com/locustio/locust/blob/master/CHANGELOG.md
66

7+
2.24.0
8+
======
9+
* Pluggable dispatcher logic https://github.com/locustio/locust/pull/2606
10+
* pyproject.toml support for Locust configuration file https://github.com/locustio/locust/pull/2612
11+
* Minor fixes
12+
713
2.23.1
814
======
915
* Fixes for locustfile download https://github.com/locustio/locust/pull/2599
@@ -542,7 +548,7 @@ instance, as one would expect. For tasks defined under a :py:class:`TaskSet <loc
542548
would refer to the ``TaskSet`` instance.
543549

544550
The ``task_set`` attribute on the ``User`` class (previously ``Locust`` class) has been removed. To declare a
545-
``User`` class with a single ``TaskSet`` one would now use the the :py:attr:`tasks <locust.User.tasks>`
551+
``User`` class with a single ``TaskSet`` one would now use the :py:attr:`tasks <locust.User.tasks>`
546552
attribute instead:
547553

548554
.. code-block:: python
102 KB
Loading

docs/increase-performance.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ For a complete example, see `rest.py <https://github.com/locustio/locust/blob/ma
9090
This feature is new and details of its interface/implementation may change in new versions of Locust.
9191

9292

93+
Connection Handling
94+
===================
95+
96+
By default a user will reuse the same TCP/HTTP connection if possible. To more realistically simulate new users connecting to your application this connection can be manually closed.
97+
98+
.. code-block:: python
99+
100+
@task
101+
def t(self):
102+
self.client.client.clientpool.close()
103+
self.client.get("/") # Here a new connection will be created
104+
105+
93106
API
94107
===
95108

docs/index.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
Locust Documentation
33
=====================
44

5-
.. sidebar:: About locust
6-
7-
Locust is a scalable load testing framework written in Python
8-
9-
* **Website**: `https://locust.io/ <https://locust.io/>`_
10-
* **Source code**: `https://github.com/locustio/locust <https://github.com/locustio/locust>`_
11-
* **Twitter**: `@locustio <https://twitter.com/locustio>`_
12-
135

146
Getting started
157
---------------

docs/logging.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ so using the root logger in your own test scripts will put the message into the
1818
import logging
1919
logging.info("this log message will go wherever the other locust log messages go")
2020
21-
2221
It's also possible to control the whole logging configuration in your own test scripts by using the
2322
``--skip-log-setup`` option. You will then have to
2423
`configure the logging <https://docs.python.org/3/library/logging.config.html>`_ yourself.

docs/running-in-docker.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ On Windows, this command will sometimes cause errors. Windows users should try u
1414

1515
docker run -p 8089:8089 --mount type=bind,source=$pwd,target=/mnt/locust locustio/locust -f /mnt/locust/locustfile.py
1616

17-
1817
Docker Compose
1918
==============
2019

@@ -27,7 +26,6 @@ The above compose configuration could be used to start a master node and 4 worke
2726

2827
docker-compose up --scale worker=4
2928

30-
3129
Use docker image as a base image
3230
================================
3331

@@ -37,7 +35,6 @@ official Locust docker image as a base image::
3735
FROM locustio/locust
3836
RUN pip3 install some-python-package
3937

40-
4138
Running a distributed load test on Kubernetes
4239
==============================================
4340

examples/grpc/hello_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)