-
Notifications
You must be signed in to change notification settings - Fork 90
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
test: Replace setup/teardown #1592
Conversation
So the first round looks vaguely promising. I did a bashism, and I don't want to talk about this mess (probably/hopefully containers/podman#21504), and I forgot to update tmt. Next round! |
b571a27
to
68cade1
Compare
these two still need fixing. I have no idea what's going on, e.g. a local update: The retried fcos failed the same way, but retried f39 worked fine. So this isn't reliable. But current main works fine, just tested this in #1593. |
328fdb7
to
5a15fd8
Compare
Our previous approach of `restore_dir("/var/lib/containers")` and the find/unmount/kill hacks around it keep causing trouble, see cockpit-project#1591. Give up on this, and move to a model that centers around `podman system reset`. This works reasaonably well except for that being slow (podman#21874) and leaking conmon (see next commit). Load our static test images with `podman save/load` instead. Also factorize system and user cleanup, so that we do the same thing on both. Fixes cockpit-project#1591
TestApplication.testRunImageSystem leaks conmon processes when opening the Console of busybox-without-publish. This isn't obvious to reproduce on the CLI (a simple `podman exec -it` doesn't do that), the opening of our cockpit channel via the podman API does something special here. We've had this hack for a while already. But move this into a separate commit so that we can revert it more easily eventually.
This reverts commit d4ec0fc.
This reverts commit 1043b33.
The problem seems to be the cockpit/ws container:
Somehow that doesn't survive the This is of course utterly hard to get right -- we both want to completely trash and reset containers during tests, but at the same time rely on the cockpit/ws to be reliable. I wonder if the problem is with our |
This was too much, and now conflicty anyway. #1601 looks more promising. |
Fixes #1591