Commit Graph

35 Commits

Author SHA1 Message Date
Pedro Moura
106bc5d24a print output
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2025-11-13 22:37:04 +00:00
Pedro Moura
c68aa00b2c Add task to install python packages
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2025-11-13 22:37:04 +00:00
Pedro Moura
831e79b5cf Refactor of owner-email-from-pagure.py
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2025-11-13 22:37:03 +00:00
James Antill
26b373d066 bastion: Fix empty package-owner entries. issue#12834
Signed-off-by: James Antill <james@and.org>
2025-10-06 15:49:03 -04:00
Ryan Lerch
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
Ryan Lerch
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
Ryan Lerch
691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
Kevin Fenzi
70f0f6a3c2 package owner alias: switch to once every 3 hours
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-26 16:54:03 -08:00
Kevin Fenzi
e4bc246dbb packager_alias: run every other hour as it's taking more than an hour now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-30 12:05:37 -07:00
Adam Saleh
138a1eddab Changed -owner to -maintainers in alias-generating code. 2021-06-02 08:26:25 +00:00
Adam Saleh
7cc2903cd5 Added aliases for epel and fedora bz assignee, resulting in package-owner-fedora and package-owner-epel aliases. 2021-06-02 08:26:25 +00:00
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
6cdc5fbf44 Put a lock wrapper also around the package-owner-aliases cronjob on bastion. 2017-08-10 15:51:52 +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
e4a44181f7 Tag this role with its own name. 2017-08-04 20:41:10 +00:00
Ralph Bean
9653f40afd Remove the old packager email alias generation script. 2017-08-04 20:39:29 +00:00
Ralph Bean
eb241f903d Flip over packager email alias generation to use the new script. 2017-08-04 20:39:05 +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
Kevin Fenzi
aa3e1ad5a8 Copy here too 2014-10-08 23:58:41 +00:00
Kevin Fenzi
db8232f0c7 No location needed 2014-10-08 23:55:13 +00: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