[JIRA] (JENKINS-47553) Pipeline 'poll' option in checkout ignored if using libraries for sync

9 views
Skip to first unread message

jayspang@amazon.com (JIRA)

unread,
Jul 17, 2018, 8:14:02 PM7/17/18
to jenkinsc...@googlegroups.com
Jay Spang edited a comment on Improvement JENKINS-47553
 
Re: Pipeline 'poll' option in checkout ignored if using libraries for sync
I'm seeing this bug as well. My pipeline checks out from 2 separate streams: The 1st is my app's source code, the 2nd is just various deployment tools that 's are synced from a shared library. My job is doing what I've come to call "runaway polling", where every time it polls, it thinks there's a new change and builds the project again.

Here is the code I'm using for the second checkout:

{{checkout changelog: false, poll: false, scm: perforce( //p4 options )}}

And despite this, the last lines of the polling log contain this:

{{P4: Polling on: master with:jenkins-master-jobName-deploy-scripts}}
{{Done. Took 0.65 sec}}
{{Changes found}}


I don't know why it's trying to poll even though I explicitly said not to, and I don't know why the polling is exiting immediately claiming it found changes, but the combination of this is resulting in "runaway polling".
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

jayspang@amazon.com (JIRA)

unread,
Jul 17, 2018, 8:14:02 PM7/17/18
to jenkinsc...@googlegroups.com

I'm seeing this bug as well. My pipeline checks out from 2 separate streams: The 1st is my app's source code, the 2nd is just various deployment tools that's synced from a shared library. My job is doing what I've come to call "runaway polling", where every time it polls, it thinks there's a new change and builds the project again.

Here is the code I'm using for the second checkout:

checkout changelog: false, poll: false, scm: perforce( //p4 options )

And despite this, the last lines of the polling log contain this:

P4: Polling on: master with:jenkins-master-jobName-deploy-scripts
Done. Took 0.65 sec
Changes found

I don't know why it's trying to poll even though I explicitly said not to, and I don't know why the polling is exiting immediately claiming it found changes, but the combination of this is resulting in "runaway polling".

jayspang@amazon.com (JIRA)

unread,
Jul 17, 2018, 8:16:01 PM7/17/18
to jenkinsc...@googlegroups.com
Jay Spang edited a comment on Improvement JENKINS-47553
I'm seeing this bug as well. My pipeline checks out from 2 separate streams: The 1st is my app's source code, the 2nd is just various deployment tools that are synced from a shared library. My job is doing what I've come to call "runaway polling", where every time it polls, it thinks there's a new change and builds the project again.


Here is the code I'm using for the second checkout:

{{checkout changelog: false, poll: false, scm: perforce( //p4 options populate: syncOnly( ) , workspace: streamSpec(name: jenkins-${NODE_NAME } -${JOB_NAME } -deploy-scripts) )}}

And despite this, the last lines of the polling log contain this:

{{P4: Polling on: master with:jenkins-master-jobName-deploy-scripts}}
{{Done. Took 0.65 sec}}
{{Changes found}}


I don't know why it's trying to poll even though I explicitly said not to, and I don't know why the polling is exiting immediately claiming it found changes, but the combination of this is resulting in "runaway polling".

jayspang@amazon.com (JIRA)

unread,
Jul 17, 2018, 8:17:02 PM7/17/18
to jenkinsc...@googlegroups.com
Jay Spang edited a comment on Improvement JENKINS-47553
I'm seeing this bug as well. My pipeline checks out from 2 separate streams: The 1st is my app's source code, the 2nd is just various deployment tools that are synced from a shared library. My job is doing what I've come to call "runaway polling", where every time it polls, it thinks there's a new change and builds the project again.

Here is the code I'm using for the second checkout: (trimmed down for readability)

{{checkout changelog: false, poll: false, scm: perforce( populate: syncOnly(), workspace: streamSpec(name: jenkins-${NODE_NAME}-${JOB_NAME}-deploy-scripts) )}}


And despite this, the last lines of the polling log contain this:

{{P4: Polling on: master with:jenkins-master-jobName-deploy-scripts}}
{{Done. Took 0.65 sec}}
{{Changes found}}


I don't know why it's trying to poll even though I explicitly said not to, and I don't know why the polling is exiting immediately claiming it found changes, but the combination of this is resulting in "runaway polling".

pallen@perforce.com (JIRA)

unread,
Oct 25, 2018, 10:01:01 AM10/25/18
to jenkinsc...@googlegroups.com
Paul Allen updated an issue
 
Jenkins / Improvement JENKINS-47553
Change By: Paul Allen
Labels: P4_SUPPORT
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pallen@perforce.com (JIRA)

unread,
Oct 25, 2018, 10:02:02 AM10/25/18
to jenkinsc...@googlegroups.com
Paul Allen commented on Improvement JENKINS-47553
 
Re: Pipeline 'poll' option in checkout ignored if using libraries for sync

Hi Karl Wirth, please can you check this using different workspace names. Thanks, Paul

pallen@perforce.com (JIRA)

unread,
Oct 30, 2018, 11:17:06 AM10/30/18
to jenkinsc...@googlegroups.com
Paul Allen closed an issue as Fixed
 

Closing - need more detail.  Global Library update in release 1.9.3 my change behaviour. Please reopen if required.

Change By: Paul Allen
Status: Open Closed
Assignee: Karl Wirth
Resolution: Fixed

siddhu268@gmail.com (JIRA)

unread,
Nov 1, 2019, 5:24:04 AM11/1/19
to jenkinsc...@googlegroups.com
siddardha sarabu reopened an issue
 

This issue is still present with Jenkins 2.197 version.

checkout (for additional repositories) on a custom step defined in shared library with poll=false still polls for changes and triggers jenkins builds 

Change By: siddardha sarabu
Resolution: Fixed
Status: Closed Reopened
Assignee: Karl Wirth Paul Allen
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

siddhu268@gmail.com (JIRA)

unread,
Nov 1, 2019, 5:25:04 AM11/1/19
to jenkinsc...@googlegroups.com
This issue is still present with Jenkins 2.197 version.

checkout (for additional repositories) on a custom step defined in shared library with poll=false still polls for changes and triggers jenkins builds   .

kwirth@perforce.com (JIRA)

unread,
Nov 4, 2019, 6:14:36 AM11/4/19
to jenkinsc...@googlegroups.com

Hi siddardha sarabu - Thanks. I'll test and get back to you.

Notes for me - is this also linked to JENKINS-56248?

kwirth@perforce.com (JIRA)

unread,
Nov 12, 2019, 7:04:03 AM11/12/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Nov 12, 2019, 7:04:04 AM11/12/19
to jenkinsc...@googlegroups.com
 
Re: Pipeline 'poll' option in checkout ignored if using libraries for sync

Hi siddardha sarabu - I confirm this still occurs on 1.10.6:

Perforce Software Polling LogStarted on Nov 12, 2019 11:56:40 AM
no polling baseline in /var/lib/jenkins/workspace/JENKINS-47553-LibraryNoPoll@libs/my-shared-library on 
P4: Polling on: master with:jenkins-master-JENKINS-47553-LibraryNoPoll-src1
Found last change 2123 on syncID jenkins-NODE_NAME-JENKINS-47553-LibraryNoPoll-src1
... p4 login -s +
... p4 client -o jenkins-master-JENKINS-47553-LibraryNoPoll-src1 +
... p4 info +
... p4 info +
... p4 client -o jenkins-master-JENKINS-47553-LibraryNoPoll-src1 +P4 Task: establishing connection.
... server: vm-kwirth-swarm182-xenial:1666
... node: vm-kwirth-swarm182-xenial
P4: Polling with range: 2123,now
... p4 changes -m20 //jenkins-master-JENKINS-47553-LibraryNoPoll-src1/...@2123,now +
... p4 repos -C +
P4: Polling no changes found.
P4: Polling on: master with:jenkins-master-JENKINS-47553-LibraryNoPoll-src2
Found last change 2123 on syncID jenkins-NODE_NAME-JENKINS-47553-LibraryNoPoll-src2
... p4 login -s +
... p4 client -o jenkins-master-JENKINS-47553-LibraryNoPoll-src2 +
... p4 info +
... p4 info +
... p4 client -o jenkins-master-JENKINS-47553-LibraryNoPoll-src2 +P4 Task: establishing connection.
... server: vm-kwirth-swarm182-xenial:1666
... node: vm-kwirth-swarm182-xenial
P4: Polling with range: 2123,now
... p4 changes -m20 //jenkins-master-JENKINS-47553-LibraryNoPoll-src2/...@2123,now +
... p4 change -o 2124 +
... found change: 2124
... p4 repos -C +
P4: Polling found change: 2124
Done. Took 73 ms
Changes found

The change that caused this was part of the //depot/no-poll path from the abive-example:

$ p4 describe -s 2124 Change 2124 by super@test_ws on 2019/11/12 11:56:36
   Submit of ./f2124
 Affected files ...
   ... //depot/no-poll/f2124#1 add

I believe this is the same issue as JENKINS-56248.

 

 

 

 

Reply all
Reply to author
Forward
0 new messages