[JIRA] (JENKINS-54171) Git parameter branch selector becomes slow after a period of time

3 views
Skip to first unread message

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 20, 2018, 5:19:01 AM10/20/18
to jenkinsc...@googlegroups.com
Andrei Brajnicov updated an issue
 
Jenkins / Improvement JENKINS-54171
Git parameter branch selector becomes slow after a period of time
Change By: Andrei Brajnicov
Summary: Git parameter branch selector becomes slow afeter after a period of time
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 20, 2018, 5:55:02 AM10/20/18
to jenkinsc...@googlegroups.com
Andrei Brajnicov updated an issue
Hello.

 

I have a deployment job with about 26 branch selectors. It takes about 3-4 minutes to load the menu with all branches using git parameter plugin.  But I noticed that it takes only 10 seconds If I will clone the job and will do the same in the cloned job. But after a period of time it will also become slow.

I suppose that it is possible to load branches fast for every deployment. I tried to wipe workspace and to restart Jenkins. But it didn't help.

 

Please let me know if you need some additional info.


 

*Update:* Just updated Jenkins till 2.138.2 and Git parameter till 0.9.6. Issue still persists.

klimas7@gmail.com (JIRA)

unread,
Oct 21, 2018, 1:39:02 AM10/21/18
to jenkinsc...@googlegroups.com
Boguslaw Klimas started work on Improvement JENKINS-54171
 
Change By: Boguslaw Klimas
Status: Open In Progress

klimas7@gmail.com (JIRA)

unread,
Oct 21, 2018, 4:02:02 AM10/21/18
to jenkinsc...@googlegroups.com
Boguslaw Klimas commented on Improvement JENKINS-54171
 
Re: Git parameter branch selector becomes slow after a period of time

Hi, 
In this issue JENKINS-36833  I added synchronization block but after that I changed way to get branch or tag.
Currently synchronization block is necessary only when the plugin getting revisions.
I will try release plugin in this week

klimas7@gmail.com (JIRA)

unread,
Oct 21, 2018, 4:05:02 AM10/21/18
to jenkinsc...@googlegroups.com

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 21, 2018, 5:09:02 AM10/21/18
to jenkinsc...@googlegroups.com

Thank you for fast response. I will be happy to test a new version of this plugin.

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 31, 2018, 12:42:01 PM10/31/18
to jenkinsc...@googlegroups.com

Hi Boguslaw Klimas

I would like to inform you that I just tried to test updated version of the plugin, which was generated using this build

Unfortunately the menu with branch selector was loading still slow. I was unable to notice some speed improvements.

But in the cloned job, It took only 15 seconds to load all branches for my 26 projects.

klimas7@gmail.com (JIRA)

unread,
Oct 31, 2018, 3:07:02 PM10/31/18
to jenkinsc...@googlegroups.com

Hi,

Thanks for test. I understood your job configuration looks similar that?

pipeline {
    agent any
    parameters {
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_01', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_02', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_03', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_04', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_05', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_06', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_07', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_08', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_09', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_10', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_11', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_12', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_13', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_14', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_15', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_16', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_17', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_18', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_19', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_20', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_21', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_22', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
        gitParameter branchFilter: 'origin.*/(.*)', defaultValue: 'master', name: 'BRANCH_23', type: 'PT_BRANCH', useRepository: '.*git-parameter-plugin.git'
    }
    stages {
        stage('Example') {
            steps {
                git branch: "${params.BRANCH_01}", url: 'https://github.com/jenkinsci/git-parameter-plugin.git'
            }
        }
    }
}

 This example work fast on me local jenkins, could you try this?

klimas7@gmail.com (JIRA)

unread,
Oct 31, 2018, 4:17:02 PM10/31/18
to jenkinsc...@googlegroups.com
Boguslaw Klimas edited a comment on Improvement JENKINS-54171
Hi,

Thanks for test. I understood your job configuration looks similar that?
{code:java}
{code}

 This example work fast on me local jenkins, could you try this?


 

!image-2018-10-31-21-15-59-629.png!

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 31, 2018, 4:50:01 PM10/31/18
to jenkinsc...@googlegroups.com

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 31, 2018, 4:52:01 PM10/31/18
to jenkinsc...@googlegroups.com
Andrei Brajnicov edited a comment on Improvement JENKINS-54171
 
Re: Git parameter branch selector becomes slow after a period of time
Thank you [~klimas7] for such fast response.

You pipeline was loading pretty fast for me, but unfortunately I still have issues with my deployment.

Probably because my deployment job is not a pipeline, but it is a MultiJob Project.

 

Here is a sample of my *config.xml :* 
**
 
