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

Fix workaround bsc#1161421 #14887

Merged
merged 1 commit into from May 17, 2022
Merged

Fix workaround bsc#1161421 #14887

merged 1 commit into from May 17, 2022

Conversation

jknphy
Copy link
Contributor

@jknphy jknphy commented May 12, 2022

Adjust #14860

@github-actions
Copy link

Great PR! Please pay attention to the following items before merging:

Files matching lib/**.pm:

  • Consider adding or extending unit tests in t/

This is an automatically generated QA checklist based on modified files

@jknphy
Copy link
Contributor Author

jknphy commented May 12, 2022

hi @czerw I remember why I had to put that code line outside the workaround, which looked a bit weird, but do you know why is different behavior between this two:
https://openqa.suse.de/tests/8737686#step/kdump_and_crash/38
https://openqa.suse.de/tests/8743111#step/yast2_kdump/16

both are enabled at the beginning but only one has the popup to reboot, perhaps I'm missing something obvious here? :)
I can see the worker is different and there are some previous package installed, crash, kernel-* etc that we don't have in our test ...
bug?

@czerw
Copy link
Contributor

czerw commented May 12, 2022

I don't think it is a bug, test should detect either need to confirm reboot or just continue without it. yast could detect different memory and it could lead for new memory value (both tests have different memory setup).

@jknphy jknphy force-pushed the fix_kdump branch 4 times, most recently from cd3d87e to 6f24aa3 Compare May 12, 2022 12:37
@jknphy
Copy link
Contributor Author

jknphy commented May 12, 2022

I don't think it is a bug, test should detect either need to confirm reboot or just continue without it. yast could detect different memory and it could lead for new memory value (both tests have different memory setup).

ahm ok, it is that, right, thanks for the hint Petr, 4GB vs 1GB.

Nevertheless the tests should be predictable to save us time in their maintenance, selecting behavior based on needles is very fragile. This is old code we try to do better since a time ago, I remember we inherited this test suite a time ago but didn't have the chance to improve it yet.

Current code is very deceiving because types 2 'ret' one for enter the value and another for accept the screen, one line for two very different things, and then there is a alt-ok at the end that in these two archs serves for the ok button of the popup but in other cases just for the ok of the main screen. Definitely there is some gap for improvement here.

I will create a ticked for us to take a look, perhaps this module could be a good candidate for libyui REST API and a better design.

In the meantime I added another 'hack' that might work for all the cases, it is ugly, but after many tries and not finding what is going on due to lack of video, I came up with that, it looks like sometimes some ret is lost and sometimes does what is supposed to do depending on there is typing or not... I will check verification on Monday (openqa is slow at this time of the day). Please, feel free to merge it if it works or revert previous code if needed, apparently wasn't so easy to remove the workaround.

@jknphy jknphy changed the title WIP: Fix workaround bsc#1161421 Fix workaround bsc#1161421 May 12, 2022
@czerw
Copy link
Contributor

czerw commented May 13, 2022

https://openqa.suse.de/tests/8750817 still fails, but there is no rush for solution

@jknphy jknphy changed the title Fix workaround bsc#1161421 WIP: Fix workaround bsc#1161421 May 16, 2022
@jknphy jknphy force-pushed the fix_kdump branch 3 times, most recently from f65080d to 39ef3f9 Compare May 16, 2022 07:33
@czerw
Copy link
Contributor

czerw commented May 16, 2022

Hmm looks like that some scenarios still needs memory workaround https://openqa.suse.de/tests/8763993#step/kdump_and_crash/69 i will double check it more.

@jknphy jknphy changed the title WIP: Fix workaround bsc#1161421 Fix workaround bsc#1161421 May 16, 2022
Copy link
Contributor

@b10n1k b10n1k left a comment

Choose a reason for hiding this comment

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

if i am not wrong the $expect_restart_info doesnt need to used twice. In additional, add a proper commit message explaining why you do what you do, please

lib/kdump_utils.pm Outdated Show resolved Hide resolved
@jknphy
Copy link
Contributor Author

jknphy commented May 17, 2022

Hmm looks like that some scenarios still needs memory workaround https://openqa.suse.de/tests/8763993#step/kdump_and_crash/69 i will double check it more.

let me know, because from the point of view of YaST scope, given that we actually don't try to crash the system for real and just focus on the configuration, I could make it conditional to the memory size the upper block instead of using the product, in other words for yast2_kdump might not make sense to display the workaround in any product.

@czerw
Copy link
Contributor

czerw commented May 17, 2022

let me know, because from the point of view of YaST scope, given that we actually don't try to crash the system for real and just focus on the configuration, I could make it conditional to the memory size the upper block instead of using the product, in other words for yast2_kdump might not make sense to display the workaround in any product.

I think you are right, just please remove the QEMURAM condition,we can merge it. I will migrate all our tests to cli kdump version (including maintenance jobs).

@jknphy
Copy link
Contributor Author

jknphy commented May 17, 2022

let me know, because from the point of view of YaST scope, given that we actually don't try to crash the system for real and just focus on the configuration, I could make it conditional to the memory size the upper block instead of using the product, in other words for yast2_kdump might not make sense to display the workaround in any product.

I think you are right, just please remove the QEMURAM condition,we can merge it. I will migrate all our tests to cli kdump version (including maintenance jobs).

This is the cleanest solution I could find for this approach, basically the workaround will be done always except when we signal it from the test module which does not do any crash yast2_kdump. Verifications updated in 1st comment.

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