git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: sharing between local "work" and "nightly build" git repos

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jul 13, 2007, 05:11 UTC
Message-ID
<20070713051140.GB2430@steel.home>
In-Reply-To
<7154c5c60707121733r6584a407r8d60d5890b9c89e2@mail.gmail.com>
David Frech, Fri, Jul 13, 2007 02:33:19 +0200:
Show 11 quoted lines
> On 7/12/07, David Frech <nimblemachines@gmail.com> wrote:
> >On 7/12/07, Junio C Hamano <gitster@pobox.com> wrote:
> >> Then a nightly update would go like this:
> >>
> >>  $ cd ~/nightly-git
> >>  $ git pull origin next
> >>  $ make clean
> >>  $ make test || barf
> 
> One more thing: would it make sense to do "make -k test" so that *all*
> failures (if >1) show up?

Yes, definitely. You'll find you will see failures which you know are already fixed, just didn't reach the nightly-build yet.

BTW, do _not_ send the errors to this mailing list. It just too easy gets out of control. And consider saving the build log somewhere after doing a _completely_ clean build, i.e. like this:

    #!/bin/bash
    cd ~/nightly-git || exit
    echo 'Subject: Nightly build git next ' $(date) >/tmp/mail.msg
    echo >>/tmp/mail.msg
    {
	rm -rf * # it does not remove .git
	git reset --hard
	git pull origin next || exit 1
	make || exit 1
	make -k test|| exit 1
    } &>> /tmp/mail.msg
    $ nightly-build || sendmail local-user@localhost < /tmp/mail.msg

It is simplier to find out what went wrong if you know what state did you have before doing the test. And the state after rm -rf * is very simple to predict.

Previous: David FrechNext: Junio C Hamano
Message 5 of 6 in “sharing between local "work" and "nightly build" git repos”
  1. David FrechJul 12, 2007
  2. Junio C HamanoJul 13, 2007
  3. David FrechJul 13, 2007
  4. David FrechJul 13, 2007
  5. Alex RiesenJul 13, 2007
  6. Junio C HamanoJul 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.