On 14-02-2024 18:47, Kevin Fenzi wrote:
On Wed, Feb 14, 2024 at 02:20:39PM +0100, Sandro wrote:
> Hi,
>
> Some script running on
pkgs01.iad2.fedoraproject.org sends a report titled
> "Packages Restricting Arches" to arch-excludes(a)lists.fp.o every night
> (between 04:00 and 05:00 UTC)[1]. I was wondering where I could find that
> script.
>
> The report appears to be for ExclusiveArch only. It would help me if I could
> generate a similar report for ExcludeArch.
>
> [1]
https://lists.fedoraproject.org/archives/list/arch-excludes@lists.fedorap...
Its a hook, defined in our ansible repo:
https://pagure.io/fedora-infra/ansible/blob/main/f/roles/git/hooks/files/...
You put me on the right track. Thanks!
However, the hook is only responsible for the immediately sent messages
upon push to dist-git. The report I linked to is generated by [1], which
is called from [2]. Both are Python2. Ouch!.
Going by the initial comment in [1], I'd think the report should also be
for ExcludeArch, unless the typo (ExcludesArch) is also in the code. I
haven't looked yet, but will do.
[1]
https://pagure.io/fedora-infra/ansible/blob/main/f/roles/git/make_checkou...
[2]
https://pagure.io/fedora-infra/ansible/blob/main/f/roles/git/make_checkou...
-- Sandro