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

Cppcheck plugin waiting for checkpoint erroneously when concurrent builds are enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cppcheck-plugin
    • Labels:
      None
    • Environment:
      Jenkins Version: 2.12
      Cppcheck Plug-in 1.21
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            marcosteffan Marco Steffan added a comment -

            Changes pushed to github. Pull-Request is available

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

            Show
            marcosteffan Marco Steffan added a comment - Changes pushed to github. Pull-Request is available https://github.com/jenkinsci/cppcheck-plugin/pull/32
            Hide
            josias Josias Inacio da Silva Filho added a comment -

            Thanks Marco.

            Show
            josias Josias Inacio da Silva Filho added a comment - Thanks Marco.
            Hide
            matttbe 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

            Show
            matttbe 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
            Hide
            jzylkin 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!

            Show
            jzylkin 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!

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: