Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not inherit repositories in addons #62

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion feedback_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ def _load_config_addon_view(document_id, document, settings):

# Choose one repository that gets used as a source.
config["base_view_id"] = str(document["data"]["base_view_id"])
config["repository"] = str(document["data"]["repository"])

except KeyError:
raise ConfigError("'{file}.yaml' - There's something wrong with the mandatory fields. Sorry I don't have more specific info.".format(file=document_id))
Expand Down Expand Up @@ -1131,7 +1132,6 @@ def get_configs(settings):


# Ading some extra fields onto the addon view
configs["views"][view_conf_id]["repository"] = configs["views"][base_view_id]["repository"]
configs["views"][view_conf_id]["architectures"] = configs["views"][base_view_id]["architectures"]

# Adjust view architecture based on repository architectures
Expand Down
105 changes: 105 additions & 0 deletions test_configs/repo-eln-extras.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
document: feedback-pipeline-repository
version: 2
data:
name: Fedora ELN Extras (backed by rawhide)
description: Fedora ELN Extras, based on ELN with rawhide as a backup for missing packages
maintainer: asamalik
source:

repos:

BaseOS:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/BaseOS/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
priority: 1

AppStream:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/AppStream/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
priority: 1

CRB:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/CRB/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
priority: 1

HighAvailability:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/HighAvailability/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
limit_arches: ["aarch64", "ppc64le", "s390x", "x86_64"]
priority: 2

NFV:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/NFV/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
limit_arches: ["x86_64"]
priority: 2

RT:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/RT/$basearch/os/
priority: 50
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
limit_arches: ["x86_64"]

ResilientStorage:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/ResilientStorage/$basearch/os/
priority: 50
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
limit_arches: ["ppc64le", "s390x", "x86_64"]

SAP:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/SAP/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
limit_arches: ["ppc64le", "s390x", "x86_64"]
priority: 2

SAPHANA:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/SAPHANA/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
limit_arches: ["ppc64le", "x86_64"]
priority: 2

Extras:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/Extras/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
priority: 3

Rawhide:
baseurl: https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
priority: 4


releasever: "rawhide"

architectures:
- aarch64
- x86_64

composeinfo: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/metadata/composeinfo.json

# These are just packages for local testing
base_buildroot_override: ['bash', 'bzip2', 'coreutils', 'unzip']
6 changes: 0 additions & 6 deletions test_configs/repo-eln.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ data:
limit_arches: ["ppc64le", "x86_64"]
priority: 2

Extras:
baseurl: https://odcs.fedoraproject.org/composes/production/latest-Fedora-ELN/compose/Extras/$basearch/os/
koji_api_url: https://koji.fedoraproject.org/kojihub
koji_files_url: https://kojipkgs.fedoraproject.org
exclude: ["exim", "esmtp", "opensmtpd", "esmtp-local-delivery"]
priority: 3

Rawhide:
baseurl: https://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-Rawhide/compose/Everything/$basearch/os/
Expand Down
5 changes: 5 additions & 0 deletions test_configs/view-eln-extras.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ data:
# (mandatory field)
base_view_id: view-eln

# ID of the repositories where this addon and its base are shipped.
#
# (mandatory field)
repository: repo-eln-extras

# Labels connect things together.
# Workloads get installed in environments with the same label.
# They also get included in views with the same label.
Expand Down