[Systems] developer.sugarlabs.org update hook unresponsive

Samuel Cantero scanterog at gmail.com
Sun Oct 1 22:47:41 EDT 2017


On Sun, Oct 1, 2017 at 11:41 PM, James Cameron <quozl at laptop.org> wrote:

> Okay, thanks.  Where's the flask app?  What's the building bot?
>

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.

It looked to me that Kafka on freedom port 9092 was meant to make this
> async anyway;
>
> https://github.com/sugarlabs-infra/help-rebuilder/blob/master/main.py


It was replaced (I suppose by SamP). I can see it was using kafka before:
https://github.com/sugarlabs-infra/developer-rebuilder/blob/master/main.py

Anyway, I will replace it now by this
https://gist.github.com/scanterog/8639b74d1ba077f132675e9712465cf3

Maybe not very elegant but it should do the job. I will replace
image/container now and test it.


>
> But I don't know what triggers the message from Kafka.
>
> If there's still a sugar-buildbot instance from back in Daniel Narvaez
> days, I think we aren't using it and it might be time to turn it off.
>
> http://buildbot.sugarlabs.org/ is down.
>
> On Sun, Oct 01, 2017 at 11:18:34PM -0300, Samuel Cantero wrote:
> > I've recently checked it and I see the following as error:
> >
> >   File "/usr/local/lib/python2.7/socket.py", line 307, in flush
> >     self._sock.sendall(view[write_offset:write_offset+buffer_size])
> > socket.error: [Errno 32] Broken pipe
> >
> > This is due the python process (flask app) has received SIGPIPE signal
> which
> > means in this case GitHub has closed the connection. I think GH timeout
> is only
> > 1 sec and our building bot is taking more time. We need to reply to GH
> when the
> > payload arrives and then continue processing in background (async mode).
> We
> > might replace flask by aiohttp. Using celery is too overkill for this.
> >
> > Best,
> >
> > On Sun, Oct 1, 2017 at 10:10 PM, James Cameron <[1]quozl at laptop.org>
> wrote:
> >
> >     Two recent commits by Walter and I have not updated
> >     [2]https://developer.sugarlabs.org/
> >
> >     Is it failing in some way?  Can we fix it?
> >
> >     --
> >     James Cameron
> >     [3]http://quozl.netrek.org/
> >     _______________________________________________
> >     Systems mailing list
> >     [4]Systems at lists.sugarlabs.org
> >     [5]http://lists.sugarlabs.org/listinfo/systems
> >
> > References:
> >
> > [1] mailto:quozl at laptop.org
> > [2] https://developer.sugarlabs.org/
> > [3] http://quozl.netrek.org/
> > [4] mailto:Systems at lists.sugarlabs.org
> > [5] http://lists.sugarlabs.org/listinfo/systems
>
> --
> James Cameron
> http://quozl.netrek.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/systems/attachments/20171001/b0aa496f/attachment.html>


More information about the Systems mailing list