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

bib: resolve container content from the external dnf again #704

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Nov 5, 2024

This commit goes back to the approach we had in PR#565 to resolve using
the solver from outside of the container. The reason to back is that
some containers (like f41) do not have the python dnf available so
they break with the "run dnfjson inside" approach (that was meant
as a quick fix only anyway).

Huge kudos to Achilleas for most of the work here.

Closes: #700

It would be ideal if this could be tested end-to-end on a rhel9 system building a rhel9 iso installer.

@mvo5 mvo5 requested a review from achilleas-k November 5, 2024 11:43
@mvo5 mvo5 force-pushed the resolve-external-again-thanks-achilleask branch 6 times, most recently from 5072c4e to 37da578 Compare November 6, 2024 11:06
@mvo5 mvo5 marked this pull request as ready for review November 6, 2024 11:07
@mvo5 mvo5 force-pushed the resolve-external-again-thanks-achilleask branch 2 times, most recently from 263ae76 to 43f9f88 Compare November 6, 2024 11:10
@achilleas-k achilleas-k changed the title bib: reoslve container content from the external dnf again bib: resolve container content from the external dnf again Nov 6, 2024
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

LGTM. The nested test is a bit out there but I like it!

Linter is unhappy though.

@achilleas-k
Copy link
Member

Smoke test failed with "Bad gateway" -_-
Restarted

achilleas-k
achilleas-k previously approved these changes Nov 7, 2024
@mvo5 mvo5 force-pushed the resolve-external-again-thanks-achilleask branch from 43f9f88 to a3abc6f Compare November 11, 2024 08:54
mvo5 and others added 2 commits November 11, 2024 13:17
This commit goes back to the approach we had in PR#565 to resolve using
the solver from outside of the container. The reason to back is that
some containers (like f41) do not have the python dnf available so
they break with the "run dnfjson inside" approach (that was meant
as a quick fix only anyway).

Huge kudos to Achilleas for most of the work here.

Co-Authored-By: Achilleas Koutsou <achilleas@koutsou.net>
This commit adds a test that ensures that access to subscribed
content works in a nested container similar to how we run the
nested container in bootc-image-builder. I.e. here we run in
a privilidged container that then runs a normal container to
depsolve against that.

The test works by running the already existing
`TestDNFJsonWorkWithSubscribedContent` inside the container to
double check that subscribed content is available both from the
host and when nesting.

The extra complication is that for efficiency we compile the
test binary on the host (to avoid having to have a go toolchain
inside the container) which means the container needs to have a
recent version of glibc (building our code with CGO_ENABLED=0
does not work) to support developing/running tests on f41.
@mvo5
Copy link
Collaborator Author

mvo5 commented Nov 11, 2024

LGTM. The nested test is a bit out there but I like it!

Yeah, not super happy about it, ideas (very) welcome how to make it cleaner!

Linter is unhappy though.

Fixed now. There was also another issue that the new unit tests in testingfarm uncovered so yay for tests.

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.

Bib break anaconda-iso build on Fedora 41
2 participants