~jackweirdy/podman/+git/main:Luap99/ginkgo-v2

Last commit made on 2023-04-13
Get this branch:
git clone -b Luap99/ginkgo-v2 https://git.launchpad.net/~jackweirdy/podman/+git/main

Branch merges

Branch information

Name:
Luap99/ginkgo-v2
Repository:
lp:~jackweirdy/podman/+git/main

Recent commits

ab81f65... by Ed Santiago <email address hidden>

WIP: logformatter: handle ginkgo v2 logs

Checkpoint as of Thursday April 13 afternoon.

Please do not merge with this; the .t file (tests) needs to
be updated, and there are probably many more fixes/improvements
I still need to make.

Signed-off-by: Ed Santiago <email address hidden>

de55faa... by Paul Holzinger <email address hidden>

test/e2e: switch to GinkgoWriter

Directly writing to stdout/err is not safe when run in parallel.
Ginkgo v2 fixed this buffering the output and syncing the output so it
is not mangled between tests.

This means we should use the GinkgoWriter everywhere to make sure the
output stays in sync.

Signed-off-by: Paul Holzinger <email address hidden>

8331cd2... by Paul Holzinger <email address hidden>

test/e2e: do not try to use docker as rootless

Running these locally always created a popup to ask me for my password
as I am in the wheel group.
I would also argue that such a test should not be run on any local
system ever even as root. First docker could be a symlink to podman so
the check if the image is there would fail. Second starting the docker
deamon in a podman test suite just feels very unexpected.

Signed-off-by: Paul Holzinger <email address hidden>

eabb1ed... by Paul Holzinger <email address hidden>

test/e2e: do not leak "hello" file

Because the test mounts the current dir it does not need to create a new
file in it. Just check if the current test file is there should fulfill
the same purpose.

Signed-off-by: Paul Holzinger <email address hidden>

f7e05ea... by Paul Holzinger <email address hidden>

test/e2e: unset CONTAINERS_CONF before Cleanup()

If we do not unset CONTAINERS_CONF before tests that create a invlid
config will cause the Cleanup to fail.

Signed-off-by: Paul Holzinger <email address hidden>

4eeb3a5... by Paul Holzinger <email address hidden>

ginkgo: run on all cores

Using -p autodetect the number of cores and thus spins up workers as
needed, this should help speeding up e2e tests, especially locally.

Also -vv for mor everbose logging.

Signed-off-by: Paul Holzinger <email address hidden>

cfd9f74... by Paul Holzinger <email address hidden>

test/e2e: fix Cleanup()

Only check exit codes last, othwerwise in case of errors it will return
early and miss other commands.
Also explicitly stop before rm, rm is not working in all cases (#18180).

Signed-off-by: Paul Holzinger <email address hidden>

cac521d... by Paul Holzinger <email address hidden>

test/e2e: fix "podman run ipcns ipcmk container test"

The test will leak processes because the rm -fa in the cleanup failed.
This happens because podman tried to remove the contianers in the wrong
order and thus ppodman failed with:
`contianer XXX has dependent containers which must be removed before it`

For now I patch the test but it should be much better if we can fix it
in podman to remove in the correct order. `--all` should mean all I do
not care if there is a dependent container, just get rid of it.

Signed-off-by: Paul Holzinger <email address hidden>

2f1f505... by Paul Holzinger <email address hidden>

test/e2e: actually check for cleanup errors

We blindy trust these commands to work but as it turns out they do not
under certain circumstances.

The "podman run ipcns ipcmk container test" can be used to fail this
reliably, if a container has dependencies the order of rm --all may
cause it to fail because the contianers are deleted in the wrong order.
This is th eonly one I found so far, adding this will uncover many more
of such problems without proper cleanup we leak processes and ginkgo v2
will block because of them.

Of course this cannot be merged without fixing these issues.

Signed-off-by: Paul Holzinger <email address hidden>

271c95c... by Paul Holzinger <email address hidden>

libpod: rootlessNetNs.Cleanup() fix error message

The wrong error was logged.

Signed-off-by: Paul Holzinger <email address hidden>