-
Notifications
You must be signed in to change notification settings - Fork 54
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
ci: Enable vbox recording on tests #866
Conversation
365f7b5
to
c946de5
Compare
Seems to work :D |
packer/images.json.pkr.hcl
Outdated
@@ -151,6 +151,9 @@ source "virtualbox-iso" "cos" { | |||
ssh_timeout = "5m" | |||
ssh_username = "${var.root_username}" | |||
vm_name = "cOS" | |||
vboxmanage = [ | |||
["modifyvm", "{{.Name}}", "--recording", "on", "--recordingscreens", "0","--recordingfile", "../capture.webm"], |
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.
mmm just a silly question, is this going to record nevertheless when we ran the packer template? there is no way to optionally turn it off/on?
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.
no way of turning off for now. Do we want to skip it?
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.
I mean, we could just not do it in the packer or hide it under a debug env var I guess, packer is very consistent and usually never fails, and its easy to reproduce locally
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.
👍 fine by me, was just curious.. I just wondered about webm support. Is something backed inside Vbox I guess, so should be fine!
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.
there, updated with a switch so its off by default
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.
Awesome! 👍
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.
Looks good here!
c946de5
to
3c8ddc5
Compare
mmm seeing this in test-raw disks:
https://github.com/rancher-sandbox/cOS-toolkit/runs/4211735613?check_suite_focus=true |
should be fixed, permissions issue |
3024e96
to
7e5232a
Compare
mmhh, this actually introduces a kind of heavy impact on the speed, with some tests taking up to 400 more seconds which I dont think its viable. Im thinking Im gonna set it behind a debug keyword like on packer (capture_enabled) and have it disabled by default. |
Adds screen recording while using vbox which results in recording the screen during packer creation, and tests Only uploads artifacts if there is a failure Signed-off-by: Itxaka <igarcia@suse.com>
7e5232a
to
d37a6ce
Compare
Signed-off-by: Itxaka igarcia@suse.com