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

fix(dispatch): UserClasses weight distribution with gcd #2663

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

llirrikk
Copy link
Contributor

@llirrikk llirrikk commented Apr 2, 2024

Fixes #2662

@cyberw
Copy link
Collaborator

cyberw commented Apr 5, 2024

Awesome. Can I ask that you add a unit test that would fail with the old implementation?

@cyberw
Copy link
Collaborator

cyberw commented Apr 5, 2024

Tests seem to hang on python 3.8. That’s really weird..

@llirrikk
Copy link
Contributor Author

llirrikk commented Apr 5, 2024

I fixed the hanging tests in python 3.8. The reason turned out to be that the prototype of the function "math.gcd" was changed in version 3.9. As a result, support is now provided starting from version 3.5. Why exactly "actions" hang and not throw an exception is a good question.
I'll add a commit with tests soon, as you asked

@cyberw
Copy link
Collaborator

cyberw commented Apr 5, 2024

Nice. Support for python 3.8 is deprecated anyway (and it python 3.8 is eol in october, after which we’ll probably stop supporting it), but it is nice that we dont have to kill it right away :)

@llirrikk
Copy link
Contributor Author

llirrikk commented Apr 5, 2024

Added unit tests

@cyberw cyberw merged commit 64d3bc5 into locustio:master Apr 9, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong distribution of virtual users by user classes
2 participants