Helper for https://koschei.fedoraproject.org.
|
|
||
|---|---|---|
| .builds | ci: configure | |
| koschei | Move koschei code to a separate module | |
| .gitignore | init | |
| go.mod | init | |
| go.sum | init | |
| LICENSE | init | |
| main.go | Move koschei code to a separate module | |
| main_test.go | Move koschei code to a separate module | |
| README.md | doc: add CI status badge | |
koschei-filter
This is a helper for https://koschei.fedoraproject.org. When performing test rebuilds as a package maintainer, it is useful to have a list of existing failures. This uses the "experimental" API defined in https://github.com/fedora-infra/koschei/blob/master/koschei/frontend/api.py.
Installation
Install golang and then you can install this using go install.
go install go.gtmx.me/koschei-filter
Example Usage
$ copr monitor $COPR --output-format text-row --fields name,state | grep 'failed$' | cut -f1 > failures.txt
$ koschei-filter -i failures.txt
Help
(Please run koschei-filter --help for up-to-date results.)
$ koschei-filter --help
Given a newline separated list of source package names (INPUT),
write only those that built successfully in Koji for the given
COLLECTION to OUTPUT.
Usage:
koschei-filter COLLECTION [flags]
Flags:
-h, --help help for koschei-filter
-i, --input string Input file; defaults to stdin (default "-")
-I, --invert Invert and only show failed
-o, --output string Output file; defaults to stdout (default "-")
--url string URL to Koschei instance (default "https://koschei.fedoraproject.org")