Re: [openstack-dev] Switch 'all?' openstack bots to errbot plugins?

2016-07-29 Thread Joshua Harlow
Woot, ya there is a bunch of nice features although I will admit after 
doing some plugins there is also a little things that are sort of what I 
would call oddities as well (but meh, nothing is perfect, ha).


Reviews up for a new project for all these (plugins and probably a main 
bot entrypoint/main):


- https://review.openstack.org/#/c/349046/
- https://review.openstack.org/#/c/348998/

I'm thinking I'll just move over 
https://github.com/harlowja/gerritbot2/blob/master/plugins/gerritbot/gerritbot.py 
after that and we can work through some of the oddities to make that 
plugin map better on the existing gerritbot (which has it's own 
unique/special configuration yaml style) and then we can work through 
various other plugins at the same time (with meetbot being the 
complicated one) and then 


-Josh

David Moreau Simard wrote:

FWIW I can vouch for the quality of Errbot, I've used it on several
occasions and we're currently using it in the RDO community.

A very useful feature that I like is the webserver hook integration.
This allows the bot to essentially expose an endpoint and you can send
things to it.
For example, we have a sensu_event [1] endpoint and we have a sensu
handler that sends events to it, the bot then sends an alert to our
IRC channels.

[1]: 
https://github.com/rdo-infra/rdobot/blob/master/rdobot/plugins/sensu/errbot-sensu.py#L95

David Moreau Simard
Senior Software Engineer | Openstack RDO

dmsimard = [irc, github, twitter]


On Fri, Jul 29, 2016 at 1:49 AM, Joshua Harlow  wrote:

Hi folks,

I was thinking it might be useful to see what other folks think about
switching (or migrating all the current bots we have in openstack) to be
based on errbot plugins.

Errbot @ http://errbot.io/en/latest/ takes a slightly different approach to
bots and treats each bot 'feature' as a plugin that can be activated and
deactivated with-in the context of the same bot (even doing so
dynamically/at runtime).

It also allows for those that use slack (or other backend @
http://errbot.io/en/latest/features.html) to be able to 'seamlessly' use the
same plugins and just switching a tiny amount config to use a different 'bot
backend'.

I've been experimenting with it more recently and have a gerritbot (sort of
equivalent) @ https://github.com/harlowja/gerritbot2 and also have been
working on a oslobot plugin @ https://review.openstack.org/#/c/343857/ and
during this exploration it has gotten me to think that we could move most of
the functionality of the various bots in openstack (patchbot, openstack -
really meetbot, gerritbot and others?) under the same umbrella (or at least
convert them into plugins that folks can run on IRC or if they want to run
them on some other backend that's cool to).

The hardest one I can think would be meetbot, although the code @
https://github.com/openstack-infra/meetbot doesn't look impossible (or
really that hard to convert to an errbot plugin).

What do people think?

Any strong preference?

I was also thinking that as a result we could then just have a single
'openstack' bot and also turn on plugins like:

- https://github.com/aherok/errbot_plugins (helps with timezone conversions
that might be useful to have for folks that keep on getting them wrong).
- some stackalytics integration bot?
- something even better???
- some other plugin @ https://github.com/errbotio/errbot/wiki

-Josh

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Switch 'all?' openstack bots to errbot plugins?

2016-07-29 Thread David Moreau Simard
FWIW I can vouch for the quality of Errbot, I've used it on several
occasions and we're currently using it in the RDO community.

A very useful feature that I like is the webserver hook integration.
This allows the bot to essentially expose an endpoint and you can send
things to it.
For example, we have a sensu_event [1] endpoint and we have a sensu
handler that sends events to it, the bot then sends an alert to our
IRC channels.

[1]: 
https://github.com/rdo-infra/rdobot/blob/master/rdobot/plugins/sensu/errbot-sensu.py#L95

David Moreau Simard
Senior Software Engineer | Openstack RDO

