-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Change BuildStepMonitor to allow for higher concurrency #19
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19 +/- ##
============================================
+ Coverage 80.97% 80.97% +<.01%
- Complexity 1414 1415 +1
============================================
Files 224 224
Lines 4735 4736 +1
Branches 379 379
============================================
+ Hits 3834 3835 +1
Misses 767 767
Partials 134 134
Continue to review full report at Codecov.
|
Does this help anything in your real setup? I think we also need to override
and return |
@uhafner yes this issue really blocks usage of this plugin in our setup (with concurrent executors) as each next build waits for a checkpoint (before parsing checkstyle results) for the end of the previous build and execution time of our builds starts to grow like a snowball. For such jobs we have to use old deprecated plugin to parse checkstyle results and it would be really nice to change this. |
@013k-m I understand that it blocks your system. I just wondered if it is already noticeable better using other getters without the |
@uhafner I was checking it in a dockerized jenkins with a pipeline flow and I was not able to reproduce this, but I just rechecked again and it is reproducible only in a normal jenkins job and you are right, we just need to override the buildstepmonitor to fix that behavior. Sorry for that, should I tuneup or recreate this pr? |
Just revert the first commit and push again. Then we have the history and discussion visible in this PR. If we need to change the getters later on as well we know the background discussion in this PR. |
This reverts commit db02968.
Jenkins changed getPreviousBuild() to halt jobs if a previous
build hasn't finished, meaning jobs of variable runtime end up
being serialized:
https://issues.jenkins-ci.org/browse/JENKINS-9913?focusedCommentId=184188&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-184188
This change switches to the latest completed build, allowing
this plugin to work with jobs of variable length.
This change is made in a same way as for slack-plugin
jenkinsci/slack-plugin@832e7b5