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

osbuild-ci: explicitly install python3-dnf package #81

Merged
merged 5 commits into from
Nov 13, 2024

Conversation

thozza
Copy link
Member

@thozza thozza commented Nov 12, 2024

Explicitly install python3-dnf, which provides the DNF4 Python API bindings. We need them for testing e.g. the SBOM functionality. With F41 not installing it by default, the tests are now skipped, which is not good.

Example:
https://github.com/osbuild/osbuild/actions/runs/11729332192/job/32674732154#step:3:266

Additional fixes:

This package is needed for the DNF4 Python API bindings, which we need
for testing e.g. the SBOM functionality. With F41 not installing it by
default, the tests are now skipped, which is not good.

Example:
https://github.com/osbuild/osbuild/actions/runs/11729332192/job/32674732154#step:3:266

Signed-off-by: Tomáš Hozza <[email protected]>
Resolves the following error:
```
No match for argument: development tools
```

Keep the old group name for CentOS Stream image builds.

Signed-off-by: Tomáš Hozza <[email protected]>
Something must have happened to the GCP repository, because we have been
building the 'cloud-tools' container for both aarch64 and x86_64 for the
past 2 years, but using a GCP repository that hard-coded the x86_64 arch
in its URL. And so far everything worked just fine. However, the aarch64
builds now started to fail on installation of x86_64 packages.

Use the el0 version of the repository and don't specify the architecture
explicitly in the URL, but let DNF substitute it based on the host arch.

Signed-off-by: Tomáš Hozza <[email protected]>
@thozza thozza force-pushed the osbuild-ci-dnf4-module branch 2 times, most recently from 4dc62f0 to bcc44f6 Compare November 12, 2024 12:04
The c10s container contains newer packages than the ones that are
available in the repositories. Therefore we are running into a situation
when DNF would need to downgrade some packages, in order to install the
requested package set. This fails, unless the --nobest options is passed
to DNF.

Extend the dnf.py script and osbuild-ci.Dockerfile, to allow using the
--nobest option if needed. Use the option for the c10s osbuild-ci
container.

Signed-off-by: Tomáš Hozza <[email protected]>
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@thozza thozza merged commit 341338f into osbuild:main Nov 13, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants