Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325323

Summary: virgo.osgi-test-stubs.snapshot VERY SLOW picking up latest git revision
Product: Community Reporter: Steve Powell <zteve.powell>
Component: CI-JenkinsAssignee: Eclipse Webmaster <webmaster>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: glyn.normington
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Steve Powell CLA 2010-09-15 05:56:32 EDT
Build #34 (15-Sep-2010 04:40:33) did NOT see the revision 581b6f93bf8441423e4f9b783f7c58f0551ce854 (confirmed by the last git polling log);

Build #35 (15-Sep-2010 04:58:30) DID see the revision.

However the revision was pushed to GIT yesterday Tue Sep 14 2010 17:26:20 GMT+0100 (BST).

Due to time-scale mismatches (Hudson ought to be using GMT or UTC by the way and only displaying it in a local time as a user preference -- I'll raise an enhancement) the GIT was pushed far earlier than that even.

Why is there such a time-lag???  I do not see this sort of lag for the other virgo jobs.
Comment 1 Steve Powell CLA 2010-09-15 06:13:20 EDT
Also virgo.gemini-web-container.snapshot has this polling log:
---8<--------
Started on Sep 15, 2010 6:01:16 AM
Using strategy: Default
[poll] Last Build : #86
[poll] Last Built Revision: Revision 5f28b4ba78d433cfeac33ead5cc66968dd1209b6 (origin/master)
GitAPI created
Fetching changes from the remote Git repositories
Fetching upstream changes from git://git.eclipse.org/gitroot/gemini.web/org.eclipse.gemini.web.gemini-web-container.git
[virgo.gemini-web-container.snapshot] $ git fetch -t git://git.eclipse.org/gitroot/gemini.web/org.eclipse.gemini.web.gemini-web-container.git +refs/heads/*:refs/remotes/gemini-web-container/*
[virgo.gemini-web-container.snapshot] $ git ls-tree HEAD
GitAPI created
Fetching upstream changes from git://git.eclipse.org/gitroot/virgo/org.eclipse.virgo.virgo-build.git
[virgo-build] $ git fetch -t git://git.eclipse.org/gitroot/virgo/org.eclipse.virgo.virgo-build.git +refs/heads/*:refs/remotes/gemini-web-container/*
Polling for changes in
[virgo.gemini-web-container.snapshot] $ git tag -l master
[virgo.gemini-web-container.snapshot] $ git rev-parse origin/master
Done. Took 2.5 sec
No changes
-------------
and yet changes were made to the git for this project as early as 

2010-09-14 15:44:01  (BST == GMT +01:00)

which is hours before this last poll.
Comment 2 Denis Roy CLA 2010-09-15 09:58:40 EDT
If the git polling mechanism is not working correctly, I am seriously considering pulling it.  I'll do a quick bugzilla scan to see how much effort we've put into it so far.  Sorry - we just can't sustain this.
Comment 3 Steve Powell CLA 2010-09-15 10:17:21 EDT
I would think that triggering of builds on source changes is a requirement of a ci-build server.
Comment 4 Glyn Normington CLA 2010-09-15 10:33:40 EDT
(In reply to comment #3)
> I would think that triggering of builds on source changes is a requirement of a
> ci-build server.

I agree. Manually kicking off CI builds is a non-starter.
Comment 5 Denis Roy CLA 2010-09-15 11:14:29 EDT
> I do not see this sort of lag for the other virgo jobs.

So there is either something different with this job, or with the repository it is accessing.  Are there any timezone settings that could be affecting this?
Comment 6 Steve Powell CLA 2010-09-15 12:05:45 EDT
OK. I think I might guess why this is not happening properly.  The reason is that the polling log is checking the present workspace against the newly loaded one, and the configuration has changed to name the git clone directory differently since last time it was successfully built.

(By the way, the last successful build was on build2 -- on the old hudson -- so the configuration will not match.)

Polling is making assumptions about the old and new versions.  Clearing the workspace should solve it.

It ought to be possible for the polling plug-in merely to compare the commit SHA1s for the previous build with the latest head -- not downloading much at all -- and defer the down-loads until changes have been spotted.  Wouldn't that be quicker, too?  

OK -- I'm going to clear the workspace to try to see if that 'cures' it.
Comment 7 Steve Powell CLA 2010-09-15 12:07:35 EDT
Yup -- that seems to be picking up the correct build -- we'll leave it half-an-hour to see if the polling gets it right.
Comment 8 Steve Powell CLA 2010-09-15 12:39:19 EDT
Polling looks ok -- I'll re-opn this if the polling fails to pick up the next change -- but I expect we're OK now.

Thanks.