2022-02-13 14:00:00 +01:00
|
|
|
# find-inactive-packagers
|
|
|
|
|
|
|
|
|
|
The script will search for any activity in the last year in:
|
|
|
|
|
|
2025-02-18 19:18:02 +01:00
|
|
|
- koji builds
|
2022-02-13 14:00:00 +01:00
|
|
|
- src.fedoraproject.org
|
2022-03-12 10:07:18 +01:00
|
|
|
- pagure.io
|
2022-02-16 20:35:01 +01:00
|
|
|
- bodhi (through datagrepper)
|
2022-02-13 14:00:00 +01:00
|
|
|
- Fedora mailing lists
|
2023-05-02 17:40:12 +02:00
|
|
|
- Fedora Discussion
|
2022-09-12 09:15:42 +02:00
|
|
|
- Red Hat bugzilla
|
2022-02-13 14:00:00 +01:00
|
|
|
|
2022-09-12 09:15:42 +02:00
|
|
|
The step-one subcommand will output the 'inactive_packagers.csv' file with a list of all users
|
|
|
|
|
in the packager group and their email which are found to be inactive. This can be used to contact
|
2022-02-13 14:00:00 +01:00
|
|
|
the inactive users, asking them to show some activity in pagure, datagrepper or mailing lists.
|
2022-09-12 09:15:42 +02:00
|
|
|
Optionally, it can open tickets against inactive packagers in a Pagure repository.
|
2022-02-13 14:00:00 +01:00
|
|
|
|
2022-09-12 09:15:42 +02:00
|
|
|
The check-impact subcommand will iterate on the list of tickets opened and provide information
|
|
|
|
|
about how many packages will possibly be orphaned based on the packagers detected as inactive.
|
|
|
|
|
|
|
|
|
|
The step-two subcommand can either check a list of inactive users from the csv file generated
|
|
|
|
|
in step-one, or check a list of users based on open Pagure tickets. In this last case, the tickets
|
|
|
|
|
can be closed appropriately. Another csv file is generated as output to list users which are still
|
|
|
|
|
inactive.
|
2022-02-13 14:00:00 +01:00
|
|
|
|
2022-02-16 20:35:01 +01:00
|
|
|
Use the '--privacy' flag to not print emails in the log.
|
2022-02-13 14:00:00 +01:00
|
|
|
|
2022-02-16 20:35:01 +01:00
|
|
|
To run the script you'll need:
|
|
|
|
|
|
2025-02-18 19:18:02 +01:00
|
|
|
- click, fasjson_client, koji, and python-bugzilla to be installed
|
2022-02-16 20:35:01 +01:00
|
|
|
- an active kerberos ticket to login to fasjson.fedoraproject.org
|
2023-04-22 14:57:15 +02:00
|
|
|
- a bugzilla API key for bugzilla.redhat.com in your ~/.bugzillarc config file
|
2022-02-13 14:00:00 +01:00
|
|
|
|
2022-04-15 11:30:16 +02:00
|
|
|
Optionally, providing a Pagure repository URL and a token the script can automatically
|
2022-09-12 09:15:42 +02:00
|
|
|
open and manage an issue ticket for each detected inactive packager.
|
2022-04-15 11:30:16 +02:00
|
|
|
|
2022-02-13 14:00:00 +01:00
|
|
|
## Example usage
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ pipenv shell
|
|
|
|
|
...
|
2023-07-31 10:58:46 -05:00
|
|
|
$ pipenv install
|
2022-02-13 14:00:00 +01:00
|
|
|
...
|
2022-03-12 10:07:18 +01:00
|
|
|
$ sudo dnf install fedora-packager-kerberos
|
|
|
|
|
...
|
2022-08-09 09:20:27 -04:00
|
|
|
$ fkinit -u <USER>
|
2022-02-13 14:00:00 +01:00
|
|
|
...
|
2023-04-22 14:57:15 +02:00
|
|
|
$ cat > ~/.bugzillarc <<EOL
|
|
|
|
|
$ > [bugzilla.redhat.com]
|
|
|
|
|
$ > api_key=<YOUR_BZ_API_KEY>
|
|
|
|
|
$ > EOL
|
2022-08-08 18:15:01 +02:00
|
|
|
$ python find-inactive-packagers.py [--privacy] step-one
|
|
|
|
|
...
|
|
|
|
|
$ python find-inactive-packagers.py [--privacy] step-two prev-run.csv
|
2022-02-13 14:00:00 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
find-inactive-packagers is licensed under MIT.
|