Commit Graph

308 Commits

Author SHA1 Message Date
Jakub Kadlcik
8015bf47c7 copr: change default storage for new projects to Pulp
See https://fedora-copr.github.io/posts/migrating-copr-results-to-pulp
2026-02-12 13:40:59 +01:00
Jiri Kyjovsky
4adce255f5 copr: add powerful builders for riscv team 2026-01-27 11:52:58 +01:00
Jiri Kyjovsky
de8f2a8197 copr: add emulated riscv64 resalloc tags 2026-01-26 10:17:11 +01:00
Jakub Kadlcik
c97e52d18d copr-fe: configure high-perf builders for npache/Kernel-ark-ci
Fix https://github.com/fedora-copr/copr/issues/4118
2026-01-19 10:52:59 +01:00
Jiri Kyjovsky
3595436104 copr-anubis: loosen policies (go through defaults), allow essentials 2026-01-08 16:40:34 +01:00
Jiri Kyjovsky
d79d6ca487 copr/anubis: fix configuration on frontend to protect only /coprs (same for distgit)
Anubis was accidentally enabled for all traffic (/) instead of just
the /coprs/ web UI. This caused unnecessary bot challenges for API
clients, dnf/yum, and other automated tools.

Use Anubis BASE_PREFIX to cleanly protect only specific endpoints:
- Frontend: /coprs/ (web UI)
- Dist-git: /{{ cgit_uri }}/ (package browser)

