From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Koen Kooi <koen@dominion.thruhere.net>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [RFC PATCH 1/2] classes/buildhistory: add new output history collection class
Date: Sun, 08 Jan 2012 23:04:14 +0000 [thread overview]
Message-ID: <1533230.LvVeP63quA@helios> (raw)
In-Reply-To: <225B79C8-8CC0-429B-B4B8-95360FD4B07E@dominion.thruhere.net>
On Wednesday 07 December 2011 09:50:51 Koen Kooi wrote:
> Op 2 dec. 2011, om 00:56 heeft Paul Eggleton het volgende geschreven:
> > +buildhistory_commit() {
> > + ( cd ${BUILDHISTORY_DIR}/
> > + git add ${BUILDHISTORY_DIR}/*
> > + git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} for machine
> > ${MACHINE} configured for ${DISTRO} ${DISTRO_VERSION}" --author
> > "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null + if [
> > "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
> > + git push -q ${BUILDHISTORY_PUSH_REPO}
> > + fi) || true
> > +}
>
> One of the big problems with the old testlab code was that using multiple
> buildslaves created a huge mess for the git repo. What do you think about
> doing this the following before the 'git add'?
>
> git pull -q -s recursive -X theirs ${BUILDHISTORY_PULL_REPO}
>
> I'm not sure what the right incantation is to ensure git updates the current
> branch, but the point is mainly about using the 'theirs' strategy.
So this pulls into the current branch by default, that's not an issue. What is
a problem is that if untracked files exist that would be overwritten by the
merge (and it's not hard to imagine that coming up fairly regularly) then it
will error out. We probably need to come up with a better way to handle this.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-01-08 23:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-01 23:56 [RFC PATCH 0/2] introduce buildhistory.bbclass Paul Eggleton
2011-12-01 23:56 ` [RFC PATCH 1/2] classes/buildhistory: add new output history collection class Paul Eggleton
2011-12-02 10:03 ` Koen Kooi
2011-12-02 11:44 ` Paul Eggleton
2011-12-07 8:50 ` Koen Kooi
2011-12-07 11:38 ` Paul Eggleton
2012-01-08 23:04 ` Paul Eggleton [this message]
2011-12-01 23:56 ` [RFC PATCH 2/2] classes/buildhistory: merge in package history functionality Paul Eggleton
2011-12-02 10:15 ` Koen Kooi
2011-12-02 11:35 ` Paul Eggleton
2011-12-02 11:46 ` Koen Kooi
2011-12-02 11:49 ` Paul Eggleton
2011-12-02 20:46 ` Koen Kooi
2011-12-05 16:24 ` [RFC PATCH 0/2] introduce buildhistory.bbclass Richard Purdie
2011-12-05 16:51 ` Koen Kooi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1533230.LvVeP63quA@helios \
--to=paul.eggleton@linux.intel.com \
--cc=koen@dominion.thruhere.net \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox