A script for detecting inactive user in the packager group
Find a file
2022-08-18 13:43:37 -04:00
.gitignore Ignore log files 2022-08-18 13:43:37 -04:00
find_inactive_packagers.py Wrap the getbugs call in a try/except 2022-08-18 13:38:26 -04:00
LICENSE Initial push 2022-02-13 14:00:00 +01:00
README.md Correct the user option in fkinit 2022-08-09 09:20:27 -04:00

find-inactive-packagers

The script will search for any activity in the last year in:

  • src.fedoraproject.org
  • pagure.io
  • bodhi (through datagrepper)
  • Fedora mailing lists
  • Red Hat Bugzilla

It 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 the inactive users, asking them to show some activity in pagure, datagrepper or mailing lists.

The step-one subcommand will open tickets against inactive packagers in a Pagure repository. The step-two is used to confront the results of a previous run (provided by the csv file) and a fresh run, to identify which users still don't show any activity. Therefore we should consider these users to have abandoned Fedora.

Use the '--privacy' flag to not print emails in the log.

To run the script you'll need:

  • fasjson_client to be installed
  • an active kerberos ticket to login to fasjson.fedoraproject.org
  • a bugzilla API key stored as OS env variable 'BZ_API_KEY'

Optionally, providing a Pagure repository URL and a token the script can automatically open an issue ticket for each detected inactive packager.

Example usage

$ pipenv shell
...
$ pip install fasjson-client
...
$ sudo dnf install fedora-packager-kerberos
...
$ fkinit -u <USER>
...
$ export BZ_API_KEY=<YOUR_BZ_API_KEY>
$ python find-inactive-packagers.py [--privacy] step-one
...
$ python find-inactive-packagers.py [--privacy] step-two prev-run.csv

License

find-inactive-packagers is licensed under MIT.