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

Add support for el9 snapshot #115

Merged
merged 1 commit into from
Jul 19, 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
23 changes: 23 additions & 0 deletions configfiles/dnfconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# yamllint disable rule:line-length
repo-bundle:
# --------------------------------------------------------------------------------------------

Check warning on line 4 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

4:1 [comments-indentation] comment not indented like content
# The defaults for this bundle points to the second most recent stable dot release 9.x.
# Upstream vaults/freezes the previous release repo once a new dot release is stable.
# The newest stable dot release keeps on receiving updates, so we use the previous one
Expand All @@ -23,7 +23,7 @@
enabled: false
version-labels:
default: 9.3
# --------------------------------------------------------------------------------------------

Check warning on line 26 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

26:1 [comments-indentation] comment not indented like content

# --------------------------------------------------------------------------------------------
epel9:
Expand All @@ -43,17 +43,40 @@
# The eext team is responsible for creating these snapshots.
# default points to the latest such snapshot.
default: v20240522-1
# --------------------------------------------------------------------------------------------

Check warning on line 46 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

46:1 [comments-indentation] comment not indented like content

# ********************************************************************************************
# DO NOT use any repo bundles below this unless you know what you're doing.
# ********************************************************************************************

#---------------------------------------------------------------------------------------------

Check warning on line 52 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

52:2 [comments] missing starting space in comment
el9-snapshot:
manith-arista marked this conversation as resolved.
Show resolved Hide resolved
# DO NOT use el9-snapshot as a repo-bundle in your eext.yaml, unless recommended to you by the eext team.
# el9-snapshot is a snapshot of the repo cache of el9-unsafe.
# The eext team is responsible for creating these snapshots.

gpgcheck: true
gpgkey: file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9
baseurl: '{{.Host}}/artifactory/eext-snapshots-local/el9/{{.Version}}/9/{{.RepoName}}/{{.Arch}}/os'
repo:
AppStream:
enabled: true
BaseOS:
enabled: true
CRB:
enabled: true
devel:
enabled: false
extras:
enabled: false
#---------------------------------------------------------------------------------------------

Check warning on line 72 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

72:2 [comments] missing starting space in comment

Check warning on line 72 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

72:1 [comments-indentation] comment not indented like content

# --------------------------------------------------------------------------------------------
el9-unsafe:
# DO NOT use el9-unsafe as a repo-bundle in your eext.yaml unless you know what you're doing.
# Use el9 because the defaults there will ensure build reproducibility.
# el9-unsafe is used by the eext team for experiments.

gpgcheck: true
gpgkey: file:///usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux-9

Expand All @@ -75,11 +98,11 @@
# default=9 always points to upstream latest dot release 9.x,
# which upstream updates regularly.
default: 9
# --------------------------------------------------------------------------------------------

Check warning on line 101 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

101:1 [comments-indentation] comment not indented like content

# --------------------------------------------------------------------------------------------
el9-beta-unsafe:
# DO NOT use el9-beta-unsafe as a repo-bundle in your eext.yaml

Check warning on line 105 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

105:3 [comments-indentation] comment not indented like content
# unless you know what you're doing. Use el9 instead because the defaults
# there will ensure build reproducibility.
# el9-beta-unsafe is used by the eext team for experiments.
Expand All @@ -104,7 +127,7 @@
# default always points to upstream latest dot release 9.x's beta version,
# which upstream updates regularly.
default: 9.4-beta
# --------------------------------------------------------------------------------------------

Check warning on line 130 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

130:1 [comments-indentation] comment not indented like content

# --------------------------------------------------------------------------------------------
epel9-unsafe:
Expand All @@ -128,7 +151,7 @@
version-labels:
# default always points to upstream stable repo which receives updates.
default: 9
# --------------------------------------------------------------------------------------------

Check warning on line 154 in configfiles/dnfconfig.yaml

View workflow job for this annotation

GitHub Actions / Lint

154:1 [comments-indentation] comment not indented like content

# --------------------------------------------------------------------------------------------
epel9-next-unsafe:
Expand Down
17 changes: 17 additions & 0 deletions dnfconfig/defaultconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ func TestDefaultDnfRepoConfig(t *testing.T) {
},
defaultVersion: "9.3",
},
"el9-snapshot": ExpectedDefaultRepoBundle{
repoToURLFormatString: map[string]string{
"BaseOS": "%s/artifactory/%s/el9/default/%s/BaseOS/%s/os",
"CRB": "%s/artifactory/%s/el9/default/%s/CRB/%s/os",
},
archToArtifactoryRepo: map[string]string{
"i686": "eext-snapshots-local",
"x86_64": "eext-snapshots-local",
"aarch64": "eext-snapshots-local",
},
archToURLFormatArch: map[string]string{
"i686": "i686",
"x86_64": "x86_64",
"aarch64": "aarch64",
},
defaultVersion: "9",
},
"el9-unsafe": ExpectedDefaultRepoBundle{
repoToURLFormatString: map[string]string{
"BaseOS": "%s/artifactory/%s/%s/BaseOS/%s/os",
Expand Down
Loading