Commit graph

18 commits

Author SHA1 Message Date
Pierre-Yves Chibon
62405a2753 packager_alias: Another fix for when somehow pagure doesn't return JSON data
From the logs of this cron job running, it appears that every now and then
a request to pagure isn't returning JSON data. Could be because the server
got restarted in the middle or something else.
The result is however the same, the request's data can't be converted to
JSON.

This commit is an addition to 0db6035454 which
was already taking care of a similar issue but when retrieving project
information, this one is for retrieving groups information.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-11 13:45:02 +02:00
Pierre-Yves Chibon
0db6035454 packager_alias: Allow for sporadic failures in retrieving info from dist-git
Basically, if we fail to retrieve data from pagure or we fail to
convert from JSON, wait for 30 seconds and retry.
If after two minutes (4 attempts) it still hasn't worked, bail.

Fixes https://pagure.io/fedora-infrastructure/issue/7603

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-07 16:52:42 +00:00
Jason Tibbitts
73de9829d0 Add a -maintainers alias file.
The current scripting generates aliases of the form
foo-owner@fedoraproject.org.  But this conflicts with our messaging
which says that the project "owns" packages and people "maintain" them.
Plus, "owner" is singular while we really want to have more than one
maintainer.

This simply adds a second alias file generated from the original file.
2018-07-25 22:00:13 +00:00
Patrick Uiterwijk
364cdcc60e The list of members doesn't change significantly over the runtime of this script
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-12-02 22:13:17 +00:00
Kevin Fenzi
2b1232dbb6 bash does not like continuing lines without \ 2017-10-15 17:03:09 +00:00
Pierre-Yves Chibon
159faf73a0 Don't ask for forks when querying pagure
Fixes https://pagure.io/pagure-dist-git/issue/38

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2017-10-14 21:21:05 +02:00
Kevin Fenzi
697f268594 use full path here 2017-08-11 21:11:58 +00:00
Ralph Bean
b084a7762f Use urllib3 retry mechanism in the packager alias script. 2017-08-09 17:48:43 +00:00
Ralph Bean
24141e596b Handle case-insensitivity in postfix by unioning things. 2017-08-09 17:46:15 +00:00
Ralph Bean
9653f40afd Remove the old packager email alias generation script. 2017-08-04 20:39:29 +00:00
Ralph Bean
fbfb7c41f6 Email alias script - use pagination so as not to break pagure's golden heart. 2017-08-04 20:37:26 +00:00
Ralph Bean
e544f90a6e Email alias script - use real pagure url. 2017-08-04 20:36:39 +00:00
Matt Prahl
47485d134b Postfix "-owner" and prefix the project namespace if it's not rpms in owner-email-from-pagure.py 2017-04-13 20:48:49 +00:00
Matt Prahl
5d4f03b9b9 Add a package owner email alias script to use Pagure instead of PkgDB and stop querying FAS in staging
As part of the Modularity project, we've decided that we need to have different package
branches with different lifecycles. To read more about this, please view this document:
https://fedoraproject.org/wiki/Infrastructure/Factory2/Focus/ArbitraryBranching. To enable
this, we've decided to rely on Pagure and PDC for package information instead of PkgDB.
This commit is an attempt to modify an existing script that queried PkgDB and FAS for packager
emails with one that uses the new architecture described above.

Also, instead of querying FAS for email information, we've decided to use the email alias
USER@fedoraproject.org. This will be a performance increase and protect us against FAS API
changes.
2017-04-13 18:28:28 +00:00
Kevin Fenzi
c0c992ede7 Compress maillogs on bastion hosts/mail hubs with xz and keep 14 days of them. 2016-05-26 14:08:13 +00:00
Kevin Fenzi
b65b7cbc29 Set this request to verify. There's no reason not to, and it gets rid of the insecure urllib3 spew. 2015-09-04 15:31:01 +00:00
Pierre-Yves Chibon
9f23ed1b7c Check if the group has a proper email 2014-12-16 20:07:50 +01:00
Pierre-Yves Chibon
5da315864c Create a new module: packager_alias containing the scripts to create the <pkg>-owner aliases 2014-07-31 13:34:53 +02:00