Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42727

Cppcheck plugin waiting for checkpoint erroneously when concurrent builds are enabled

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cppcheck-plugin
    • None
    • Jenkins Version: 2.12
      Cppcheck Plug-in 1.21

      Concurrent builds have been recently enabled on my system, and I noticed that Cppcheck plugin is having issues dealing with this new scenario.

      Builds are running in different machines, and are not dependent on each other. However Cppcheck will only continue once they are all completed. This causes a delay of up to a few hours, where the first build will only finish once the last that is currently building has finished as well.

      From the console output:

      Publish Cppcheck results is waiting for a checkpoint on Package Builds ? <job_name> #2229

       

      That seems to be a known bug for plugins written before this Jenkins feature was implemented, some of which had to be modified to address concurrent builds properly.

          [JENKINS-42727] Cppcheck plugin waiting for checkpoint erroneously when concurrent builds are enabled

          Marco Steffan added a comment -

          Changes pushed to github. Pull-Request is available

          https://github.com/jenkinsci/cppcheck-plugin/pull/32

          Marco Steffan added a comment - Changes pushed to github. Pull-Request is available https://github.com/jenkinsci/cppcheck-plugin/pull/32

          Thanks Marco.

          Josias Inacio da Silva Filho added a comment - Thanks Marco.

          Hi Marco,

          Thank you for the fix! Just saw it was finally merged on Github, that's good!

          By chance, do you have any package including your fix? I am not able to build it and it seems ci.jenkins.io is not able to do that as well: https://ci.jenkins.io/job/Plugins/job/cppcheck-plugin/

          Matt

          Matthieu Baerts added a comment - Hi Marco, Thank you for the fix! Just saw it was finally merged on Github, that's good! By chance, do you have any package including your fix? I am not able to build it and it seems ci.jenkins.io is not able to do that as well: https://ci.jenkins.io/job/Plugins/job/cppcheck-plugin/ Matt

          Jack Zylkin added a comment -

          Will this change be added to a release of CppCheck soon? I am eagerly awaiting it, since the bug causes a significant bottleneck in my pipeline. Thanks!

          Jack Zylkin added a comment - Will this change be added to a release of CppCheck soon? I am eagerly awaiting it, since the bug causes a significant bottleneck in my pipeline. Thanks!

            marcosteffan Marco Steffan
            josias Josias Inacio da Silva Filho
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: