locust 2.32.4.dev24__tar.gz → 2.32.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. {locust-2.32.4.dev24 → locust-2.32.5}/PKG-INFO +3 -2
  2. {locust-2.32.4.dev24 → locust-2.32.5}/README.md +2 -1
  3. {locust-2.32.4.dev24 → locust-2.32.5}/locust/_version.py +2 -2
  4. {locust-2.32.4.dev24 → locust-2.32.5}/locust/contrib/fasthttp.py +1 -4
  5. {locust-2.32.4.dev24 → locust-2.32.5}/locust/main.py +3 -0
  6. {locust-2.32.4.dev24 → locust-2.32.5}/locust/rpc/zmqrpc.py +2 -0
  7. {locust-2.32.4.dev24 → locust-2.32.5}/locust/runners.py +2 -2
  8. {locust-2.32.4.dev24 → locust-2.32.5}/pyproject.toml +1 -1
  9. {locust-2.32.4.dev24 → locust-2.32.5}/LICENSE +0 -0
  10. {locust-2.32.4.dev24 → locust-2.32.5}/locust/__init__.py +0 -0
  11. {locust-2.32.4.dev24 → locust-2.32.5}/locust/__main__.py +0 -0
  12. {locust-2.32.4.dev24 → locust-2.32.5}/locust/argument_parser.py +0 -0
  13. {locust-2.32.4.dev24 → locust-2.32.5}/locust/clients.py +0 -0
  14. {locust-2.32.4.dev24 → locust-2.32.5}/locust/contrib/__init__.py +0 -0
  15. {locust-2.32.4.dev24 → locust-2.32.5}/locust/contrib/mongodb.py +0 -0
  16. {locust-2.32.4.dev24 → locust-2.32.5}/locust/contrib/postgres.py +0 -0
  17. {locust-2.32.4.dev24 → locust-2.32.5}/locust/debug.py +0 -0
  18. {locust-2.32.4.dev24 → locust-2.32.5}/locust/dispatch.py +0 -0
  19. {locust-2.32.4.dev24 → locust-2.32.5}/locust/env.py +0 -0
  20. {locust-2.32.4.dev24 → locust-2.32.5}/locust/event.py +0 -0
  21. {locust-2.32.4.dev24 → locust-2.32.5}/locust/exception.py +0 -0
  22. {locust-2.32.4.dev24 → locust-2.32.5}/locust/html.py +0 -0
  23. {locust-2.32.4.dev24 → locust-2.32.5}/locust/input_events.py +0 -0
  24. {locust-2.32.4.dev24 → locust-2.32.5}/locust/log.py +0 -0
  25. {locust-2.32.4.dev24 → locust-2.32.5}/locust/py.typed +0 -0
  26. {locust-2.32.4.dev24 → locust-2.32.5}/locust/rpc/__init__.py +0 -0
  27. {locust-2.32.4.dev24 → locust-2.32.5}/locust/rpc/protocol.py +0 -0
  28. {locust-2.32.4.dev24 → locust-2.32.5}/locust/shape.py +0 -0
  29. {locust-2.32.4.dev24 → locust-2.32.5}/locust/stats.py +0 -0
  30. {locust-2.32.4.dev24 → locust-2.32.5}/locust/user/__init__.py +0 -0
  31. {locust-2.32.4.dev24 → locust-2.32.5}/locust/user/inspectuser.py +0 -0
  32. {locust-2.32.4.dev24 → locust-2.32.5}/locust/user/sequential_taskset.py +0 -0
  33. {locust-2.32.4.dev24 → locust-2.32.5}/locust/user/task.py +0 -0
  34. {locust-2.32.4.dev24 → locust-2.32.5}/locust/user/users.py +0 -0
  35. {locust-2.32.4.dev24 → locust-2.32.5}/locust/user/wait_time.py +0 -0
  36. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/__init__.py +0 -0
  37. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/cache.py +0 -0
  38. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/date.py +0 -0
  39. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/deprecation.py +0 -0
  40. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/directory.py +0 -0
  41. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/exception_handler.py +0 -0
  42. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/load_locustfile.py +0 -0
  43. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/rounding.py +0 -0
  44. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/timespan.py +0 -0
  45. {locust-2.32.4.dev24 → locust-2.32.5}/locust/util/url.py +0 -0
  46. {locust-2.32.4.dev24 → locust-2.32.5}/locust/web.py +0 -0
  47. {locust-2.32.4.dev24 → locust-2.32.5}/locust/webui/dist/assets/favicon-dark.png +0 -0
  48. {locust-2.32.4.dev24 → locust-2.32.5}/locust/webui/dist/assets/favicon-light.png +0 -0
  49. {locust-2.32.4.dev24 → locust-2.32.5}/locust/webui/dist/assets/index-CwF7Fst2.js +0 -0
  50. {locust-2.32.4.dev24 → locust-2.32.5}/locust/webui/dist/auth.html +0 -0
  51. {locust-2.32.4.dev24 → locust-2.32.5}/locust/webui/dist/index.html +0 -0
  52. {locust-2.32.4.dev24 → locust-2.32.5}/locust/webui/dist/report.html +0 -0
  53. {locust-2.32.4.dev24 → locust-2.32.5}/poetry.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.32.4.dev24
