Helga的Koji插件
项目描述
关于
Helga是一个Python聊天机器人。完整文档可以在http://helga.readthedocs.org找到。
此Koji插件允许Helga在IRC中响应与Koji相关的命令并打印有关构建和任务的信息。
估计当前(进行中)构建完成的时间
03:14 < ktdreyer> helgabot: current ceph build 03:14 < helgabot> ktdreyer, ceph-12.2.1-1.el7cp should finish building in 3 min 45 sec https://cbs.centos.org/koji/buildinfo?buildID=20348
了解最近的完成构建需要多长时间才能完成
03:14 < ktdreyer> helgabot: last ceph build 03:14 < helgabot> ktdreyer, ceph-12.2.2-0.el7 build duration was 2 hr 49 min https://cbs.centos.org/koji/buildinfo?buildID=21149
查询软件包
03:14 < ktdreyer> helgabot: ceph package 03:14 < helgabot> ktdreyer, ceph is https://cbs.centos.org/koji/packageinfo?packageID=534
查找用户的任务
03:14 < ktdreyer> helgabot: soandso's tasks 03:14 < helgabot> ktdreyer, soandso's kernel scratch build should be done in 1 hr 26 min (https://koji.example.com/koji/taskinfo?taskID=15741633)
通过URL估计任务
< ktdreyer> helgabot: https://koji.example.com/koji/taskinfo?taskID=12456 < helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26 min.
安装
此Koji插件可在PyPI上找到,因此您可以使用pip简单安装它。
pip install helga-koji
如果您想对helga-koji源代码进行黑客攻击,在您运行Helga的virtualenv中,从GitHub克隆此存储库的副本并运行python setup.py develop。
配置
helga-koji使用txkoji库,该库在~/.koji/config.d/*.conf和/etc/koji.conf.d/*.conf中查找配置文件。为了为您的Koji实例配置helga-koji,您必须在磁盘上的此位置具有配置文件。这是正常koji客户端的工作方式。
待办事项
监视任务
< ktdreyer> helgabot: watch https://koji.example.com/koji/taskinfo?taskID=12456 < helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26 min. I'll tell you when it's done.
或代表其他人监视
< ktdreyer> helgabot: watch https://koji.example.com/koji/taskinfo?taskID=12456 for adeza < helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26 min. I'll tell that person when it's done.