dmsimard = [irc, github, twitter]


On Fri, Jul 29, 2016 at 1:49 AM, Joshua Harlow  wrote:
> Hi folks,
>
> I was thinking it might be useful to see what other folks think about
> switching (or migrating all the current bots we have in openstack) to be
> based on errbot plugins.
>
> Errbot @ http://errbot.io/en/latest/ takes a slightly different approach to
> bots and treats each bot 'feature' as a plugin that can be activated and
> deactivated with-in the context of the same bot (even doing so
> dynamically/at runtime).
>
> It also allows for those that use slack (or other backend @
> http://errbot.io/en/latest/features.html) to be able to 'seamlessly' use the
> same plugins and just switching a tiny amount config to use a different 'bot
> backend'.
>
> I've been experimenting with it more recently and have a gerritbot (sort of
> equivalent) @ https://github.com/harlowja/gerritbot2 and also have been
> working on a oslobot plugin @ https://review.openstack.org/#/c/343857/ and
> during this exploration it has gotten me to think that we could move most of
> the functionality of the various bots in openstack (patchbot, openstack -
> really meetbot, gerritbot and others?) under the same umbrella (or at least
> convert them into plugins that folks can run on IRC or if they want to run
> them on some other backend that's cool to).
>
> The hardest one I can think would be meetbot, although the code @
> https://github.com/openstack-infra/meetbot doesn't look impossible (or
> really that hard to convert to an errbot plugin).
>
> What do people think?
>
> Any strong preference?
>
> I was also thinking that as a result we could then just have a single
> 'openstack' bot and also turn on plugins like:
>
> - https://github.com/aherok/errbot_plugins (helps with timezone conversions
> that might be useful to have for folks that keep on getting them wrong).
> - some stackalytics integration bot?
> - something even better???
> - some other plugin @ https://github.com/errbotio/errbot/wiki
>
> -Josh
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Switch 'all?' openstack bots to errbot plugins?

2016-07-29 Thread Morgan Fainberg
On Jul 28, 2016 22:50, "Joshua Harlow"  wrote:
>
> Hi folks,
>
> I was thinking it might be useful to see what other folks think about
switching (or migrating all the current bots we have in openstack) to be
based on errbot plugins.
>
> Errbot @ http://errbot.io/en/latest/ takes a slightly different approach
to bots and treats each bot 'feature' as a plugin that can be activated and
deactivated with-in the context of the same bot (even doing so
dynamically/at runtime).
>
> It also allows for those that use slack (or other backend @
http://errbot.io/en/latest/features.html) to be able to 'seamlessly' use
the same plugins and just switching a tiny amount config to use a different
'bot backend'.
>
> I've been experimenting with it more recently and have a gerritbot (sort
of equivalent) @ https://github.com/harlowja/gerritbot2 and also have been
working on a oslobot plugin @ https://review.openstack.org/#/c/343857/ and
during this exploration it has gotten me to think that we could move most
of the functionality of the various bots in openstack (patchbot, openstack
- really meetbot, gerritbot and others?) under the same umbrella (or at
least convert them into plugins that folks can run on IRC or if they want
to run them on some other backend that's cool to).
>
> The hardest one I can think would be meetbot, although the code @
https://github.com/openstack-infra/meetbot doesn't look impossible (or
really that hard to convert to an errbot plugin).
>
> What do people think?
>
> Any strong preference?
>
> I was also thinking that as a result we could then just have a single
'openstack' bot and also turn on plugins like:
>
> - https://github.com/aherok/errbot_plugins (helps with timezone
conversions that might be useful to have for folks that keep on getting
them wrong).
> - some stackalytics integration bot?
> - something even better???
> - some other plugin @ https://github.com/errbotio/errbot/wiki
>
> -Josh
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

As I recall this has been on a long list of "we want to do it". It really
just comes down to someone putting effort into making it happen.

--Morgan
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev