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

Adjust boot image creation with repos on sle 15 #3370

Merged
merged 2 commits into from
Aug 8, 2017

Conversation

rwx788
Copy link
Member

@rwx788 rwx788 commented Aug 2, 2017

We already have a method to workaround broken patterns, whereas in some
scenarios we have installation_overview_before where we just assert
overview screen.
As a temporary solution we will add repos manually before we get scc.
Whereas, it should not affect test code, as this part is done using test
suite configuration. This PR mainly contains changes to workaround known
installation issues. We also exclude release notes test on sle 15 as it doesn't
work properly with addons and there will be no such a thing visible in
future.

See poo#20824 and poo#20984

NOTE: all workaround take place only on sle15, hence won't affect other versions.

This change is partly included in PR#3353.
Verification runs:
SLE15 minimal base + SDK
SLE15 text mode create hdd
SLE12 SP3 minimal base + SDK

Needles MR#442 - already merged
Needles MR#443 - needs merge.

sub sle15_workaround_broken_patterns {
return unless sle_version_at_least('15');
# SLE 15 has pattern errors, workaround them - rbrown 04/07/2017
while (check_screen('sle-15-failed-to-select-pattern')) {
Copy link
Member

Choose a reason for hiding this comment

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

why did you change the timeout? This will now cause a lot of waiting time, 30 seconds default. Do you think less could work?

Copy link
Member Author

Choose a reason for hiding this comment

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

My bad, missed that when was resolving a conflict. Good catch.

@rwx788 rwx788 changed the title [WIP] Workaround broken patterns in sle 15 Workaround broken patterns in sle 15 Aug 2, 2017
@rwx788
Copy link
Member Author

rwx788 commented Aug 2, 2017

@okurz If we don't want to wait, we can merge this PR and see where test will fail afterwards.

@rwx788 rwx788 changed the title Workaround broken patterns in sle 15 [WIP] Workaround broken patterns in sle 15 Aug 2, 2017
@rwx788
Copy link
Member Author

rwx788 commented Aug 2, 2017

Additional changes will be required as after resolving package conflicts we get back to overview page and get same error again.

@rwx788 rwx788 changed the title [WIP] Workaround broken patterns in sle 15 [WIP] Adjust boot image creation with repos on sle 15 Aug 2, 2017
@@ -59,7 +59,7 @@ sub run {
}
workaround_type_encrypted_passphrase;
# 60 due to rare slowness e.g. multipath poo#11908
assert_screen "grub2", 60;
assert_screen "grub2", 300;
Copy link
Member Author

Choose a reason for hiding this comment

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

Hack, as somehow system boots to the iso after reboot. With increased timeout we start booting from hdd and everything works well.

Copy link
Member

Choose a reason for hiding this comment

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

Are you sure this also happened in production? It will happen when you do tests locally with loading from qemu screenshots so that you never finish the normal installation from start to end. Then your machine boots from DVD as well then.

Copy link
Member Author

Choose a reason for hiding this comment

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

This may explain it. I'll do full verification run and see if anything needed here.

We already have a method to workaround broken patterns, whereas in some
scenarios we have installation_overview_before where we just assert
overview screen.
As a temporary solution we will add repos manually before we get scc.
Whereas, it should not affect test code, as this part is done using test
suite configuration. This PR mainly contains changes to workaround known
installation issues. We also exclude release notes test on sle 15 as it doesn't
work properly with addons and there will be no such a thing visible in
future.

See poo#20984
@rwx788 rwx788 changed the title [WIP] Adjust boot image creation with repos on sle 15 Adjust boot image creation with repos on sle 15 Aug 3, 2017
@rwx788 rwx788 changed the title Adjust boot image creation with repos on sle 15 [WIP] Adjust boot image creation with repos on sle 15 Aug 4, 2017
@rwx788
Copy link
Member Author

rwx788 commented Aug 4, 2017

Set back to WIP to address issue with REPO and ADDON_URL variables. To have single test suite for SLE 12 and SLE 15 we need to set variables correctly in main.pm. Blocked on this merge request

@okurz
Copy link
Member

okurz commented Aug 4, 2017

+1

@rwx788 rwx788 force-pushed the 20582_sle_version_15 branch 4 times, most recently from 70ee50e to cabc290 Compare August 7, 2017 14:07
@@ -51,7 +51,7 @@ sub run {
# might involve some network lookup of products, licenses, etc.
assert_screen 'addon-products', 90;
send_key "tab"; # select addon-products-$addon
wait_still_screen 2;
wait_still_screen 10;
Copy link
Member Author

Choose a reason for hiding this comment

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

In my local setup list is shown as empty first, then gets to initializing and then proper content is shown. Otherwise, start navigating in menu without a change to reach the list

@@ -96,6 +96,7 @@ sub run {
send_key 'alt-t';
}
send_key "tab"; # select addon-products-$addon
wait_still_screen 10; # wait until repo is added and list is initialized
Copy link
Member Author

Choose a reason for hiding this comment

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

Same as above.

@rwx788 rwx788 force-pushed the 20582_sle_version_15 branch 2 times, most recently from 7d88958 to 279ed51 Compare August 7, 2017 15:07
@rwx788 rwx788 changed the title [WIP] Adjust boot image creation with repos on sle 15 Adjust boot image creation with repos on sle 15 Aug 7, 2017
@Soulofdestiny Soulofdestiny merged commit 2dc7a69 into os-autoinst:master Aug 8, 2017
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