Skip to content

Commit

Permalink
Add tests and script to sync with upstream pes-events file (#40)
Browse files Browse the repository at this point in the history
* Add tests for pes-events files

* - Fix pes_events files to pass tests
- Update tests

* Fix mariadb ids

* Add Epel support

* Add tool to update pes-events file

* - Add config files for each OS
- Update update_pes-events.py

* - Update pes-event file for Rocky, EuroLinux, CentOS Stream, AlmaLinux, Oracle Linux
- Add additional repos for AlmaLinux, CentOS and Rocky

* - Fix OL config file
- Add pes_events_build_date to spec file to track the pes-events update date

* Update config file

* Add test to check debranding
  • Loading branch information
eabdullin1 authored Feb 20, 2024
1 parent d3ba2c8 commit 438467d
Show file tree
Hide file tree
Showing 40 changed files with 582,907 additions and 438,564 deletions.
329 changes: 329 additions & 0 deletions files/almalinux/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,329 @@
{
"dist_name": "almalinux",
"os_names": [
{
"major_version": 7,
"os_name": "CentOS"
},
{
"major_version": 8,
"os_name": "AlmaLinux"
},
{
"major_version": 9,
"os_name": "AlmaLinux"
}
],

"repository_replacing": {
"rhel7-base": {
"out_packageset": "base",
"in_packageset": "base"
},
"rhel7-optional": {
"out_packageset": "base",
"in_packageset": "base"
},
"rhel7-extras": {
"out_packageset": "base",
"in_packageset": "base"
},
"rhel7-highavailability": {
"out_packageset": "base",
"in_packageset": "base"
},
"rhel7-resilientstorage": {
"out_packageset": "base",
"in_packageset": "base"
},

"rhel8-AppStream": {
"in_packageset": "appstream",
"out_packageset": "almalinux8-appstream"
},
"rhel8-BaseOS": {
"in_packageset": "baseos",
"out_packageset": "almalinux8-baseos"
},
"rhel8-HighAvailability": {
"in_packageset": "ha",
"out_packageset": "almalinux8-ha"
},
"rhel8-CRB": {
"in_packageset": "powertools",
"out_packageset": "almalinux8-powertools"
},
"rhel8-RT": {
"in_packageset": "rt",
"out_packageset": "almalinux8-rt"
},
"rhel8-ResilientStorage": {
"in_packageset": "resilientstorage",
"out_packageset": "almalinux8-resilientstorage"
},
"rhel8-NFV": {
"in_packageset": "nfv",
"out_packageset": "almalinux8-nfv"
},
"rhel8-SAP-NetWeaver": {
"in_packageset": "sap",
"out_packageset": "almalinux8-sap"
},
"rhel8-SAP-Solutions": {
"in_packageset": "saphana",
"out_packageset": "almalinux8-saphana"
},

"rhel9-AppStream": {
"in_packageset": "appstream",
"out_packageset": "almalinux9-appstream"
},
"rhel9-BaseOS": {
"in_packageset": "baseos",
"out_packageset": "almalinux9-baseos"
},
"rhel9-HighAvailability": {
"in_packageset": "ha",
"out_packageset": "almalinux9-highavailability"
},
"rhel9-CRB": {
"in_packageset": "crb",
"out_packageset": "almalinux9-crb"
},
"rhel9-RT": {
"in_packageset": "rt",
"out_packageset": "almalinux9-rt"
},
"rhel9-ResilientStorage": {
"in_packageset": "resilientstorage",
"out_packageset": "almalinux9-resilientstorage"
},
"rhel9-NFV": {
"in_packageset": "nfv",
"out_packageset": "almalinux9-nfv"
},
"rhel9-SAP-NetWeaver": {
"in_packageset": "sap",
"out_packageset": "almalinux9-sap"
},
"rhel9-SAP-Solutions": {
"in_packageset": "saphana",
"out_packageset": "almalinux9-saphana"
},

"rhel10-AppStream": {
"in_packageset": "appstream",
"out_packageset": "almalinux10-appstream"
}
},
"removable_repositories":[
"rhel7-ansible-2",
"rhel7-rt",
"rhel7-rhevh",
"rhel7-rhceph-tools-3",
"rhel7-rhgs-server-3.1",
"rhel7-resilientstorage",
"rhel7-dotnet-1",
"rhel7-sap",
"rhel7-rhscl-1",
"rhel7-openstack-13",
"rhel7-ose-3.9",
"rhel7-rhn-tools",
"rhel7-nfv",
"rhel7-sap-hana",
"rhel7-ose-3.7",
"rhel7-dotnet-1",

"rhel8-Supplementary"
],

"package_replacing": [
{
"initial_release": 7,
"target_release": 8,
"name": "redhat-release",
"to": "almalinux-release"
},
{
"initial_release": 7,
"target_release": 8,
"name": "redhat-logos",
"to": {
"in_packageset": "centos-logos",
"out_packageset": "almalinux-logos"
}
},
{
"initial_release": 7,
"target_release": 8,
"name": "redhat-backgrounds",
"to": "almalinux-backgrounds"
},
{
"initial_release": 7,
"target_release": 8,
"name": "redhat-logos-httpd",
"to": "almalinux-logos-httpd"
},
{
"initial_release": 7,
"target_release": 8,
"name": "redhat-logos-ipa",
"to": "almalinux-logos-ipa"
},
{
"initial_release": 7,
"target_release": 8,
"name": "redhat-bookmarks",
"to": "centos-bookmarks"
},
{
"initial_release": 8,
"target_release": 9,
"name": "redhat-bookmarks",
"to": "almalinux-bookmarks"
},
{
"initial_release": null,
"target_release": 8,
"name": "redhat-logos-ipa",
"to": "almalinux-logos-ipa"
},
{
"initial_release": 8,
"target_release": 9,
"name": "redhat-logos",
"to": "almalinux-logos"
},
{
"initial_release": 8,
"target_release": 9,
"name": "redhat-logos-httpd",
"to": "almalinux-logos-httpd"
}
],
"removable_packages":[
{
"name": "redhat-release-server",
"initial_release": 7,
"target_release": 8
},
{
"name": "libreport-rhel",
"initial_release": 8,
"target_release": 8
},
{
"name": "libreport-rhel-bugzilla",
"initial_release": 8,
"target_release": 8
},
{
"name": "redhat-release-computenode",
"initial_release": 7,
"target_release": 8
},
{
"name": "redhat-release-workstation",
"initial_release": 7,
"target_release": 8
},
{
"name": "redhat-release-client",
"initial_release": 7,
"target_release": 8
}
],

"additional_actions":[
{
"action": 3,
"architectures": [
"x86_64",
"aarch64",
"ppc64le",
"s390x"
],
"id": 0,
"in_packageset": {
"package": [
{
"modulestreams": [
null
],
"name": "centos-release",
"repository": "base"
}
],
"set_id": 0
},
"initial_release": {
"major_version": 7,
"minor_version": 7,
"os_name": "CentOS",
"tag": null,
"z_stream": null
},
"modulestream_maps": [
{
"in_modulestream": null,
"out_modulestream": null
}
],
"out_packageset": {
"package": [
{
"modulestreams": [
null
],
"name": "almalinux-release",
"repository": "almalinux8-baseos"
}
],
"set_id": 0
},
"release": {
"major_version": 8,
"minor_version": 0,
"os_name": "AlmaLinux",
"tag": null,
"z_stream": null
}
},
{
"action": 1,
"architectures": [
"x86_64",
"aarch64",
"ppc64le",
"s390x"
],
"id": 0,
"in_packageset": {
"package": [
{
"modulestreams": [
null
],
"name": "libreport-rhel-bugzilla",
"repository": "base"
}
],
"set_id": 0
},
"initial_release": {
"major_version": 7,
"minor_version": 6,
"os_name": "CentOS"
},
"modulestream_maps": [],
"out_packageset": null,
"release": {
"major_version": 8,
"minor_version": 3,
"os_name": "AlmaLinux"
}
}

]
}
24 changes: 24 additions & 0 deletions files/almalinux/leapp_upgrade_repositories.repo.el8
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,27 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/8/extras
enabled=1
gpgcheck=0
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-8

[almalinux8-sap]
name=AlmaLinux 8 - SAP
mirrorlist=https://mirrors.almalinux.org/mirrorlist/8/sap
# baseurl=https://repo.almalinux.org/almalinux/8/SAP/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-8

[almalinux8-saphana]
name=AlmaLinux 8 - SAPHANA
mirrorlist=https://mirrors.almalinux.org/mirrorlist/8/saphana
# baseurl=https://repo.almalinux.org/almalinux/8/SAPHANA/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-8

[almalinux8-nfv]
name=AlmaLinux 8 - NFV
mirrorlist=https://mirrors.almalinux.org/mirrorlist/8/nfv
# baseurl=https://repo.almalinux.org/almalinux/8/NFV/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-8
32 changes: 32 additions & 0 deletions files/almalinux/leapp_upgrade_repositories.repo.el9
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,35 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/9/extras
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-9

[almalinux9-sap]
name=AlmaLinux 9 - SAP
mirrorlist=https://mirrors.almalinux.org/mirrorlist/9/sap
# baseurl=https://repo.almalinux.org/almalinux/9/SAP/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-9

[almalinux9-saphana]
name=AlmaLinux 9 - SAPHANA
mirrorlist=https://mirrors.almalinux.org/mirrorlist/9/saphana
# baseurl=https://repo.almalinux.org/almalinux/9/SAPHANA/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-9

[almalinux9-rt]
name=AlmaLinux 9 - RT
mirrorlist=https://mirrors.almalinux.org/mirrorlist/9/rt
# baseurl=https://repo.almalinux.org/almalinux/9/RT/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-9

[almalinux9-nfv]
name=AlmaLinux 9 - NFV
mirrorlist=https://mirrors.almalinux.org/mirrorlist/9/nfv
# baseurl=https://repo.almalinux.org/almalinux/9/NFV/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/leapp/repos.d/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-9
Loading

0 comments on commit 438467d

Please sign in to comment.