3
+ Version: 2.32.5
4
4
  Summary: Developer-friendly load testing framework
5
5
  Home-page: https://locust.io/
6
6
  License: MIT
@@ -50,7 +50,8 @@ Description-Content-Type: text/markdown
50
50
 
51
51
  # Locust
52
52
 
53
- [![PyPI](https://img.shields.io/pypi/v/locust.svg)](https://pypi.org/project/locust/)<!--![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Flocustio%2Flocust%2Fmaster%2Fpyproject.toml)-->[![Downloads](https://pepy.tech/badge/locust/week)](https://pepy.tech/project/locust)
53
+ [![PyPI](https://img.shields.io/pypi/v/locust.svg)](https://pypi.org/project/locust/)<!--![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Flocustio%2Flocust%2Fmaster%2Fpyproject.toml)-->
54
+ [![Downloads](https://pepy.tech/badge/locust/week)](https://pepy.tech/project/locust)
54
55
  [![Build Status](https://github.com/locustio/locust/workflows/Tests/badge.svg)](https://github.com/locustio/locust/actions?query=workflow%3ATests)
55
56
  [![GitHub contributors](https://img.shields.io/github/contributors/locustio/locust.svg)](https://github.com/locustio/locust/graphs/contributors)
56
57
  [![Support Ukraine Badge](https://bit.ly/support-ukraine-now)](https://github.com/support-ukraine/support-ukraine)
@@ -1,6 +1,7 @@
1
1
  # Locust
2
2
 
3
- [![PyPI](https://img.shields.io/pypi/v/locust.svg)](https://pypi.org/project/locust/)<!--![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Flocustio%2Flocust%2Fmaster%2Fpyproject.toml)-->[![Downloads](https://pepy.tech/badge/locust/week)](https://pepy.tech/project/locust)
3
+ [![PyPI](https://img.shields.io/pypi/v/locust.svg)](https://pypi.org/project/locust/)<!--![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Flocustio%2Flocust%2Fmaster%2Fpyproject.toml)-->
4
+ [![Downloads](https://pepy.tech/badge/locust/week)](https://pepy.tech/project/locust)
4
5
  [![Build Status](https://github.com/locustio/locust/workflows/Tests/badge.svg)](https://github.com/locustio/locust/actions?query=workflow%3ATests)
5
6
  [![GitHub contributors](https://img.shields.io/github/contributors/locustio/locust.svg)](https://github.com/locustio/locust/graphs/contributors)
6
7
  [![Support Ukraine Badge](https://bit.ly/support-ukraine-now)](https://github.com/support-ukraine/support-ukraine)
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
14
14
  version_tuple: VERSION_TUPLE
15
15
 
16
16
 
17
- __version__ = "2.32.4.dev24"
17
+ __version__ = "2.32.5"
18
18
  version = __version__
19
- __version_tuple__ = (2, 32, 4, "dev24")
19
+ __version_tuple__ = (2, 32, 5)
20
20
  version_tuple = __version_tuple__
@@ -96,10 +96,7 @@ def _construct_basic_auth_str(username, password):
96
96
 
97
97
 
98
98
  def insecure_ssl_context_factory():
99
- context = gevent.ssl.create_default_context()
100
- context.check_hostname = False
101
- context.verify_mode = gevent.ssl.CERT_NONE
102
- return context
99
+ return gevent.ssl._create_unverified_context()
103
100
 
104
101
 
105
102
  class FastHttpSession:
@@ -544,6 +544,9 @@ See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-numb
544
544
  # Fire locust init event which can be used by end-users' code to run setup code that
545
545
  # need access to the Environment, Runner or WebUI.
546
546
  environment.events.init.fire(environment=environment, runner=runner, web_ui=web_ui)
547
+ if log.unhandled_greenlet_exception:
548
+ # treat exceptions in init handlers as fatal. They are already logged so no need to log anything more.
549
+ sys.exit(1)
547
550
 
548
551
  if web_ui:
549
552
  web_ui.start()
@@ -64,6 +64,8 @@ class BaseSocket:
64
64
 
65
65
  def ipv4_only(self, host, port) -> bool:
66
66
  try:
67
+ if host == "*":
68
+ return False
67
69
  if str(csocket.getaddrinfo(host, port, proto=csocket.IPPROTO_TCP)).find("Family.AF_INET6") == -1:
68
70
  return True
69
71
  except gaierror as e:
@@ -52,7 +52,7 @@ STATE_INIT, STATE_SPAWNING, STATE_RUNNING, STATE_CLEANUP, STATE_STOPPING, STATE_
52
52
  ]
53
53
  WORKER_REPORT_INTERVAL = 3.0
54
54
  WORKER_LOG_REPORT_INTERVAL = 10
55
- CPU_MONITOR_INTERVAL = 5.0
55
+ CPU_MONITOR_INTERVAL = 10.0
56
56
  CPU_WARNING_THRESHOLD = 90
57
57
  HEARTBEAT_INTERVAL = 1
58
58
  HEARTBEAT_LIVENESS = 3
@@ -283,6 +283,7 @@ class Runner:
283
283
  def monitor_cpu_and_memory(self) -> NoReturn:
284
284
  process = psutil.Process()
285
285
  while True:
286
+ gevent.sleep(CPU_MONITOR_INTERVAL)
286
287
  self.current_cpu_usage = process.cpu_percent()
287
288
  self.current_memory_usage = process.memory_info().rss
288
289
  if self.current_cpu_usage > CPU_WARNING_THRESHOLD:
@@ -296,7 +297,6 @@ class Runner:
296
297
  self.environment.events.usage_monitor.fire(
297
298
  environment=self.environment, cpu_usage=self.current_cpu_usage, memory_usage=self.current_memory_usage
298
299
  )
299
- gevent.sleep(CPU_MONITOR_INTERVAL)
300
300
 
301
301
  @abstractmethod
302
302
  def start(
@@ -5,7 +5,7 @@ build-backend = "poetry_dynamic_versioning.backend"
5
5
  [tool.poetry]
6
6
  name = "locust"
7
7
  description = "Developer-friendly load testing framework"
8
- version = "2.32.4.dev24"
8
+ version = "2.32.5"
9
9
  license = "MIT"
10
10
  readme = "README.md"
11
11
  authors = ["Jonatan Heyman", "Lars Holmberg"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes