Commit graph

853 commits

Author SHA1 Message Date
Jiri Podivin
f513e7cbcd Linting python scripts
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
2024-09-18 19:57:29 +00:00
Kevin Fenzi
2f260b760d Reapply "releng / bodhi: switch epel10 compose to nightly cron job"
This reverts commit cbdabd149e.

Put things back now.
2024-09-06 15:19:20 -07:00
Kevin Fenzi
cbdabd149e Revert "releng / bodhi: switch epel10 compose to nightly cron job"
This reverts commit 566769ded7.

We need to revert this in order to push updates that are pending testing
and stable, then will switch it back.
2024-09-06 13:42:30 -07:00
Carl George
566769ded7 releng / bodhi: switch epel10 compose to nightly cron job
https://pagure.io/releng/issue/12256

Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-09-05 22:48:02 -05:00
Kevin Fenzi
6652c3fa43 bodhi / pungi: drop . from epel10 to try and get a stable compose
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-08-19 14:47:09 -07:00
Kevin Fenzi
a45066e671 bodhi / backend / new_updates_sync: don't try and link epel-release for 10 yet
We don't have a stable repo, so skip the epel-release 'latest' link for
epel10 for now. Since we don't have any modular stuff left, we can just
reuse that conditional. ;)

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-08-16 10:16:21 -07:00
Carl George
274c43db48 bodhi: add epel10.0 to new-updates-sync
While EPEL 10 will have minor versions, the repo for the leading minor
version will be published as just the major version.  This is because it
is intended for use on CentOS Stream 10, which does not indicate a minor
version within the operating system.

Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-08-16 11:39:23 -05:00
Carl George
5a79f8e3a0 bodhi: Fix nested quotation
In c7fbc26afe9f770414a49d150d9072c1e58b21ec I switched an integer 41 to
a string, but didn't notice that it was inside another string as part of
the double templating this file does.  This results in a template error:

jinja2.exceptions.TemplateSyntaxError: expected token 'end of statement block', got 'integer'

Other strings inside this bigger string use double instead of single
quotes to handle this, so let's take the same approach on this line.

Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-08-16 09:26:27 -05:00
Carl George
d792beef81 bodhi: Remove usage of version_int from pungi template
EPEL 10 has minor versions, and bodhi's Release.version_int property
doesn't handle versions with a dot correctly (yet).  Almost all of our
usage is for constructing strings or for equality comparisons that can
be strings, so we can just use Release.version instead.  There is an
instance of a numerical greater than or equal to comparison, but it is
inside a condition for release.id_prefix == 'FEDORA', so it shouldn't
get evaluated for EPEL updates.

Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-08-16 11:04:58 +00:00
Samyak Jain
5f164c7347 Branch Fedora 41 from Rawhide
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-08-13 14:13:43 +00:00
Carl George
fffd852e6e Fix RuntimeError in owner-sync-pagure.j2
This is a small follow up fix related to 01be34a706.
Previously the script modified a list while iterating through it, which
is always a bad idea, but it didn't throw an error.  My last changes
switched it to iterating through a list, which surfaced the flaw as a
RuntimeError.  Using a set comprehension is a cleaner way to generate
the set we need to return.

Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-07-31 13:27:42 -05:00
Carl George
6e70c6fc3a Update owner-sync-pagure.j2 to work with EPEL 10, second attempt
Originally attempted in 01be34a706, but it
didn't work correctly and needed to be reverted.  Some notable
differences this time around:

- Previously the script predicted branch and version based on the tag.
I had this switched to get both of those from the bodhi release, but not
all tags have a corresponding bodhi release.  So this now takes a hybrid
approach of using bodhi release if available, and falling back to the
prediction approach otherwise.
- Retired package lists from the lookaside are now skipped if they don't
exist, both during the retrieval and when checked later.
- The get_project_branches function now returns a set.

Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-07-31 14:27:54 +00:00
Kevin Fenzi
277495b74e owner-sync-pagure: adjust regex to not handle epel10 yet
The new epel10 release in bodhi is confusing this script, so
lets exclude it for now until we get the script sorted out.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-30 13:26:03 -07:00
Kevin Fenzi
a0b5a8f7c9 Revert "Update owner-sync-pagure.j2 to work with EPEL 10"
This reverts commit 01be34a706.

