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

Git checkout with many tags is much slower with 3.3.0 release if pre-build merge is used

    Details

    • Similar Issues:

      Description

      We have 62 thousands of tags in our git repo.
      After upgrade of git plugin from 3.1.0 to 3.3.0 checkout of the repo with PreBuildMerge option takes about an hour.

      14:54:44  > git rev-parse HEAD^{commit} # timeout=10
      14:54:45 Seen branch in repository origin/10098_update_header_link_and_my_account_menu
      ...
      ...
      14:54:45 Seen 1,592 remote branches
      14:54:45  > git tag -l # timeout=10
      14:54:46  > git rev-parse refs/tags/test01wxunit/20160617_094816^{commit} # timeout=10
      ...
      ...
      15:49:57  > git rev-parse refs/tags/b2bAATpipeline/tag/2015-03-06_12-08-07^{commit} # timeout=10
      15:49:57 Checking out Revision ab591971099f42107cbd7915120ee1381a206047 (origin/hybris551aws)
      

      It looks like the root cause of the issue is commit 31fedce9c41c9006c886835e03c9fe825d49aba6.

        Attachments

          Issue Links

            Activity

            yehorov Mykhaylo Yehorov created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Summary Git checkout lasts too much time Git checkout with many tags is much slower with 3.3.0 release
            markewaite Mark Waite made changes -
            Summary Git checkout with many tags is much slower with 3.3.0 release Git checkout with many tags is much slower with 3.3.0 release if pre-build merge is used
            yehorov Mykhaylo Yehorov made changes -
            Description We have 62 thousands of tags in out git repo.
            After upgrade of git plugin from 3.1.0 to 3.3.0 checkout of the repo with PreBuildMerge option takes about an hour.

            {noformat}
            14:54:44 > git rev-parse HEAD^{commit} # timeout=10
            14:54:45 Seen branch in repository origin/10098_update_header_link_and_my_account_menu
            ...
            ...
            14:54:45 Seen 1,592 remote branches
            14:54:45 > git tag -l # timeout=10
            14:54:46 > git rev-parse refs/tags/test01wxunit/20160617_094816^{commit} # timeout=10
            ...
            ...
            15:49:57 > git rev-parse refs/tags/b2bAATpipeline/tag/2015-03-06_12-08-07^{commit} # timeout=10
            15:49:57 Checking out Revision ab591971099f42107cbd7915120ee1381a206047 (origin/hybris551aws)
            {noformat}


            It looks like the root cause of the issue is commit 31fedce9c41c9006c886835e03c9fe825d49aba6.
            We have 62 thousands of tags in our git repo.
            After upgrade of git plugin from 3.1.0 to 3.3.0 checkout of the repo with PreBuildMerge option takes about an hour.

            {noformat}
            14:54:44 > git rev-parse HEAD^{commit} # timeout=10
            14:54:45 Seen branch in repository origin/10098_update_header_link_and_my_account_menu
            ...
            ...
            14:54:45 Seen 1,592 remote branches
            14:54:45 > git tag -l # timeout=10
            14:54:46 > git rev-parse refs/tags/test01wxunit/20160617_094816^{commit} # timeout=10
            ...
            ...
            15:49:57 > git rev-parse refs/tags/b2bAATpipeline/tag/2015-03-06_12-08-07^{commit} # timeout=10
            15:49:57 Checking out Revision ab591971099f42107cbd7915120ee1381a206047 (origin/hybris551aws)
            {noformat}


            It looks like the root cause of the issue is commit 31fedce9c41c9006c886835e03c9fe825d49aba6.
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-47169 [ JENKINS-47169 ]
            markewaite Mark Waite made changes -
            Comment [ I have a duplication case for the problem in the [JENKINS-32577-regex-branch-to-build-does-not-ignore-user-exclusion|https://github.com/MarkEWaite/docker-private-lfs/blob/lts-with-plugins-add-credentials/ref/jobs/Bugs-Individual/jobs/JENKINS-32577-regex-branch-to-build-does-not-ignore-user-exclusion/config.xml] job in my regression test kit. That doesn't help anyone else work on it (private repo), but it shows that I can duplicate it.

            If others want to develop a fix, I can provide the job definition.
            ]
            markewaite Mark Waite made changes -
            Comment [ I have a duplication case for the problem in the [JENKINS-32577-regex-branch-to-build-does-not-ignore-user-exclusion|https://github.com/MarkEWaite/docker-private-lfs/blob/lts-with-plugins-add-credentials/ref/jobs/Bugs-Individual/jobs/JENKINS-32577-regex-branch-to-build-does-not-ignore-user-exclusion/config.xml] job in my regression test kit. That doesn't help anyone else work on it (private repo), but it shows that I can duplicate it.

            If others want to develop a fix, I can provide the job definition. ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            markewaite Mark Waite made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            markewaite Mark Waite made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                markewaite Mark Waite
                Reporter:
                yehorov Mykhaylo Yehorov
              • Votes:
                6 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: