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
NixOS Tests: record an flv of the test #33299
Conversation
/cc #32020 |
@grahamc: Using VNC looks like a bit of a workaround to me, because first of all the machine states will get further away from real machines, it also doesn't capture bootup and/or anything else that doesn't involve an X server and the video stream also will come with an overhead because it travels through the guest's user space. Maybe it's a better idea to create a patch for Regardless of that, using SPICE instead of VNC IMHO is a better option (if you don't want to patch qemu) because it doesn't have the overhead mentioned above, it's supported by QEMU using the QXL video device and also doesn't involve additional options in the |
This does capture boot up, and is implemented in and by qemu as a way of viewing the video output of the guest from the host. It isn't passing the VNC connection to the guest. For this reason, I think it isn't so much of a workaround and doesn't change the guest configuration in any appreciable way. I would have liked to use a unix socket, but couldn't find a VNC recorder which supported it. QXL would be fine, but I'm not sure it actually provides any benefits (other than unix socket support) over this patch. Am I mistaken? Here is an example video: gsc.io/machine-0.flv |
If it isn't enabled by default (it isn't AFAIK), the only overhead is this couple of additional packages into (test-time) closure. I'd think we can take this approach and leave improvements (QXL?) to later. I'm actually not sure about recording the keymap tests by default. I assumed Aszlig already had understood the problem there well enough. |
Closing in favor of that one ^ |
Motivation for this change
Sometimes tests can be hard to debug. Maybe recording an FLV from the VNC could help with that? To start, enable the recording on the flaky keymap test.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)