There's some corner cases causing this to fail, so lets revert for now.
2024-07-30 12:10:22 -07:00
Carl George
01be34a706 Update owner-sync-pagure.j2 to work with EPEL 10
Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-07-30 11:55:16 +00:00
Carl George
6ff3450ce8 Add EPEL 10 key to bodhi's pungi template
Signed-off-by: Carl George <carlwgeorge@gmail.com>
2024-07-30 11:52:44 +00:00
Kevin Fenzi
115c22652d bodhi / backend: remove epel8-next sync too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-05 18:30:16 -07:00
Kevin Fenzi
d11f9c5ced epel7 retirement
Drop epel7 all the places in ansible where it is and makes sense.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-03 20:00:59 +00:00
Samyak Jain
2935b4ebe7 add vulkan-validation-layers to allowlist to include i686 pkgs
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-07-01 13:29:45 +00:00
Lenka Segura
ce7c3d4005 bodhi-backend: Remove forgotten print from owner-pagure-sync
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-05-28 17:44:18 +00:00
Lenka Segura
a7bdb31bfc bodhi-backend: Fix bug in owner-pagure-sync script
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-05-22 22:31:20 +02:00
Timothée Ravier
9be1a293e7 bodhi2/pungi.rpm.conf.j2: Update for F38 EOL
Remove conditions that are always true now that Fedora 38 is EOL.
2024-05-22 17:54:09 +02:00
Samyak Jain
9438b39fd1 F38 is EOL
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-05-21 14:33:13 +00:00
Kevin Fenzi
f15fa40ccd bodhi / koji sync listener: set BODHI_URL and import re
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-17 08:10:56 -07:00
Kevin Fenzi
fa08cf1895 Reapply "bodhi-backend: owner-sync-pagure script debugged"
This reverts commit b029ec8c63.

I spoke too soon, the errors I saw were not causing it to fail.
2024-05-17 08:09:24 -07:00
Kevin Fenzi
b029ec8c63 Revert "bodhi-backend: owner-sync-pagure script debugged"
This reverts commit 8cfdeed4b6.

