-
Notifications
You must be signed in to change notification settings - Fork 61
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
bib: resolve container content from the external dnf again #704
Conversation
5072c4e
to
37da578
Compare
263ae76
to
43f9f88
Compare
There was a problem hiding this 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.
Smoke test failed with "Bad gateway" -_- |
43f9f88
to
a3abc6f
Compare
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 <[email protected]>
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.
a3abc6f
to
41f3a90
Compare
Yeah, not super happy about it, ideas (very) welcome how to make it cleaner!
Fixed now. There was also another issue that the new unit tests in testingfarm uncovered so yay for tests. |
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.