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

[JENKINS-40284] - Fix blocked weights with FQ strategies #32

Merged
merged 2 commits into from Jan 16, 2017

Conversation

debanne
Copy link
Contributor

@debanne debanne commented May 16, 2016

When a weight reached 1.00005 for instance, it was never increased
due to the comparison on floats.
Also, the weight was no more increased when the step became too small
compared to the minimum weight. As we are not using integers but
floats, the step must remain proportional to the weight.

@debanne debanne force-pushed the fix_blocked_fq_weights branch 2 times, most recently from 31e9a6b to 4b96638 Compare May 16, 2016 13:57
when a weight reached 1.00005 for instance, it was never increased
due to the comparison on floats.
Also, the weight was no more increased when the step became too small
compared to the minimum weight. As we are not using integers but
floats, the step must remain proportional to the weight.
Note that it is quite hypothetical that it will occure in production,
given the value of Float.MAX_VALUE.
@oleg-nenashev
Copy link
Member

@jenkinsci/code-reviewers

@oleg-nenashev
Copy link
Member

LGTM 👍

@Dohbedoh
Copy link

👍

@alecharp
Copy link
Member

@oleg-nenashev @emsa23 do you thing you could merge this PR and release the plugin?

@oleg-nenashev
Copy link
Member

I can

@oleg-nenashev oleg-nenashev changed the title Fix blocked weights with FQ strategies [JENKINS-40284] - Fix blocked weights with FQ strategies Jan 16, 2017
@oleg-nenashev oleg-nenashev merged commit 5e5657d into jenkinsci:master Jan 16, 2017
@MarkEWaite MarkEWaite added enhancement Improvement or new feature and removed needs-review labels Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement or new feature
Projects
None yet
5 participants