A Koji build system plugin for helga chat bot
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)
Estimating tasks by 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.
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 ~/.koji/config.d/*.conf and /etc/koji.conf.d/*.conf. To configure helga-koji for your Koji instance, you must have configuration file(s) in this location on disk. This is how the normal koji client works.
TODO
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.
Metadata
Release files for helga-koji 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| helga-koji-1.7.0.tar.gz | 11.9 kB | Without provenance | Details for helga-koji-1.7.0.tar.gz |
Release files / helga-koji-1.7.0.tar.gz
| Download URL | helga-koji-1.7.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
667d9e684c944abe632ea698ff84b7857d4a32c073eea2cd503214252373cf99
|
|
BLAKE2b-256 checksum How to use checksums |
f2b41aa5ffd7f76347b5e9ffa94ffadda4ffed376bba384261fa1b3eafcbd29f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.7.1
|
Security for helga-koji 1.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.