https://anubis.techaro.lol/docs/admin/installation#using-base-prefix
2026-01-07 13:58:11 +01:00
Jiri Kyjovsky
9048e49e6a copr-frontend: fix oidc login behind anubis
Fix OIDC "Invalid redirect_uri" error (Flask generating http:// URLs).
Since SSL is terminated at the frontend/Anubis, traffic reaches this backend via HTTP.
This forces the application to believe it is running over HTTPS based on the header
forwarded by the trusted frontend, ensuring OIDC redirect URLs are generated with https://.
2025-12-10 16:33:55 +01:00
Pavel Raiskup
50223282e7 copr-fe: deploy anubis
Relates: https://pagure.io/fedora-infrastructure/issue/12971
Fixes: https://github.com/fedora-copr/copr/issues/4064

Co-authored-by: Jiri Kyjovsky <j1.kyjovsky@gmail.com>
2025-12-10 16:01:04 +01:00
Jakub Kadlcik
02b039a9a2 copr-fe: always point to Pulp through CDN
See https://github.com/fedora-copr/copr/issues/3502
See https://github.com/fedora-copr/copr/pull/3966
Fix https://github.com/fedora-copr/copr/issues/3921
2025-10-22 14:20:00 +02:00
Pavel Raiskup
fbb355425a copr-be: whitespace fix 2025-10-12 09:34:51 +02:00
Pavel Raiskup
ab0dc78638 copr-be: high-performance ppc64le builders for rathann
Relates: https://github.com/fedora-copr/copr/issues/3944
2025-10-12 09:34:05 +02:00
Pavel Raiskup
57cf017758 copr: high-perf builders for ppc64le @kernel-vanilla projects 2025-10-09 10:26:54 +02:00
Jiri Kyjovsky
2c8af1ec06 copr: disable powerful s390x machines
See https://github.com/fedora-copr/copr/issues/3856
2025-09-29 08:53:46 +02:00
Pavel Raiskup
ae33c9d0d4 copr: define cgit_uri template variable
And provide updated httpd/conf.d/cgit.conf.
2025-09-24 14:02:40 +02:00
Pavel Raiskup
a3460b720f copr-dist-git: host Cgit on a less obvious location
My hypothesis is that web crawlers are especially attracted to the /cgit
string in the URL, assuming it leads to useful source code for AI
training.

In reality, our cgit instance isn't a valuable source for AI learning.
It primarily contains unstructured changes to spec files that often fail
to comply with guidelines.  It seems unlikely that a human is
intentionally directing AI crawlers to our instance.

I may be wrong, but the experiment is as simple as the change in this
commit.

Closes: https://github.com/fedora-copr/copr/issues/3873

P.S. On the off chance you actually want to use Copr's Git repos for AI
learning, you're welcome to!  But please reach out to us first—we can
find a better way for you to access all that data than using Cgit.

Closes: #2858
2025-09-24 13:38:05 +02:00
Jakub Kadlcik
35971cc180 copr-fe: increase PostgreSQL max_connection to 250
Fix https://github.com/fedora-copr/copr/issues/3838
2025-09-16 13:09:07 +02:00
Konrad Kleine
cd55750d30 copr-be: use powerful builders for llvm snapshots
This was the ticket in which we requested high-performance builders in the first place: https://github.com/fedora-copr/copr/issues/2987
2025-08-21 13:10:55 +00:00
Jiri Kyjovsky
24a706e39f copr: powerful machines for rocm-packagers-sig/cs10-mathlib-preview 2025-08-11 09:56:05 +02:00
Jiri Kyjovsky
452211d127 copr: add fedmsg certs from files instead of url
In the get_url we hit https://github.com/ansible/ansible/pull/80751,
since the ansible version is not 2.16 (it's 2.14), thus manually adding
the certificates instead of getting them from url.
2025-05-24 16:37:39 +02:00
Jiri Kyjovsky
5f9c57b867 copr: permanently add frdmsg certs to copr-fe 2025-05-24 16:21:35 +02:00
Pavel Raiskup
bcb01c42d6 copr: fix whitespace error 2025-05-20 07:33:24 +02:00
Pavel Raiskup
a97a4cc616 copr: powerful builders for nodejs-electron project 2025-05-19 19:01:20 +02:00
Jiri Kyjovsky
aacfa2b00e copr: add powerful builders for centoshyperscale/asahi/kernel 2025-05-09 11:51:17 +02:00
Pavel Raiskup
9d6f7c0f6f copr-fe: tag the pagure-events config task 2025-04-11 10:32:23 +02:00
Pavel Raiskup
9dff1d373e copr-fe: log date-time in the pagure-events.log 2025-04-11 10:30:25 +02:00
Jakub Kadlcik
60f990bdb7 copr-fe: use mod_wsgi role
Fix https://github.com/fedora-copr/copr/issues/3623
2025-02-27 10:48:12 +01:00
Jakub Kadlcik
b168e806d8 copr-fe-dev: use mod_wsgi role 2025-02-26 10:58:51 +01:00
Jiri Kyjovsky
bb9dd04964 frontend: provide stg url for oidc metadata 2025-02-24 11:18:47 +01:00
Jiri Kyjovsky
da9a451e34 copr: feed oidc env variables to frontend 2025-02-24 00:48:29 +01:00
Jakub Kadlcik
e4e9f1ca3c copr-fe: use lower shared_buffers value on STG
The instance has only 4G of RAM so PostgreSQL fails to start with:

    FATAL: could not map anonymous shared memory: Cannot allocate memory
2025-02-14 12:28:47 +01:00
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

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

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Jakub Kadlcik
b7be52dd87 copr-be: conditionally redirect backend URLs to Pulp
See https://github.com/fedora-copr/copr/issues/3504
2025-01-30 13:53:40 +00:00
Miroslav Suchý
bd850792c8 enable powerful builders for wojnilowicz/ungoogled-chromium
https://github.com/fedora-copr/copr/issues/3603
2025-01-28 13:19:09 +01:00
Pavel Raiskup
fda55f0dd9 copr-fe: fix the high-performance pattern for @secureblue
https://github.com/fedora-copr/copr/issues/3331
2025-01-15 12:52:05 +01:00
Ryan Lerch
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
Ryan Lerch
3c41882bb0 ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:29:10 +10:00
Ryan Lerch
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
Ryan Lerch
462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10: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
Pavel Raiskup
497674fa44 copr-be: update @secureblue's pattern for powerful workers
https://github.com/fedora-copr/copr/issues/3331
2025-01-13 11:20:42 +01:00
Jiri Kyjovsky
aa1e8f0ca4 copr: performance builders for kernel-vanilla group 2024-12-09 11:54:05 +01:00
Pavel Raiskup
eb1c888537 copr-frontend: give postgres 25% RAM for shared_buffers 2024-12-04 16:21:00 +01: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
Jiri Kyjovsky
21fd4a7ca6 copr: deny trust admins fas group
Someone from that group created "trolling" copr group copr-gonzo, so we
denied this group. If someone will complain, redirect them to this
commit message.
2024-11-11 14:45:29 +00:00
Jakub Kadlcik
08197f6d29 copr-frontend: configure powerful builder for @spot/texlive-2024-testing
See https://github.com/fedora-copr/copr/issues/3267
2024-11-01 14:56:31 +01:00
Jakub Kadlcik
b69ee7da43 copr-frontend: configure Pulp content URL 2024-10-29 19:46:34 +01:00
Pavel Raiskup
df5e217a69 copr: powerful builders for @rocm-packagers-sig 2024-08-19 07:41:12 +02:00
Miroslav Suchý
12f68c6352 copr: enable high-performance builders for solopasha/qt6-test/qt6-qtwebengine
See https://github.com/fedora-copr/copr/issues/3353
2024-08-01 19:05:32 +02:00