On Wed, 2011-03-23 at 08:49 -0400, Kamil Paral wrote:
> >
> > /home/autoqa (vhumpa)$ ls -1 events/
> > git-post-receive
> > post-bodhi-update
> > post-bodhi-update-batch
> > post-koji-build
> > post-koji-build-batch
> > post-repo-update
> > post-tree-compose
> >
> > On the other hand, the watchers are now named differently:
> >
> > /home/autoqa (vhumpa)$ ls -1 watchers/
> > git-post-receive
> > koji-bodhi
>
> Should this just be koji, we aren't really watching bodhi anymore,
> right?
Implementation works with just koji tags, yes. But from the user
perspective this watcher's purpose is to announce koji and bodhi
events, so that's the reason I proposed this name.
That makes sense.
> > repo-update
> > tree-compose
> >
> > I feel it just reads better.
> >
> > Is that what you mean, or you had something else on mind?
>
> I understand now, thanks. I just wasn't sure why the "post-" string
> was
> removed.
>
To emphasize that there is no 1:1 mapping before watcher and event.
Actually, maybe we should name them this way:
watchers/git
watchers/koji-bodhi
watchers/yum-repo
watchers/composes
git watcher will probably announce any git events (maybe there will be some other besides
git-post-receive). koji-bodhi watcher announces koji and bodhi events. yum-repo watcher
announces everything related to yum repositories (post-repo-update). and composes watcher
handles composes events (post-tree-compose).
I'm okay calling it whatever you feel is appropriate in the new scheme.
Note, this particular watcher is designed to only trigger for the git
'post-receive' hook
(
http://www.kernel.org/pub/software/scm/git/docs/githooks.html#post-receive). The git
server, when properly configured, will initiate this event (so it's a push, not a poll
like other watchers). Many other git hooks are client-side ... and would likely involve a
different watcher/approach for detection. I suspect they'd go into a different
watcher, but too hard to tell at this time without a use case.
But they are *just* names, so if you think some different naming (or
the original naming) is better, I've no hard feelings here. My
intention was to make them easy to understand without much previous
knowledge.
Can't argue with that goal :)
Thanks,
James