Closed Priyankasaggu11929 closed 3 months ago
@dcermak @dirkmueller few questions:
~is there a kiwi container image being published to registry.suse.com~ ~(quick search on the registry doesn't show anything)~ ( not needed. figured out CI pipeline pulls container images from registry.opensuse.org under Devel tab)
is there a way to run podman rootful tests in BCI-tests (containers created with sudo
) using pytest-container framework?
I've added tests based on the steps in kiwi quickstart guide. Outside these, is there any specific kiwi functionality that needs to be tested?
FYI - test_kiwi_create_image()
requires containers created with podman rootful mode to mount loop devices (/dev/loop*), which is not possible with podman rootless run. So, I've disabled the test in case of container_runtime is not docker.
ref: https://github.com/containers/podman/issues/17715#issuecomment-1460227771
re: failing CI / Lint source code (pull_request)
************* Module tests.test_kiwi
tests/test_kiwi.py:9:0: E0611: No name 'KIWI_CONTAINERS' in module 'bci_tester.data' (no-name-in-module)
tests/test_kiwi.py:40:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_kiwi.py:67:0: C0116: Missing function or method docstring (missing-function-docstring)
This should be addressed with changes in https://github.com/SUSE/BCI-tests/pull/537
Rest CI / tox (kiwi, *) (pull_request)
tests are also giving similar errors and should be partially addressed by ^.
~But would eventually require kiwi container image on registry.suse.com IIUC.~
(figured out CI pipeline pulls container images from registry.opensuse.org under Devel
tab)
@Priyankasaggu11929 I merged the other PR now, please rebase (that should turn this into a greener state)
@dirkmueller, rebased PR with the kiwi test plumbing changes, and addressed ^ review comments.
Kiwi tests are green in the CI now.
Although, 3 out of the 7 failing CI tests are marked as Required
but doesn't have kiwi container images related failure, so, not sure how to bypass them here.
I've added tests based on the steps in kiwi quickstart guide. Outside these, is there any specific kiwi functionality that needs to be tested?
@dirkmueller, also need your input on ^. Thanks!
Although, 3 out of the 7 failing CI tests are marked as
Required
but doesn't have kiwi container images related failure, so, not sure how to bypass them here.
that's because you are submitting from a fork, you don't have the necessary credentials available there for those CI checks to turn green. don't worry about them.
I've added tests based on the steps in kiwi quickstart guide. Outside these, is there any specific kiwi functionality that needs to be tested?
@dirkmueller, also need your input on ^. Thanks!
I'm okay with the state as is, although I would have loved to see something passing with podman also, but we can always improve on this in a followup.
Part of https://github.com/SUSE/BCI-tests/issues/536
Assumes test setup as - https://github.com/SUSE/BCI-tests/pull/537
steps used for local testing atm: