Skip to main content

Koji plugin for Helga

Project description

About

Helga is a Python chat bot. Full documentation can be found at http://helga.readthedocs.org.

This Koji plugin allows Helga to respond to koji-related commands in IRC and print information about builds and tasks.

Estimate when the current (ongoing) build will complete:

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

Find out how long the most recent completed build took to finish:

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

Query for packages:

03:14 < ktdreyer> helgabot: ceph package
03:14 < helgabot> ktdreyer, ceph is
                  https://cbs.centos.org/koji/packageinfo?packageID=534

Find a user’s tasks:

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)

Installation

This Koji plugin is available from PyPI, so you can simply install it with pip:

pip install helga-koji

If you want to hack on the helga-koji source code, in your virtualenv where you are running Helga, clone a copy of this repository from GitHub and run python setup.py develop.

Configuration

helga-koji uses the txkoji library, which looks for configuration files at /etc/koji.conf.d/*.conf. To configure helga-koji for your Koji instance, you must have a configuration file in this location on disk. This is how the normal koji client works.

TODO

Estimating tasks by URL:

< ktdreyer> helgabot: estimate
            https://koji.example.com/koji/taskinfo?taskID=12456
< helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26
            min.

Watching tasks:

< 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.

Or watch on behalf of someone else:

< 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

helga-koji-1.5.2.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file helga-koji-1.5.2.tar.gz.

File metadata

  • Download URL: helga-koji-1.5.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.3.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.6.6

File hashes

Hashes for helga-koji-1.5.2.tar.gz
Algorithm Hash digest
SHA256 1298a59c9e7a19d55d42d58d1b03aa798c90b3d6fd268986096a4c6fcdf92675
MD5 e38ddc80213a11662b4e3123777265aa
BLAKE2b-256 a6e04021e8a41b84ffe791799d63446b7a3c6695b06d9f335821f2e7087bf82e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page