<div dir="ltr">I think it's done and working again.<div><br></div><div>Best,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 1, 2017 at 11:47 PM, Samuel Cantero <span dir="ltr"><<a href="mailto:scanterog@gmail.com" target="_blank">scanterog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Sun, Oct 1, 2017 at 11:41 PM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Okay, thanks.  Where's the flask app?  What's the building bot?<br></blockquote><div><br></div></span><div>The code in charge of managing the hook is in freedom and it is not using kafka anymore. Maybe I called it wrong. I just named it "building bot" but apparently it was more confusing.</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
It looked to me that Kafka on freedom port 9092 was meant to make this<br>
async anyway;<br>
<br>
<a href="https://github.com/sugarlabs-infra/help-rebuilder/blob/master/main.py" rel="noreferrer" target="_blank">https://github.com/sugarlabs-i<wbr>nfra/help-rebuilder/blob/maste<wbr>r/main.py</a></blockquote><div><br></div></span><div>It was replaced (I suppose by SamP). I can see it was using kafka before: <a href="https://github.com/sugarlabs-infra/developer-rebuilder/blob/master/main.py" target="_blank">https://github.com/sug<wbr>arlabs-infra/developer-rebuild<wbr>er/blob/master/main.py</a><br></div><div><br></div><div>Anyway, I will replace it now by this <a href="https://gist.github.com/scanterog/8639b74d1ba077f132675e9712465cf3" target="_blank">https://gist.github.com/<wbr>scanterog/<wbr>8639b74d1ba077f132675e9712465c<wbr>f3</a></div><div><br></div><div>Maybe not very elegant but it should do the job. I will replace image/container now and test it.</div><div><div class="h5"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
But I don't know what triggers the message from Kafka.<br>
<br>
If there's still a sugar-buildbot instance from back in Daniel Narvaez<br>
days, I think we aren't using it and it might be time to turn it off.<br>
<br>
<a href="http://buildbot.sugarlabs.org/" rel="noreferrer" target="_blank">http://buildbot.sugarlabs.org/</a> is down.<br>
<span class="m_4019173488394759745gmail-m_4536604193955739769gmail-"><br>
On Sun, Oct 01, 2017 at 11:18:34PM -0300, Samuel Cantero wrote:<br>
> I've recently checked it and I see the following as error:<br>
><br>
>   File "/usr/local/lib/python2.7/sock<wbr>et.py", line 307, in flush<br>
>     self._sock.sendall(view[write_<wbr>offset:write_offset+buffer_siz<wbr>e])<br>
> socket.error: [Errno 32] Broken pipe<br>
><br>
> This is due the python process (flask app) has received SIGPIPE signal which<br>
> means in this case GitHub has closed the connection. I think GH timeout is only<br>
> 1 sec and our building bot is taking more time. We need to reply to GH when the<br>
> payload arrives and then continue processing in background (async mode). We<br>
> might replace flask by aiohttp. Using celery is too overkill for this.<br>
><br>
> Best,<br>
><br>
</span><span class="m_4019173488394759745gmail-m_4536604193955739769gmail-">> On Sun, Oct 1, 2017 at 10:10 PM, James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
><br>
>     Two recent commits by Walter and I have not updated<br>
</span>>     [2]<a href="https://developer.sugarlabs.org/" rel="noreferrer" target="_blank">https://developer.sugarlab<wbr>s.org/</a><br>
<span class="m_4019173488394759745gmail-m_4536604193955739769gmail-">><br>
>     Is it failing in some way?  Can we fix it?<br>
><br>
>     --<br>
>     James Cameron<br>
</span>>     [3]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>     _____________________________<wbr>__________________<br>
>     Systems mailing list<br>
>     [4]<a href="mailto:Systems@lists.sugarlabs.org" target="_blank">Systems@lists.sugarlabs.or<wbr>g</a><br>
>     [5]<a href="http://lists.sugarlabs.org/listinfo/systems" rel="noreferrer" target="_blank">http://lists.sugarlabs.org<wbr>/listinfo/systems</a><br>
><br>
> References:<br>
><br>
> [1] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [2] <a href="https://developer.sugarlabs.org/" rel="noreferrer" target="_blank">https://developer.sugarlabs.or<wbr>g/</a><br>
> [3] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [4] mailto:<a href="mailto:Systems@lists.sugarlabs.org" target="_blank">Systems@lists.sugarlabs<wbr>.org</a><br>
> [5] <a href="http://lists.sugarlabs.org/listinfo/systems" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/lis<wbr>tinfo/systems</a><br>
<div class="m_4019173488394759745gmail-m_4536604193955739769gmail-HOEnZb"><div class="m_4019173488394759745gmail-m_4536604193955739769gmail-h5"><br>
--<br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>