Skip to content
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

Improve yast2_samba.pm #3344

Merged
merged 1 commit into from Aug 1, 2017
Merged

Improve yast2_samba.pm #3344

merged 1 commit into from Aug 1, 2017

Conversation

Zaoliang
Copy link
Contributor

@Zaoliang Zaoliang commented Jul 26, 2017

Copy link
Member

@rwx788 rwx788 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that test module is stable and main reason of failures are kernel messages disrupting ncurses ui, however on production there were other failures, like:
https://openqa.opensuse.org/tests/435819#step/yast2_samba/29

The main problem with tests (independent from other sources of instability) is that we do a lot of key presses and do not verify what happened. So I would spend more time trying to eliminate potential issues we have already seen.

@okurz
Copy link
Member

okurz commented Jul 26, 2017

I only see a dmesg call so the commit and PR description does not fit the content

@Zaoliang
Copy link
Contributor Author

@okurz it seems that the changes got somehow lost, I'm checking this...

@Zaoliang
Copy link
Contributor Author

@okurz got lost changes back :)

send_key 'alt-f';
send_key 'alt-i';
wait_screen_change { send_key 'alt-f' };
wait_screen_change { send_key 'alt-i' };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no wait_screen_change before assert_screen


# finally, close with OK
send_key 'alt-o';
wait_screen_change { send_key 'alt-o' };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also this should not be necessary when we have a wait_serial just afterwards

- use "dmesg -n 4" against kernel message floating over console
- use wait_screen_change to avoid timeout issue
@rwx788
Copy link
Member

rwx788 commented Jul 31, 2017

As we see a lot of failures related to the fact that return code is not there after 60 seconds, I suggest that we increase it to some bigger value, e.g. 180.

@Zaoliang
Copy link
Contributor Author

@rwx788 as we talked already, there is no issue related to timeout (wait_serial) at moment. Since a couple of days I have sometimes failures for samba because of yast2 got crashed. I've reported the issue:
https://bugzilla.opensuse.org/show_bug.cgi?id=1051169

@okurz
Copy link
Member

okurz commented Aug 1, 2017

@rwx788 should we mark the dmesg with a soft fail?

@rwx788
Copy link
Member

rwx788 commented Aug 1, 2017

@okurz sounds good to me. But we need to make up our mind about this in general. Adding "quiet" to boot option should do the trick, for example:
console_loglevel
Only messages with a log level lower than this value will be
printed to the console. The default value for this field is
DEFAULT_CONSOLE_LOGLEVEL (7), but it is set to 4 if the kernel
command line contains the word "quiet", 10 if the kernel
command line contains the word "debug", and to 15 in case of a
kernel fault (the 10 and 15 are just silly, and equivalent to
8). The value of console_loglevel can be set (to a value in
the range 1-8) by a syslog() call with a type of 8.
@Zaoliang here is the bug reference: https://bugzilla.suse.com/show_bug.cgi?id=1011815

@okurz
Copy link
Member

okurz commented Aug 1, 2017

ok, I added an according comment to https://progress.opensuse.org/issues/19398 . That should be good enough for now

@okurz okurz merged commit 872e78d into os-autoinst:master Aug 1, 2017
@Zaoliang Zaoliang deleted the yast2_samba branch September 7, 2017 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants