[OE-core] [RFC PATCH 1/2] classes/buildhistory: add new output history collection class
Paul Eggleton
paul.eggleton at linux.intel.com
Sun Jan 8 23:04:14 UTC 2012
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
More information about the Openembedded-core
mailing list