#1915: GitPoller stops on wrong revision while fetching buildbot repo at the
first
time.
-----------------------+----------------------------
Reporter: jollyroger | Owner:
Type: defect | Status: new
Priority: minor | Milestone: undecided
Version: 0.8.3p1 | Keywords: gitpoller, git
-----------------------+----------------------------
Given clean buildbot v0.8.3p1 (http://buildbot.homeofus.org.ua) master
with the following ChangeSources provided:
{{{
buildbot_git_repo = 'git://github.com/buildbot/buildbot.git'
debian_buildbot_git_repo = 'git://github.com/jollyroger/debian-
buildbot.git'
debian_buildbot_slave_git_repo = 'git://github.com/jollyroger/debian-
buildbot-slave.git'
from buildbot.changes.gitpoller import GitPoller
c['change_source'] = []
c['change_source'].append(GitPoller(buildbot_git_repo,
branch='master',
workdir='/tmp/buildbot_git',
pollinterval=1200))
c['change_source'].append(GitPoller(debian_buildbot_git_repo,
branch='master',
workdir='/tmp/debian-buildbot_git',
pollinterval=1200))
c['change_source'].append(GitPoller(debian_buildbot_slave_git_repo,
branch='master',
workdir='/tmp/debian-buildbot-slave_git',
pollinterval=1200))
}}}
The initial fetch operation stop on revision different from HEAD. However
next GitPoller update does fetch to HEAD as expected. Here is the initial
fetch log:
{{{
2011-04-06 12:46:27+0300 [-] Log opened.
2011-04-06 12:46:27+0300 [-] twistd 10.1.0 (/usr/bin/python 2.6.6)
starting up.
2011-04-06 12:46:27+0300 [-] reactor class:
twisted.internet.selectreactor.SelectReactor.
2011-04-06 12:46:27+0300 [-] Creating BuildMaster -- buildbot.version:
0.8.3p1
2011-04-06 12:46:27+0300 [-] loading configuration from
/media/storage/buildbot.homeofus.org.ua/master/master.cfg
2011-04-06 12:46:27+0300 [-] /usr/lib/python2.6/dist-
packages/twisted/mail/smtp.py:10: exceptions.DeprecationWarning: the
MimeWriter module is deprecated; use the email package instead
2011-04-06 12:46:27+0300 [-] unable to import dnotify, so Maildir will use
polling instead
2011-04-06 12:46:27+0300 [-] creating adbapi pool: sqlite3
('/media/storage/buildbot.homeofus.org.ua/master/state.sqlite',)
{'check_same_thread': False, 'cp_noisy': True, 'cp_reconnect': True}
2011-04-06 12:46:27+0300 [-] twisted.spread.pb.PBServerFactory starting on
9989
2011-04-06 12:46:27+0300 [-] Starting factory
<twisted.spread.pb.PBServerFactory instance at 0x22d7ea8>
2011-04-06 12:46:27+0300 [-] adding new builder deb-master for category
None
2011-04-06 12:46:27+0300 [-] trying to load status pickle from
/media/storage/buildbot.homeofus.org.ua/master/deb-master/builder
2011-04-06 12:46:27+0300 [-] no saved status pickle, creating a new one
2011-04-06 12:46:27+0300 [-] added builder deb-master in category None
2011-04-06 12:46:27+0300 [-] adding new builder tarball-slave for category
None
2011-04-06 12:46:27+0300 [-] trying to load status pickle from
/media/storage/buildbot.homeofus.org.ua/master/tarball-slave/builder
2011-04-06 12:46:27+0300 [-] no saved status pickle, creating a new one
2011-04-06 12:46:27+0300 [-] added builder tarball-slave in category None
2011-04-06 12:46:27+0300 [-] adding new builder deb-slave for category
None
2011-04-06 12:46:27+0300 [-] trying to load status pickle from
/media/storage/buildbot.homeofus.org.ua/master/deb-slave/builder
2011-04-06 12:46:27+0300 [-] no saved status pickle, creating a new one
2011-04-06 12:46:27+0300 [-] added builder deb-slave in category None
2011-04-06 12:46:27+0300 [-] adding new builder tarball-master for
category None
2011-04-06 12:46:27+0300 [-] trying to load status pickle from
/media/storage/buildbot.homeofus.org.ua/master/tarball-master/builder
2011-04-06 12:46:27+0300 [-] no saved status pickle, creating a new one
2011-04-06 12:46:27+0300 [-] added builder tarball-master in category None
2011-04-06 12:46:27+0300 [-] setBuilders._add:
[<buildbot.util.loop.DelegateLoop instance at 0x1d292d8>, <BuildSlave
'squeeze', current builders: >] [<Builder ''tarball-master'' at 36583760>,
<Builder ''tarball-slave'' at 36582896>, <Builder ''deb-master'' at
36535760>, <Builder ''deb-slave'' at 36583328>]
2011-04-06 12:46:27+0300 [-] adding IStatusReceiver <WebStatus on port
tcp:8010 at 0x1fc0830>
2011-04-06 12:46:27+0300 [-] buildbot.status.web.baseweb.RotateLogSite
starting on 8010
2011-04-06 12:46:27+0300 [-] Starting factory
<buildbot.status.web.baseweb.RotateLogSite instance at 0x22e40e0>
2011-04-06 12:46:27+0300 [-] Setting up http.log rotating 10 files of
10000000 bytes each
2011-04-06 12:46:27+0300 [-] WebStatus using
(/media/storage/buildbot.homeofus.org.ua/master/public_html)
2011-04-06 12:46:27+0300 [-] removing 0 old schedulers, adding 4 new ones
2011-04-06 12:46:27+0300 [-] configuration update started
2011-04-06 12:46:27+0300 [-] adbapi connecting: sqlite3
('/media/storage/buildbot.homeofus.org.ua/master/state.sqlite',){'check_same_thread':
False}
2011-04-06 12:46:27+0300 [-] scheduler 'tarball-master' got id 1
2011-04-06 12:46:27+0300 [-] scheduler 'tarball-slave' got id 2
2011-04-06 12:46:27+0300 [-] scheduler 'deb-slave' got id 3
2011-04-06 12:46:27+0300 [-] scheduler 'deb-master' got id 4
2011-04-06 12:46:27+0300 [-] adding 3 new changesources, removing 0
2011-04-06 12:46:27+0300 [-] gitpoller: polling git repo at
git://github.com/buildbot/buildbot.git
2011-04-06 12:46:27+0300 [-] gitpoller: initializing working dir
2011-04-06 12:46:42+0300 [-] gitpoller: polling git repo at
git://github.com/jollyroger/debian-buildbot.git
2011-04-06 12:46:42+0300 [-] gitpoller: initializing working dir
2011-04-06 12:46:59+0300 [-] gitpoller: polling git repo at
git://github.com/jollyroger/debian-buildbot-slave.git
2011-04-06 12:46:59+0300 [-] gitpoller: initializing working dir
2011-04-06 12:47:01+0300 [-] configuration update complete
2011-04-06 12:47:01+0300 [-] adbapi connecting: sqlite3
('/media/storage/buildbot.homeofus.org.ua/master/state.sqlite',){'check_same_thread':
False}
2011-04-06 12:47:01+0300 [-] adbapi connecting: sqlite3
('/media/storage/buildbot.homeofus.org.ua/master/state.sqlite',){'check_same_thread':
False}
2011-04-06 12:47:01+0300 [-] gitpoller: processing 0 changes: [] in "/tmp
/debian-buildbot_git"
2011-04-06 12:47:01+0300 [-] gitpoller: no changes, no catch_up
2011-04-06 12:47:01+0300 [-] gitpoller: processing 16 changes:
['c35617c3007de94960d2d607a799b64d6363bc6d',
'8bbb343ee63ed7638b177f08187ef78145654ecd',
'2009af482533c1cdea7444befca3f847ee8c80ab',
'b18d3c649be82eaeab6e8d6e465813882ae68a5b',
'0de1a022f59f3a1ff4130433c489589bb204cbe1',
'078271034295f10cb50f3ee5d4374e1eac6f9b65',
'63763cbe9f1afb8e84094373f1b6818ed7fc7010',
'37f7e88ae1f053c81a2bc5dc5937a57d578bc750',
'20ea6b7d39400b5e042d14bb32cc8dcf2532d6cf',
'21c1049e99e727d012aa9762bb737c539f65f6f3',
'4b447ecc7056907a83ba9f022d370d3093e219f3',
'91d917bbb836db452e83492cc76cdde1e9511fb4',
'bb70cd71dfed13e53ca6b6e2022f6a5d89fcd3f5',
'9061ba5bc9c3a06fddfef8f6ac9599087f944fd0',
'10719f5292692352aeb4ab7f1cc74a6537a2698b',
'ecd52e267bc4ae7ca26a5f7190cb3b8b6c47b9e8'] in "/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] gitpoller: processing 0 changes: [] in "/tmp
/debian-buildbot-slave_git"
2011-04-06 12:47:01+0300 [-] gitpoller: no changes, no catch_up
2011-04-06 12:47:01+0300 [Broker,0,127.0.0.1] slave 'squeeze' attaching
from IPv4Address(TCP, '127.0.0.1', 52414)
2011-04-06 12:47:01+0300 [Broker,0,127.0.0.1] Got slaveinfo from 'squeeze'
2011-04-06 12:47:01+0300 [Broker,0,127.0.0.1] bot attached
2011-04-06 12:47:01+0300 [Broker,0,127.0.0.1] Buildslave squeeze attached
to deb-master
2011-04-06 12:47:01+0300 [Broker,0,127.0.0.1] Buildslave squeeze attached
to tarball-slave
2011-04-06 12:47:01+0300 [Broker,0,127.0.0.1] Buildslave squeeze attached
to deb-slave
2011-04-06 12:47:01+0300 [Broker,0,127.0.0.1] Buildslave squeeze attached
to tarball-master
2011-04-06 12:47:01+0300 [-] gitpoller: _add_change results: "[(True,
1263699537.0), (True, u'[email protected]'), (True,
['buildbot/status/web/console.py', 'buildbot/status/web/console_html.py',
'buildbot/stringTemplate.py', 'buildbot/test/test_console.py']), (True,
u'fix Python-2.3-compatibility problems')]", rev:
"c35617c3007de94960d2d607a799b64d6363bc6d" in "/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x22f3638>" in
"/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] adding change, who [email protected], 4 files,
rev=c35617c3007de94960d2d607a799b64d6363bc6d, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments fix
Python-2.3-compatibility problems, category None, project
2011-04-06 12:47:01+0300 [-] gitpoller: _add_change results: "[(True,
1263699898.0), (True, u'[email protected]'), (True,
['buildbot/status/mail.py', 'docs/buildbot.texinfo']), (True, u'Add
documentation fixes for MailNotifier messageFormatter function and add
example code.')]", rev: "8bbb343ee63ed7638b177f08187ef78145654ecd" in
"/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x22ee7a0>" in
"/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] adding change, who [email protected], 2
files, rev=8bbb343ee63ed7638b177f08187ef78145654ecd, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments Add
documentation fixes for MailNotifier messageFormatter function and add
example code., category None, project
2011-04-06 12:47:01+0300 [-] gitpoller: _add_change results: "[(True,
1263707809.0), (True, u'[email protected]'), (True, ['setup.py']), (True,
u'include all CSS files in the distro')]", rev:
"2009af482533c1cdea7444befca3f847ee8c80ab" in "/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x22f3a28>" in
"/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] adding change, who [email protected], 1
files, rev=2009af482533c1cdea7444befca3f847ee8c80ab, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments include all
CSS files in the distro, category None, project
2011-04-06 12:47:01+0300 [-] gitpoller: _add_change results: "[(True,
1263707969.0), (True, u'[email protected]'), (True,
['docs/buildbot.texinfo']), (True, u"(fixes #679) reference
'status.web.auth' in docs")]", rev:
"b18d3c649be82eaeab6e8d6e465813882ae68a5b" in "/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x22f3c20>" in
"/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] adding change, who [email protected], 1
files, rev=b18d3c649be82eaeab6e8d6e465813882ae68a5b, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments (fixes #679)
reference 'status.web.auth' in docs, category None, project
2011-04-06 12:47:01+0300 [-] gitpoller: _add_change results: "[(True,
1263776091.0), (True, u'[email protected]'), (True, ['setup.py']), (True,
u'also include bg_gradient.jpg in setup.py')]", rev:
"0de1a022f59f3a1ff4130433c489589bb204cbe1" in "/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x22ee3f8>" in
"/tmp/buildbot_git"
2011-04-06 12:47:01+0300 [-] adding change, who [email protected], 1
files, rev=0de1a022f59f3a1ff4130433c489589bb204cbe1, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments also include
bg_gradient.jpg in setup.py, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1263839671.0), (True, u'[email protected]'), (True,
['buildbot/__init__.py']), (True, u'bump to rc3')]", rev:
"078271034295f10cb50f3ee5d4374e1eac6f9b65" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x2302098>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 1
files, rev=078271034295f10cb50f3ee5d4374e1eac6f9b65, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments bump to rc3,
category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1263841509.0), (True, u'[email protected]'), (True, ['NEWS',
'buildbot/__init__.py']), (True, u'bump rev, add NEWS')]", rev:
"63763cbe9f1afb8e84094373f1b6818ed7fc7010" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x2302f80>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 2
files, rev=63763cbe9f1afb8e84094373f1b6818ed7fc7010, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments bump rev, add
NEWS, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1263928991.0), (True, u'[email protected]'), (True, ['.darcs-boring',
'MANIFEST.in', 'docs/.arch-inventory', 'test-dist.sh']), (True, u'remove
some unnecessary arch and darcs files; add other files to MANIFEST.in; add
test for this sort of thing')]", rev:
"37f7e88ae1f053c81a2bc5dc5937a57d578bc750" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x23021b8>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 4
files, rev=37f7e88ae1f053c81a2bc5dc5937a57d578bc750, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments remove some
unnecessary arch and darcs files; add other files to MANIFEST.in; add test
for this sort of thing, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1263931919.0), (True, u'[email protected]'), (True, ['NEWS']), (True,
u'mention new addStep assertion in NEWS')]", rev:
"20ea6b7d39400b5e042d14bb32cc8dcf2532d6cf" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x22f3908>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 1
files, rev=20ea6b7d39400b5e042d14bb32cc8dcf2532d6cf, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments mention new
addStep assertion in NEWS, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1263941594.0), (True, u'[email protected]'), (True, ['NEWS',
'buildbot/__init__.py']), (True, u'bump revision to rc5')]", rev:
"21c1049e99e727d012aa9762bb737c539f65f6f3" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x22f3710>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 2
files, rev=21c1049e99e727d012aa9762bb737c539f65f6f3, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments bump revision
to rc5, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1264105548.0), (True, u'[email protected]'), (True,
['buildbot/test/test_limitlogs.py']), (True, u'remove
test_limitlogs\nThese tests have been causing lots of headaches, and
aren\'t testing a\n"unit" of any sort anyway. They\'re testing a little
bit of code that\nhas caused zero test failures, while the tests
themselves have caused\nlots of failures.\n\nThanks to Axel for writing
the tests to start with!')]", rev:
"4b447ecc7056907a83ba9f022d370d3093e219f3" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x23040e0>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 1
files, rev=4b447ecc7056907a83ba9f022d370d3093e219f3, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments remove
test_limitlogs
These tests have been causing lots of headaches, and aren't
testing a
"unit" of any sort anyway. They're testing a little bit of code
that
has caused zero test failures, while the tests themselves have
caused
lots of failures.
Thanks to Axel for writing the tests to start with!, category
None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1264121243.0), (True, u'[email protected]'), (True,
['buildbot/test/runutils.py', 'buildbot/test/test_locks.py',
'buildbot/test/test_mergerequests.py']), (True, u'fix some tests .. but
not all')]", rev: "91d917bbb836db452e83492cc76cdde1e9511fb4" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x2307908>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 3
files, rev=91d917bbb836db452e83492cc76cdde1e9511fb4, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments fix some tests
.. but not all, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1264130310.0), (True, u'[email protected]'), (True,
['buildbot/test/test_mergerequests.py']), (True, u'remove
test_mergerequests.py\nThis test seems to develop spurious failures, and
removing it does not\nshift those failures elsewhere')]", rev:
"bb70cd71dfed13e53ca6b6e2022f6a5d89fcd3f5" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x2307dd0>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 1
files, rev=bb70cd71dfed13e53ca6b6e2022f6a5d89fcd3f5, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments remove
test_mergerequests.py
This test seems to develop spurious failures, and removing it does
not
shift those failures elsewhere, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1264130516.0), (True, u'[email protected]'), (True, ['NEWS',
'buildbot/__init__.py']), (True, u'upgrade to release version')]", rev:
"9061ba5bc9c3a06fddfef8f6ac9599087f944fd0" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x23032d8>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 2
files, rev=9061ba5bc9c3a06fddfef8f6ac9599087f944fd0, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments upgrade to
release version, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1270219306.0), (True, u'[email protected]'), (True,
['buildbot/status/web/index.html']), (True, u'Fixing CSS for index
page')]", rev: "10719f5292692352aeb4ab7f1cc74a6537a2698b" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x2303638>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected],
1 files, rev=10719f5292692352aeb4ab7f1cc74a6537a2698b, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments Fixing CSS for
index page, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: _add_change results: "[(True,
1270844759.0), (True, u'[email protected]'), (True, []), (True, u"Merge
branch 'buildbot-0.7.12' of git://github.com/jollyroger/buildbot into
buildbot-0.7.12\n* 'buildbot-0.7.12' of
git://github.com/jollyroger/buildbot:\n Fixing CSS for index page")]",
rev: "ecd52e267bc4ae7ca26a5f7190cb3b8b6c47b9e8" in "/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] gitpoller: change
"<buildbot.changes.changes.Change instance at 0x2303a28>" in
"/tmp/buildbot_git"
2011-04-06 12:47:02+0300 [-] adding change, who [email protected], 0
files, rev=ecd52e267bc4ae7ca26a5f7190cb3b8b6c47b9e8, branch=master,
repository=git://github.com/buildbot/buildbot.git, comments Merge branch
'buildbot-0.7.12' of git://github.com/jollyroger/buildbot into
buildbot-0.7.12
* 'buildbot-0.7.12' of git://github.com/jollyroger/buildbot:
Fixing CSS for index page, category None, project
2011-04-06 12:47:02+0300 [-] gitpoller: catching up to FETCH_HEAD
}}}
--
Ticket URL: <http://trac.buildbot.net/ticket/1915>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits