-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add workaround to prevent simultaneous builds from starting on the wrong node (#30) #54
base: main
Are you sure you want to change the base?
Add workaround to prevent simultaneous builds from starting on the wrong node (#30) #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good so far. I think a second delay is acceptable. we should make it configurable.
this also needs some tests, I don't know how to fake time inside Java tests.
I'll ask on Jenkins mailing list later if there's a better way
Can you please fix the conflict? |
d921efe
to
72726d3
Compare
72726d3
to
7e8c9ce
Compare
|
@viceice Any suggestion on how we can proceed with this? Should we skip the missing translation? |
@daniel-beck @timja Sorry for pinging, but do you have any suggestions about this particular issue? This workaround looks wiered to me. |
I don't understand it enough, better to ask on the mailing list with a concise description of the problem, linking here |
@@ -0,0 +1,8 @@ | |||
<div> | |||
<p> | |||
TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't know the best practices, but shouldn't we at lease use the english text here or remove the file to have the default help message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know either. Who can help?
@@ -0,0 +1,3 @@ | |||
<div> | |||
TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
it seems it needs somwe test fixes too |
The failing test |
Strange and unstable things are going on. The following log is without the workaround: 2025-01-23 21:35:00.547+0000 [id=142] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@17dddd48[TestJob1]:
Node3: 1000
: -500
2025-01-23 21:35:00.550+0000 [id=142] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@44b16915[TestJob2]:
: -500
2025-01-23 21:35:30.757+0000 [id=147] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@44b16915[TestJob2]:
Node3: 1000
: -500
2025-01-23 21:35:32.538+0000 [id=149] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@17dddd48[TestJob1]:
Node3: 1000
: -500
2025-01-23 21:36:02.463+0000 [id=152] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@44b16915[TestJob2]:
Node3: 1000
: -500
2025-01-23 21:36:04.246+0000 [id=154] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@17dddd48[TestJob1]:
Node3: 1000
: -500
2025-01-23 21:37:00.534+0000 [id=159] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@17dddd48[TestJob1]:
Node3: 1000
: -500
2025-01-23 21:37:00.535+0000 [id=159] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@44b16915[TestJob2]:
: -500
2025-01-23 21:38:00.534+0000 [id=166] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@17dddd48[TestJob1]:
Node3: 1000
: -500
2025-01-23 21:38:00.534+0000 [id=166] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@44b16915[TestJob2]:
: -500
2025-01-23 21:39:00.534+0000 [id=174] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@17dddd48[TestJob1]:
Node3: 1000
: -500
2025-01-23 21:39:00.534+0000 [id=174] INFO j.i.j.p.s.ScoringLoadBalancer#reportScores: Scoring for hudson.model.FreeStyleProject@44b16915[TestJob2]:
: -500 Sometimes the (new) default behaviour of Jenkins chooses the correct nodes/executors, sometimes it doesn't, just as before. So the workaround is still required to get to choosing correct nodes all the time. |
do you find the users who changed the Jenkins code recently? so we could ask them for help? |
No, unfortunately I didn't find a code location that would explain this behavior. |
see Discussion at #30 (comment)
closes #30
Testing done
With this workaround, all builds are scheduled on the correct node, but there also is an additional/artificial delay added to the later builds:
Submitter checklist
Link to relevant pull requests, esp. upstream and downstream changes