[Buildbot-devel] Problem with build.steps.source.Git on Windows with revision from sourcestamp

Russell Gallop russell at xmos.com
Tue Jan 18 11:41:40 UTC 2011


Aha! Updated msys git from 1.7.0.2 to 1.7.3.1 and it works.

Thanks a lot. That should make the builds more accurate than just 
checking out the latest.

Russ

Amber Yust wrote:
>
> I believe that's an issue with the git.CMD wrapper script in older 
> versions - it eats status codes and always returns an exit code of 0.
>
> Can you update your git.CMD?
>
> ~Amber (sent from Droid, please forgive any typos!)
>
> On Jan 17, 2011 9:28 AM, "Russell Gallop" <russell at xmos.com 
> <mailto:russell at xmos.com>> wrote:
> > I have updated the master to 0.8.3p1 and it does not fix it.
> >
> > The commands seem different between Linux and Windows build slaves. e.g.
> >
> > checkoutstep=Git(repourl=gitrepo,
> > mode="clobber",
> > workdir="build/repo",
> > haltOnFailure=True)
> >
> >
> > Then the windows build does:
> >
> > C:\Program Files\Git\cmd\git.CMD init
> >
> > Initialized empty Git repository in
> >
> > C:/buildbot/slave/windows_xp_32bit/build/repo/.git/
> >
> > C:\Program Files\Git\cmd\git.CMD reset --hard 
> 4190595005d7e193ffa156b4ddfcb6006a751db8
> >
> > fatal: Could not parse object 
> '4190595005d7e193ffa156b4ddfcb6006a751db8'.
> >
> > C:\Program Files\Git\cmd\git.CMD rev-parse HEAD
> >
> > HEAD
> >
> > fatal: ambiguous argument 'HEAD': unknown revision or path not in 
> the working tree.
> > Use '--' to separate paths from revisions
> >
> > Which does not make much sense to me for checking out code.
> >
> > Linux does:
> >
> > rm -rf /local/swnb/buildbot/slave/centos_4.8_32bit/build/repo
> >
> > /usr/local/bin/git init
> >
> > Initialized empty Git repository in
> >
> > /local/swnb/buildbot/slave/centos_4.8_32bit/build/repo/.git/
> >
> > /usr/local/bin/git reset --hard 4190595005d7e193ffa156b4ddfcb6006a751db8
> >
> > fatal: Could not parse object 
> '4190595005d7e193ffa156b4ddfcb6006a751db8'.
> >
> > /usr/local/bin/git fetch -t git://git/repo/.git +master
> >
> > ...
> >
> > /usr/local/bin/git reset --hard 4190595005d7e193ffa156b4ddfcb6006a751db8
> >
> > HEAD is now at 4190595 Updated: infr_scripts_pl verif_tests_sw
> >
> > /usr/local/bin/git branch -M master
> >
> > /usr/local/bin/git rev-parse HEAD
> >
> > 4190595005d7e193ffa156b4ddfcb6006a751db8
> >
> >
> > I am using:
> > -Windows XP
> > -msys git 1.7.0.2
> > -buildmaster 0.8.3p1
> > -buildslave 0.8.3
> >
> > Still puzzled...
> > Russ
> >
> >
> > Dustin J. Mitchell wrote:
> >> On Fri, Jan 14, 2011 at 11:58 AM, Amber Yust <ayust at yelp.com 
> <mailto:ayust at yelp.com>> wrote:
> >>
> >>> Have you grabbed 0.8.3p1 for the buildslave? I believe 0.8.3 had 
> some Git
> >>> issues.
> >>>
> >>
> >> This particular issue was a problem in 0.8.2, actually, and is fixed
> >> in 0.8.3 (and p1). p1 only added fixes for the GitPoller, so it's
> >> irrelevant here.
> >>
> >> Dustin
> >>
> >
> >
> > 
> ------------------------------------------------------------------------------
> > Protect Your Site and Customers from Malware Attacks
> > Learn about various malware tactics and how to avoid them. Understand
> > malware threats, the impact they can have on your business, and how you
> > can protect your company and customers by using code signing.
> > http://p.sf.net/sfu/oracle-sfdevnl
> > _______________________________________________
> > Buildbot-devel mailing list
> > Buildbot-devel at lists.sourceforge.net 
> <mailto:Buildbot-devel at lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/buildbot-devel





More information about the devel mailing list