On Thu, Aug 11, 2011 at 2:00 PM, Roland Schulz <span dir="ltr"><<a href="mailto:roland@utk.edu">roland@utk.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>in the thread <a href="http://public.kitware.com/pipermail/cdash/2011-March/000944.html" target="_blank">http://public.kitware.com/pipermail/cdash/2011-March/000944.html</a> Bill mentioned that cdash@home is used to automatic trigger builds for new gerrit commits.</div>
<div><br></div><div>My question: How do you trigger the build from gerrit? Do you use the gerrit streams (<a href="http://gerrit.googlecode.com/svn/documentation/2.1.2/cmd-stream-events.html" target="_blank">http://gerrit.googlecode.com/svn/documentation/2.1.2/cmd-stream-events.html</a>) or do you poll gerrit/git regularly to see whether a build is required?</div>
</blockquote><div><br></div><div>We have a fairly simple python script that connects to the gerrit server via ssh and listens to the event stream.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div> Is the code to do this available?</div></blockquote><div><br></div><div>It contains the secret key we use for communicating with the CDash Web API, so we are keeping it private. (In the future, we could scrub it and clean it up for public consumption, but right now, it's not in a state to go public today.)</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br></div><div>Also do you already have some code to automatically let CDash review "+1/-1 verify" depending on whether the build succeeded? </div></blockquote><div><br></div><div>No. We just have links to the builds that were kicked off by a build request posted as a comment. See, for example, the comments by the "Kitware Robot" user here:</div>
<div><br></div><div> <a href="http://review.source.kitware.com/#change,2432">http://review.source.kitware.com/#change,2432</a></div><div><br></div><div>Which points to this CDash view of the builds that were initiated:</div>
<div><br></div><div> <a href="http://www.cdash.org/CDash/index.php?project=Insight&filtercount=2&field1=buildname/string&compare1=63&value1=recursiveVanHerkinclude&field2=buildstarttime/date&compare2=83&value2=2011-8-10">http://www.cdash.org/CDash/index.php?project=Insight&filtercount=2&field1=buildname/string&compare1=63&value1=recursiveVanHerkinclude&field2=buildstarttime/date&compare2=83&value2=2011-8-10</a></div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div></div>