FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 09-27-2012, 10:52 PM
Martín Ferrari
 
Default CIA going down: KGB wants your commits!

Hi there!

Not to "to knock 'em when they're down", but since it seems that the CIA.vc
service has officially closed recently (cannot find exactly when did that
happen), I think it's worthwhile offering this little project we (dam@,
gregoa@, and me) have since a few years ago, called KGB (ha-ha).

It's a very simple and dumb client-server architecture: IRC bots running in
our personal servers listen for SOAP messages sent by kgb-clients called
from post-commit hooks in repos out there. The bot just relays and formats
a message, nothing fancier than that.

So, if you're looking for a simple IRC notification of your commits, this
might be of help.

You can either run your own bot (debian package kgb-bot), or use ours. As
for the client, alioth does not have it installed, but you can run it off
/home/groups/kgb. There's a sample configuration there too. In
/home/groups/pkg-perl/meta/pkg-perl-post-receive you can see how to use it
from a post-commit hook.

If you rather use our bots, we'll need you to provide: a project/repository
name, an IRC channel, and a password (used to avoid spam, not really
secure).

--
Martín Ferrari


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAL60Pd_7zoPk4w4rta49-jymxzKOU+K7DdqZUiqsP32KZ9bQBA@mail.gmail.com">http ://lists.debian.org/CAL60Pd_7zoPk4w4rta49-jymxzKOU+K7DdqZUiqsP32KZ9bQBA@mail.gmail.com
 
Old 09-27-2012, 11:08 PM
Andrey Rahmatullin
 
Default CIA going down: KGB wants your commits!

On Thu, Sep 27, 2012 at 11:52:52PM +0100, Martín Ferrari wrote:
> Not to "to knock 'em when they're down", but since it seems that the CIA.vc
> service has officially closed recently (cannot find exactly when did that
> happen)
http://shadowm.rewound.net/blog/archives/245-CIA.vc-is-dead.html
http://pastebin.com/9RBBniM1

--
WBR, wRAR
 
Old 09-28-2012, 12:18 AM
Paul Wise
 
Default CIA going down: KGB wants your commits!

On Fri, Sep 28, 2012 at 6:52 AM, Martín Ferrari wrote:

> Not to "to knock 'em when they're down", but since it seems that the CIA.vc
> service has officially closed recently (cannot find exactly when did that
> happen), I think it's worthwhile offering this little project we (dam@,
> gregoa@, and me) have since a few years ago, called KGB (ha-ha).

Seems like ESR has been working on a less centralised replacement for a while:

http://esr.ibiblio.org/?p=4540
http://esr.ibiblio.org/?p=4612
http://esr.ibiblio.org/?p=4607
http://esr.ibiblio.org/?p=4538

--
bye,
pabs

http://wiki.debian.org/PaulWise


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAKTje6GdYkQqpfV9u5hqgKx9zu2W_je1DjO0KJLAnWHhunYMF w@mail.gmail.com">http://lists.debian.org/CAKTje6GdYkQqpfV9u5hqgKx9zu2W_je1DjO0KJLAnWHhunYMF w@mail.gmail.com
 
Old 09-28-2012, 12:35 AM
Joey Hess
 
Default CIA going down: KGB wants your commits!

Martín Ferrari wrote:
> If you rather use our bots, we'll need you to provide: a project/repository
> name, an IRC channel, and a password (used to avoid spam, not really
> secure).

d-i would like to use your bots, but we have an ever-changing list of
repositories. It'd be wrong to centralize the list of them in a bot's
config file. Any thoughts?

--
see shy jo
 
Old 09-28-2012, 12:44 AM
Martín Ferrari
 
Default CIA going down: KGB wants your commits!

(you have a really weird reply-to )

On Fri, Sep 28, 2012 at 1:35 AM, Joey Hess <joeyh@debian.org> wrote:

> d-i would like to use your bots, but we have an ever-changing list of
> repositories. It'd be wrong to centralize the list of them in a bot's
> config file. Any thoughts?

For KGB the concept of a repository is a bit fuzzy. It is just the
unit it uses to separate access control (password), channels to
broadcast to, and a word in the commit notification. But you can use
one of these for hundreds of repos, like pkg-perl does: all the git
repos (one per package) use the same client config, and just add a
module parameter derived from the path.

Would that be enough for you?

--
Martín Ferrari


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAL60Pd8_+ghw83TgCjHNQ0OozJC09t8h9vhogdgKKGi7ECikj w@mail.gmail.com">http://lists.debian.org/CAL60Pd8_+ghw83TgCjHNQ0OozJC09t8h9vhogdgKKGi7ECikj w@mail.gmail.com
 