Still got some issues with this new script. ;(
Reverting for now while we debug.
2024-05-17 07:59:30 -07:00
Lenka Segura
8cfdeed4b6 bodhi-backend: owner-sync-pagure script debugged
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-05-16 20:17:30 +00:00
Mattia Verga
291bf2570c bodhi: fix createrepo_c config for EPEL-NEXT
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2024-05-16 17:51:39 +02:00
Kevin Fenzi
f17dcbe7fe bodhi / createerepo / epel8: try and get primary back on xz
We changed around compression as part of a Fedora change and move to
createrepo_c > 1.0, but the epel8 repos are causing a bit of problem for
users who use mergerepo_c on them from older (<1.0) createrepo_c.
They can't understand the primary.xml being zstd compressed.
So, lets try and set this to switch primary back to xz.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-10 08:01:30 -07:00
Kevin Fenzi
5b9c1a5193 bodhi / owner sync to koji: revert pdc dropping changes for now
This seems to not be working, so we need to revert it for now and debug
what is going on.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-09 07:49:07 -07:00
Mattia Verga
c85ad30616 bodhi-backend: update createrepo and pungi config for https://fedoraproject.org/wiki/Changes/ChangeComposeSettings
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2024-05-08 17:33:08 +00:00
Lenka Segura
d1a79b87dd Code improvements
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-05-06 08:04:14 +00:00
Lenka Segura
7fde6612e5 Remove pdc calls from owner-sync-pagure.j2 script
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-05-06 08:04:14 +00:00
Adam Williamson
771db33ea4 Bodhi compose config: fix templating in 'repos' definition
You can't nest jinja's templating markers like this, it turns
out, they just wind up as literal strings. You also can't use
f-strings, sadly (tried it locally, it errors out). We have to
use older-style `.format()`, that works. I went with a fairly
explicit syntax to make it clear what's going on.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-05-01 19:48:17 +00:00
Adam Williamson
5f2d78a83c Bodhi compose config: build ostrees and containers in variants
Our compose attempt with the containers being built under
Everything didn't go as planned because the filenames of the
container images turn out to be determined by the variant, so
they conflicted and only the last one built survived. So, we
really need to build them under unique variants for now. A
previous commit added the variant definitions.

We don't *need* to build the ostrees under the variants, but it
feels more consistent this way, both with the containers and
with how it works in the Rawhide/Branched composes.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-05-01 18:00:19 +00:00
Kevin Fenzi
9319e2c3b9 Add variants for atomic composes in bodhi
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-01 16:35:56 +00:00
Adam Williamson
475c3a54d6 Bodhi compose config: factor out a repeated conditional
This just makes things a bit more readable, I think.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-30 23:07:34 -07:00
Adam Williamson
8e05d07ca6 Bodhi compose config: drop sigkeys for ancient releases
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-30 23:07:34 -07:00
Adam Williamson
b9ccb3c54a Bodhi compose config: factor out repo definitions
We repeat this exact same repo definition block eight times,
let's just make it a variable (at the ansible template level).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-30 23:07:34 -07:00
Adam Williamson
bb84140443 Bodhi compose: move ostree containers under Everything variant
As is currently the case for the ostrees themselves. The variants
don't exist in this compose config.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-30 17:50:42 +00:00
Adam Williamson
0bde466014 Have Bodhi composes include atomic desktop containers on f40+
Since Fedora 40, we've built native OCI containers for the atomic
desktops in the pre-release nightly and release composes. We
should also build native containers in the post-release nightly
composes that Bodhi runs. This should allow us to get rid of the
on-the-fly OCI image generation in the sync-ostree-base-containers
script.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-29 13:41:34 -07:00
Samyak Jain
7e6b1b19f1 Fedora 40 is GO
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-04-19 21:36:49 +05:30
Timothée Ravier
a39bb343fa bodhi2/backend/templates/pungi.rpm: Update comments 2024-03-27 22:07:29 +00:00
Mattia Verga
bbde45f158 bodhi: quick fix for DRPMs disabled in F40
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2024-02-28 18:51:06 +01:00
Samyak Jain
c9049a56db Add f40 config for toddlers
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-02-13 13:12:33 +00:00
Samyak Jain
2a240052b1 Branch Fedora 40 from Rawhide
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-02-13 13:12:33 +00:00
Mattia Verga
5120f77d87 bodhi: use config file for createrepo_c settings
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2024-02-05 17:51:04 +00:00
Samyak Jain
4f7c2f3343 Add gtk2 and gtk3 support in multilib conf
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-02-01 00:43:23 +00:00
Samyak Jain
baf13358a3 Add obs-studio-libs and obs-studio-plugin-vkcapture to the multilib whitelist
Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2024-01-18 20:38:58 +05:30
Timothée Ravier
5546164ada bodhi2/pungi.rpm.conf.j2: Remove deprecated option
Sync with changes from https://pagure.io/pungi-fedora/pull-request/1227

```
[WARNING ] Variant-type source repository is deprecated and will be ignored during 'OSTree' phase: Everything
[OSTREE_INSTALLER] [WARNING ] Variant-type source repository is deprecated and will be ignored during 'OSTreeInstaller' phase: None
```

See: https://pagure.io/pungi-fedora/pull-request/1227#comment-196106
2023-12-14 19:39:46 +00:00