-
Notifications
You must be signed in to change notification settings - Fork 267
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
Containers: use serial terminal optinally for the tests #10424
Conversation
@pdostal @punkioudi please be aware of this. It's a big change in how tests are executed, so I don't want to convince everyone to use it, that's why it's optional. It won't affect QAM jobs, but you might be interested as well. |
I thought that we have |
@jlausuch yes, this functionality has been already implemented with |
I guess you mean |
Virtio console is enabled by default ( I should document this in https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/opensusebasetest.pm#L1078, because in general docs it's somehow reflected, but
|
I also improved doc, can you please have a look whether it's really an improvement? |
Thanks for clarification. I will remove the new variable and update the PR. |
@ggkioulis this might interests you too |
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.
LGTM
Using this option we gain 2 things: 1) Execution time reduced more than half. 2) Everything is logged to serial_termina.txt It is possible to disable it by setting VIRTIO_CONSOLE=0.
@@ -30,7 +30,8 @@ use strict; | |||
use warnings; | |||
|
|||
sub run { | |||
select_console("root-console"); | |||
my ($self) = @_; |
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.
since we excluding it for SLE . does it make sense to touch it ? do we plan also migrate to VIRTIO_CONSOLE=1
in o3 ?
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.
We might include it in the future and all these tests are a common subset of container tests, which I think should be similar the way they are handled.
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.
Is there any reason why not? BTW where are these tests in o3?
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.
A test called extra_tests_textmode_containers
in Tumbleweed builds e.g. https://openqa.opensuse.org/tests/1282756
and Leap https://openqa.opensuse.org/tests/1282504#
@@ -30,7 +30,8 @@ use strict; | |||
use warnings; | |||
|
|||
sub run { | |||
select_console("root-console"); | |||
my ($self) = @_; |
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.
Is there any reason why not? BTW where are these tests in o3?
@Vogtinator @pdostal : Would it be fine for you to merge this PR and if you don't want this feature then set VIRTIO_CONSOLE=0 in QAM and O3 side? |
Please add openSUSE TW and Leap 15.1 verification runs. If those pass, LGTM. |
@Vogtinator I tested it for openSUSE:
BTW on my host 11 min vs. 33 min => virtio console is 3x faster :). |
Thanks! I was about to do it :) |
I did it before, because I was myself curious how much the speedup is. Although prefer virtio/serial console anyway (to get text output), but I have to admit for tests with minimal output and long running commands the speedup can be not that significant. |
Great! |
@jlausuch FYI I meant impact on SLE12-SP1 ppc64le "util-linux on sle12/sle12sp1 rejects root login on any console which isnt listed in /etc/securetty , from SP2 is this file ignored" (https://progress.opensuse.org/issues/18980#note-14), it has been fixed long time ago for LTP:#2820, #6352 (https://progress.opensuse.org/issues/18980, https://progress.opensuse.org/issues/18980) but not sure about current status for the other tests, this old @dzedro complain was closed, so I guess correct setup has been done |
Using this option we gain 2 things:
It is possible to disable it by setting VIRTIO_CONSOLE=0.
- VIRTIO_CONSOLE=0: http://fromm.arch.suse.de/tests/942 (~29 min)
- VIRTIO_CONSOLE=1: http://fromm.arch.suse.de/tests/941 (~12 min)