Old 09-28-2012, 12:48 AM
Joey Hess
 
Default CIA going down: KGB wants your commits!

Martín Ferrari wrote:
> (you have a really weird reply-to )

I do? I see no such header..

> For KGB the concept of a repository is a bit fuzzy. It is just the
> unit it uses to separate access control (password), channels to
> broadcast to, and a word in the commit notification. But you can use
> one of these for hundreds of repos, like pkg-perl does: all the git
> repos (one per package) use the same client config, and just add a
> module parameter derived from the path.
>
> Would that be enough for you?

If the module parameter is displayed on IRC, then yes.

I must be missing how to do that for git, as I just filed a bug about it. :/

--
see shy jo
 
Old 09-28-2012, 01:01 AM
gregor herrmann
 
Default CIA going down: KGB wants your commits!

On Thu, 27 Sep 2012 20:48:23 -0400, Joey Hess wrote:

> > For KGB the concept of a repository is a bit fuzzy. It is just the
> > unit it uses to separate access control (password), channels to
> > broadcast to, and a word in the commit notification. But you can use
> > one of these for hundreds of repos, like pkg-perl does: all the git
> > repos (one per package) use the same client config, and just add a
> > module parameter derived from the path.
> > Would that be enough for you?
> If the module parameter is displayed on IRC, then yes.
> I must be missing how to do that for git, as I just filed a bug about it. :/

That works fine for pkg-perl.


1) Client side (i.e. vasks):

1a) /home/groups/pkg-perl/meta/pkg-perl-post-receive

BASE=/home/groups/pkg-perl
KGB=/home/groups/kgb/trunk
CONF=$BASE/kgb-client.conf
PKG=${DIR%.git}

if [ -e $BASE/KGB-notifications-disabled ]; then
echo "KGB notifications disabled"
else
cat hooks/reflog |
PERL5LIB=$KGB/lib $KGB/script/kgb-client --conf $CONF
--repository git --git-reflog - --module $PKG
fi


1b) /home/groups/pkg-perl/kgb-client.conf

---
repo-id: 'pkg-perl'
# first capture is branch name, second capture is module name
branch-and-module-re:
- "/(trunk|tags|apps|attic)/([^/]+)"
- "/branches/([^/]+)/([^/]+)"
- "/()(scripts)/"
ignore-branch: trunk
timeout: 7
password: 12345
servers:
# dam, KGB-0
- uri: http://dam.homelinux.net:9418/
# gregoa, KGB-2
- uri: http://colleen.colgarra.priv.at:8080/
# Tincho, KGB-1
- uri: http://abhean.mine.nu:9418/
status-dir: /home/groups/pkg-perl/kgb-client-status


2) Server side:

[..]
repositories:
# just a name to identify it
pkg-perl:
# needs to be the same on the client
password: 12345
channels:
- name: '#debian-perl'
network: oftc
repos:
- pkg-perl
[..]


And in #debian-perl this looks like:

20:12 <KGB-0> joostvb upstream b19ebac eekboek debian/ TODO changelog * update TODO-list

(last commit in one of our repos, in this case eekboek)


Cheers,
gregor

--
.'`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Ryan Adams: Gimme A Sign
 
Old 09-28-2012, 05:49 AM
Tollef Fog Heen
 
Default CIA going down: KGB wants your commits!

]] Martín Ferrari

> You can either run your own bot (debian package kgb-bot), or use ours. As
> for the client, alioth does not have it installed, but you can run it off
> /home/groups/kgb.

It's installed now.

--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 877gren1df.fsf@xoog.err.no">http://lists.debian.org/877gren1df.fsf@xoog.err.no
 
Old 09-29-2012, 08:13 PM
Josselin Mouette
 
Default CIA going down: KGB wants your commits!

Le vendredi 28 septembre 2012 à 07:49 +0200, Tollef Fog Heen a écrit :
> > You can either run your own bot (debian package kgb-bot), or use ours. As
> > for the client, alioth does not have it installed, but you can run it off
> > /home/groups/kgb.
>
> It's installed now.

Thanks to everyone involved for being so helpful. This was an easy
migration and the functionality is back.

--
.'`. Josselin Mouette
: :' :
`. `'
`-


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/1348949622.13271.23.camel@tomoyo
 

Thread Tools




All times are GMT. The time now is 12:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org