X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.wtbts.no (mail.wtbts.no [213.234.126.131]) by mail.alpinelinux.org (Postfix) with ESMTP id 20D1ADC0157 for ; Tue, 22 Nov 2011 16:05:28 +0000 (UTC) Received: from localhost (bsna.nor.wtbts.net [127.0.0.1]) by mail.wtbts.no (Postfix) with ESMTP id A3DFDAE4001 for ; Tue, 22 Nov 2011 16:05:27 +0000 (UTC) X-Virus-Scanned: Yes Received: from mail.wtbts.no ([127.0.0.1]) by localhost (bsna.nor.wtbts.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bXM0nYZpcS1c for ; Tue, 22 Nov 2011 16:05:25 +0000 (UTC) Received: from mail.ytre.org (extmail.nor.wtbts.net [10.65.72.14]) by mail.wtbts.no (Postfix) with ESMTP id B366E376277 for ; Tue, 22 Nov 2011 16:05:25 +0000 (UTC) Received: from mail.ytre.org (localhost [127.0.0.1]) by mail.ytre.org (Postfix) with ESMTP id 8042660A873B4 for ; Tue, 22 Nov 2011 16:05:25 +0000 (UTC) Received: from ncopa-desktop.nor.wtbts.net (ncopa-desktop.nor.wtbts.net [10.65.65.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@ytre.org) by mail.ytre.org (Postfix) with ESMTPSA id 5B56D60A86EE0 for ; Tue, 22 Nov 2011 16:05:25 +0000 (UTC) Date: Tue, 22 Nov 2011 16:59:40 +0100 From: Natanael Copa To: Alpine Linux Development Subject: [alpine-devel] build server messaging Message-ID: <20111122165940.6c0e0371@ncopa-desktop.nor.wtbts.net> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Hi, Our current messaging between git server and buildservers goes via public IRC and has not been 100% reliable. So I have been looking at replacing it with a zeromq[1] based infra. The idea is that we have a buildmsg-server that listens on 2 ports, one for subscribers and one for git push notifications. The buildmsg-send is executed from git hook when something is pushed. buildmsg-send will connect to the buildmsg-server socket and simply pass over the git branch (i.e "master" or "2.3-stable"). buildmsg-server will forward this to all subscribers. The building servers will run buildmsg-subscriber's which connects to buildmsg-server and subscribes to a "branch". Whenever a message arrives it starts building. With zeromq and lua this is all very simple. I have pushed example code to http://git.alpinelinux.org/cgit/autobuilder/ (I added some deamonization code for buildmsg-server but i think that maybe its better if start-stop-daemon handles that together with pidfile creation and stdin/out/err redirection etc) Feedback is welcome. Thanks! -nc [1] http://www.zeromq.org/ --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---