-
Bug
-
Resolution: Fixed
-
Critical
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.
- is duplicated by
-
JENKINS-47169 SCM polling runs rev-parse for every tag
-
- Closed
-
[JENKINS-45447] Git checkout with many tags is much slower with 3.3.0 release if pre-build merge is used
Summary | Original: Git checkout lasts too much time | New: Git checkout with many tags is much slower with 3.3.0 release |
Summary | Original: Git checkout with many tags is much slower with 3.3.0 release | New: Git checkout with many tags is much slower with 3.3.0 release if pre-build merge is used |
Description |
Original:
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. |
New:
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. |
Link |
New:
This issue is duplicated by |
Comment |
[ I have a duplication case for the problem in the [ If others want to develop a fix, I can provide the job definition. ] |
The rev-parse thing also breaks building the linux kernel. The reason is interesting: the v2.6.11 tag ( https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tag/?h=v2.6.11 ) does not have a backing commit:
As for the workaround: Downgrading the git plugin fixes the issue. The newest version that I found was working is 3.1.0, which can be downloaded from http://updates.jenkins-ci.org/download/plugins/git/ .