[users at bb.net] Trying for an odd git configuration in some builder code

Pierre Tardy tardyp at gmail.com
Mon Nov 21 19:36:25 UTC 2016


Le lun. 21 nov. 2016 à 20:26, Randy J. Ray <rjray at nvidia.com> a écrit :

> (I apologize in advance for anything I ask about that should be obvious.
> I've been tasked with extending an existing buildbot configuration with a
> new builder, and I am very new to buildbot. Also, I am very new to Python.)
>
> My group has a buildbot configuration that we more or less "inherited"
> from a partner. We use it for regular builds of some packages (both
> internal and external), including OpenCV (http://opencv.org). I have been
> given the task of writing a new builder class to build the 3.1.0 version of
> OpenCV, where our current config is build the 2.4.13 version.
>
> This *should* have been pretty straightforward, since we're already
> building OpenCV. But it isn't, and here's why: the OpenCV source base (in
> git) has a specific branch for the 2.4 line, created when they started
> working on 3.0 (I presume). However, they never created branches for 3.0 or
> 3.1. As such, I cannot checkout 3.1 directly. I have to checkout master,
> then do "git checkout -b v3.1.0 3.1.0" to create a local branch from the
> 3.1.0 tag. To make it even more interesting, I also have to apply 1-2
> upstream changes via "git cherry-pick", for things that are broken in 3.1.0
> but not planned for general release until they release 3.2.0 (there is no
> plan for a 3.1.1, apparently).
>
Hi Randy,
Looks like your task is quite specific, and probably the GIt step is not a
good idea.
The Git step is made to actually do some CI of the repository, here it does
not look like you are building a CI for opencv, but rather building a CI
for a derived package.
So I would rather use a shell script that does the necessary checkout, and
branching, and patch applying.
Obviously, you wont be able to implement the smarts that the Git step has
(inclding reuse of the previous build's workdir), but this should work
especially if you are not very confortable with python.

Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20161121/4e456cc6/attachment.html>


More information about the users mailing list