Commit graph

11 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
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
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
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