<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le lun. 21 nov. 2016 à 20:26, Randy J. Ray <<a href="mailto:rjray@nvidia.com">rjray@nvidia.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    <p class="gmail_msg">(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.)</p>
    <p class="gmail_msg">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
      (<a class="m_722537852297744873moz-txt-link-freetext gmail_msg" href="http://opencv.org" target="_blank">http://opencv.org</a>). 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.</p>
    <p class="gmail_msg">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).</p></div></blockquote><div>Hi Randy,</div><div>Looks like your task is quite specific, and probably the GIt step is not a good idea.</div><div>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.</div><div>So I would rather use a shell script that does the necessary checkout, and branching, and patch applying.</div><div>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.</div><div><br></div><div>Pierre<br><br></div></div></div>