{code:java}
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-pa...@0.9.6">
<name>A</name>
<description></description>
<uuid>720703d4-a0dd-46e7-b6f1-5597c53c1be2</uuid>
<type>PT_BRANCH</type>
<branch></branch>
<tagFilter>*</tagFilter>
<branchFilter>origin[0-9]{0,}/(.*)</branchFilter>
<sortMode>NONE</sortMode>
<defaultValue>master</defaultValue>
<selectedValue>NONE</selectedValue>
<useRepository>A.git</useRepository>
<quickFilterEnabled>true</quickFilterEnabled>
<listSize>5</listSize>
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-pa...@0.9.6">
<name>B</name>
<description></description>
<uuid>c1dd1635-57b5-4055-be95-5e761fd2cef9</uuid>
<type>PT_BRANCH</type>
<branch></branch>
<tagFilter>*</tagFilter>
<branchFilter>origin[0-9]{0,}/(.*)</branchFilter>
<sortMode>NONE</sortMode>
<defaultValue>master</defaultValue>
<selectedValue>NONE</selectedValue>
<useRepository>B.git</useRepository>
<quickFilterEnabled>true</quickFilterEnabled>
<listSize>5</listSize>
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-pa...@0.9.6">
<name>C</name>
<description></description>
<uuid>bfb3e395-b5e4-483f-bd6b-e2292a393cf2</uuid>
<type>PT_BRANCH</type>
<branch></branch>
<tagFilter>*</tagFilter>
<branchFilter>origin[0-9]{0,}/(.*)</branchFilter>
<sortMode>NONE</sortMode>
<defaultValue>master</defaultValue>
<selectedValue>NONE</selectedValue>
<useRepository>C.git</useRepository>
<quickFilterEnabled>true</quickFilterEnabled>
<listSize>5</listSize>
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>{code}
^ actual config is a bit longer, as I told you I have ~ 26 repositories.

 

!jenkins.png!

 

I case if it will be helpful, I can record a video with detailed example 

 

 

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 31, 2018, 4:52:02 PM10/31/18
to jenkinsc...@googlegroups.com

Thank you Boguslaw Klimas for such fast response.

You pipeline was loading pretty fast for me, but unfortunately I still have issues with my deployment.

Probably because my deployment job is not a pipeline, but it is a MultiJob Project.

 

Here is a sample of my config.xml :  **

^ actual config is a bit longer, as I told you I have ~ 26 repositories.

 

 

I case if it will be helpful, I can record a video with detailed example 

 

 

andrei.brajnicov@gmail.com (JIRA)

unread,
Oct 31, 2018, 4:53:01 PM10/31/18
to jenkinsc...@googlegroups.com
Andrei Brajnicov edited a comment on Improvement JENKINS-54171
Thank you [~klimas7] for such fast response.


You pipeline was loading pretty fast for me, but unfortunately I still have issues with my deployment.

Probably because my deployment job is not a pipeline, but it is a MultiJob Project.

 

Here is a sample of my *config.xml :*  
{code:java}
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>{code}

^ actual config is a bit longer, as I told you I have ~ 26 repositories.

 

!jenkins.png!

 

I In case if it will be helpful, I can record a video with detailed example   .

 


 

klimas7@gmail.com (JIRA)

unread,
Oct 31, 2018, 5:23:02 PM10/31/18
to jenkinsc...@googlegroups.com

If is not a problem for you, you can try prepare job using some open source repositories (hosting on github) and attach config.xml.
That would be very helpful in reproduce this issue in my local environment.

In MultiJob project you use MultiSCM definition and you have a few/many git repository? 

klimas7@gmail.com (JIRA)

unread,
Nov 7, 2018, 4:40:01 PM11/7/18
to jenkinsc...@googlegroups.com

Hi Andrei Brajnicov
You can do Thread dump (http://YOUR_JENKINS_HOST/threadDump) during page are loaded, maybe you can get some interesting information.
Good example is in this issue JENKINS-54504

andrei.brajnicov@gmail.com (JIRA)

unread,
Nov 26, 2018, 8:56:01 AM11/26/18
to jenkinsc...@googlegroups.com

hi Boguslaw Klimas
Sorry for my late response. I want to inform you that I'm unable to reproduce it using Pipeline.

But it it still reproducible using MultiJob.

I'll post some additional info how to reproduce it soon.

klimas7@gmail.com (JIRA)

unread,
Feb 18, 2019, 4:33:01 PM2/18/19
to jenkinsc...@googlegroups.com
Boguslaw Klimas closed an issue as Cannot Reproduce
 
Change By: Boguslaw Klimas
Status: In Progress Closed
Resolution: Cannot Reproduce

klimas7@gmail.com (JIRA)

unread,
Feb 18, 2019, 4:33:02 PM2/18/19
to jenkinsc...@googlegroups.com
Boguslaw Klimas commented on Improvement JENKINS-54171
 
Re: Git parameter branch selector becomes slow after a period of time

Hi Andrei Brajnicov

Currently I'm closing this issue, if you will have more information please add them and reopen issue

mi+jenkins-2019@aldan.algebra.com (JIRA)

unread,
Nov 7, 2019, 2:52:03 PM11/7/19
to jenkinsc...@googlegroups.com
Mikhail T reopened an issue
 

I too have this problem – the list of commits takes several minutes to populate. Attaching the project's config...

GSL-jenkins-config.xml

Change By: Mikhail T
Resolution: Cannot Reproduce
Status: Closed Reopened
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

mi+jenkins-2019@aldan.algebra.com (JIRA)

unread,
Nov 7, 2019, 2:52:03 PM11/7/19
to jenkinsc...@googlegroups.com
Mikhail T updated an issue
Change By: Mikhail T
Attachment: GSL-jenkins-config.xml
Reply all
Reply to author
Forward
0 new messages