#2525 pkgdb-sync-bugzilla email
Closed: Fixed None Opened 13 years ago by toshio.

We need to figure out how to deal with package maintainers that don't have bugzilla accounts registered in fas. For now I've directed the email to come only to me. (in the pkgdb-sync-bugzilla config file in puppet) But we need to make a wy to notify maintainers directly so they can fix the issue without sending it to them every hour and thus annoying them to death.... We just want to annoy them enough that they fix the issue so that packages don't go silently unowned and unloved in bugzilla.


The script in question is here:

http://bzr.fedorahosted.org/bzr/packagedb/0.5.x/annotate/head:/server-scripts/pkgdb-sync-bugzilla.in

It utilizes a config file:

http://bzr.fedorahosted.org/bzr/packagedb/0.5.x/annotate/head:/server-scripts/pkgdb-sync-bugzilla.cfg

It only runs on one machine, bapp01. With that in mind, it seems reasonable to use filesystem-based solutions for keeping track of whether we need to send an email now or not.

I'll work in this issue. I talked at #freenode-admin with abadger1999 and the plan is to modify the current script so it'll keep track in a sqlite db to which users it sent the notification, and a timestamp that when it did it, so in this way if the script runs multiple times it'll not resend the email to the users that already got the email. Also, we will use the timestamp to compute a diff time and if time exceeds (for example, a week) we will resend the message to the user.

The work is in progress ... i made the script pep8 compliant and documented some parts ...

Attaching the modified python script and the configuration file, hope is fine :-). The code needs to be reviewed and tested :-)

here i call the function that checks if the package maintainer has a valid bugzilla email account :-)
pygdb-sync-bugzilla-fixed.py

i made the FAS instance global, now we send an email at the try/except line 430, and we use the FAS 'bugzilla_email' field instead 'email' when we send a notification
pygdb_sync_bugzilla.py

Looks good!

I'll get you commit privileges to the repository. If you need help commiting it find me again on IRC.

Login to comment on this ticket.

Metadata