Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--iterations with locust==2.33.0 and locust-plugins==4.5.3 #3071

Closed
2 tasks done
raphaelcamus opened this issue Mar 6, 2025 · 0 comments
Closed
2 tasks done

--iterations with locust==2.33.0 and locust-plugins==4.5.3 #3071

raphaelcamus opened this issue Mar 6, 2025 · 0 comments
Labels

Comments

@raphaelcamus
Copy link

Prerequisites

Description

Hi,

I had a hard time finding out why my script would not run on pipeline while it was working locally.
I found the difference: locally I had locust 2.32.9 and on ci 2.33.0

I am using the --iterations parameter from locust-plugins, and with locust 2.33.0, I am getting:

16:34:18 Traceback (most recent call last):
16:34:18 File "/var/jenkins_home/jobs/qa-load-tests/workspace/venv/bin/locust", line 8, in
16:34:18 sys.exit(main())
16:34:18 File "/var/jenkins_home/jobs/qa-load-tests/workspace/venv/lib/python3.9/site-packages/locust/main.py", line 668, in main
16:34:18 save_html_report()
16:34:18 File "/var/jenkins_home/jobs/qa-load-tests/workspace/venv/lib/python3.9/site-packages/locust/main.py", line 653, in save_html_report
16:34:18 process_html_filename(options)
16:34:18 File "/var/jenkins_home/jobs/qa-load-tests/workspace/venv/lib/python3.9/site-packages/locust/html.py", line 32, in process_html_filename
16:34:18 html_filename = html_filename.replace(option_term, str(int(option_value)))
16:34:18 TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
16:34:18 Traceback (most recent call last):
16:34:18 File "/var/jenkins_home/jobs/qa-load-tests/workspace/qa/load-qa/launch_test.py", line 259, in
16:34:18 main()
16:34:18 File "/var/jenkins_home/jobs/qa-load-tests/workspace/qa/load-qa/launch_test.py", line 228, in main
16:34:18 subprocess.run(command, shell=True, check=True)
16:34:18 File "/usr/local/lib/python3.9/subprocess.py", line 528, in run
16:34:18 raise CalledProcessError(retcode, process.args,

locust==2.32.9 locust-plugins==4.5.3 => OK
locust==2.33.0 locust-plugins==4.5.3 => KO

Command line

locust --headless --host https://my.website.net --users 1 --iterations 1 --csv results/2025-03-06--15-34-13 --html results/2025-03-06--15-34-13.html --logfile results/2025-03-06--15-34-13.log --exit-code-on-error 0

Locustfile contents

use any basic locust script and run without -r and -t but with --iterations instead

Python version

3.9

Locust version

2.33.0

Operating system

any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant