Skip to content

Commit

Permalink
Redesign the migration regression cases
Browse files Browse the repository at this point in the history
We redesign the migration regression cases that spliting a long case into
several cases: after migration, publsh a qcow, and then do regression
tests with the qcow; for the regression tests, we use INCLUDE_MODULES
setting to load the regression test modules. The reason that fix the
service check is we check the upgraded services on the second case, it can
not check the result in the first job.
  • Loading branch information
openQA web UI committed Jul 5, 2022
1 parent 3ff228e commit ed33061
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/service_check.pm
Expand Up @@ -336,7 +336,9 @@ sub check_services {
my $srv_proc_name = $service->{$s}->{srv_proc_name};
my $support_ver = $service->{$s}->{support_ver};
my $service_type = 'Systemd';
next unless (($service->{$s}->{before_migration} eq 'PASS') && _is_applicable($srv_pkg_name));
if (!($service->{$s}->{before_migration} eq 'PASS') || !_is_applicable($srv_pkg_name) || !get_var('START_AFTER_TEST')) {
next;
}
record_info($srv_pkg_name, "service check after migration");
eval {
if (is_sle($support_ver, get_var('ORIGIN_SYSTEM_VERSION'))) {
Expand Down
47 changes: 47 additions & 0 deletions schedule/migration/create_migrated_hdd_offline.yaml
@@ -0,0 +1,47 @@
name: create_migrated_hdd_offline.yaml
description: |
This is for creating migrated hdd for regression test.
#REGRESSION_SERVICE: '1' means support service check test. '0' means doesn't
#support service check test, normally set '0' for package media test.
vars:
DESKTOP: 'gnome'
BOOT_HDD_IMAGE: 1
ORIGIN_SYSTEM_VERSION: '%HDDVERSION%'
UPGRADE_TARGET_VERSION: '%VERSION%'
BOOTFROM: 'd'
schedule:
- migration/version_switch_origin_system
- boot/boot_to_desktop
- update/patch_sle
- migration/record_disk_info
- '{{install_service}}'
- migration/reboot_to_upgrade
- migration/version_switch_upgrade_target
- installation/isosize
- installation/bootloader
- installation/welcome
- installation/upgrade_select
- installation/scc_registration
- installation/addon_products_sle
- installation/resolve_dependency_issues
- installation/installation_overview
- installation/disable_grub_timeout
- installation/start_install
- installation/await_install
- installation/logs_from_installation_system
- installation/reboot_after_installation
- installation/grub_test
- installation/first_boot
- migration/post_upgrade
- console/system_prepare
- console/consoletest_setup
- console/zypper_lr
- console/check_os_release
- console/check_system_info
- shutdown/cleanup_before_shutdown
- shutdown/shutdown
conditional_schedule:
install_service:
REGRESSION_SERVICE:
1:
- installation/install_service
45 changes: 45 additions & 0 deletions schedule/migration/create_migrated_hdd_online.yaml
@@ -0,0 +1,45 @@
name: create_migrated_hdd_online.yaml
description: |
This is for creating hdd for migration regression test.
#REGRESSION_SERVICE: '1' means support service check test. '0' means doesn't
#support service check test, normally set '0' for package media test.
vars:
DESKTOP: gnome
BOOT_HDD_IMAGE: 1
ORIGIN_SYSTEM_VERSION: '%HDDVERSION%'
UPGRADE_TARGET_VERSION: '%VERSION%'
schedule:
- migration/version_switch_origin_system
- '{{online_migration_test}}'
- '{{install_service}}'
- migration/version_switch_upgrade_target
- migration/online_migration/pre_migration
- '{{migration_method}}'
- migration/online_migration/post_migration
- console/check_os_release
- console/check_system_info
- console/check_network
- console/system_state
- console/prepare_test_data
- console/consoletest_setup
- shutdown/cleanup_before_shutdown
- shutdown/shutdown
conditional_schedule:
migration_method:
MIGRATION_METHOD:
yast:
- migration/online_migration/yast2_migration
zypper:
- migration/online_migration/zypper_migration
online_migration_test:
ONLINE_MIGRATION:
1:
- installation/isosize
- installation/bootloader
- migration/online_migration/online_migration_setup
- migration/online_migration/register_system
- migration/online_migration/zypper_patch
install_service:
REGRESSION_SERVICE:
1:
- installation/install_service
75 changes: 75 additions & 0 deletions schedule/migration/regression.yaml
@@ -0,0 +1,75 @@
name: regression.yaml
description: |
This is for migration regression test.
#support service check test, normally set '0' for package media test.
vars:
DESKTOP: 'gnome'
BOOT_HDD_IMAGE: 1
ORIGIN_SYSTEM_VERSION: '%HDDVERSION%'
UPGRADE_TARGET_VERSION: '%VERSION%'
BOOTFROM: 'd'
schedule:
- installation/bootloader_start
- boot/boot_to_desktop
- console/check_migration_features
- console/check_network
- console/system_state
- console/prepare_test_data
- console/check_upgraded_service
- migration/openldap_to_389ds
# - boot/grub_test_snapshot
- locale/keymap_or_locale
- console/supportutils
- console/force_scheduled_tasks
- console/textinfo
- console/hostname
- console/upgrade_snapshots
- console/x_vt
- console/pam
- console/btrfsmaintenance
- console/java
- console/cpio
- console/zypper_ref
- console/ncurses
- console/yast2_lan
- console/curl_https
- console/salt
- console/glibc_sanity
- console/glibc_tunables
- console/zypper_in
- console/zypper_log
- console/yast2_i
- console/yast2_bootloader
- console/vim
- console/firewall_enabled
- console/krb5
- console/sshd
- console/ssh_cleanup
- console/mtab
- console/upgrade_snapshots
- console/zypper_lifecycle
- console/orphaned_packages_check
- console/consoletest_finish
- x11/desktop_runner
- x11/xterm
- x11/sshxterm
- x11/gnome_control_center
- x11/gnome_terminal
- x11/gedit
- x11/firefox
- x11/tomcat
- x11/eog
- x11/gnome_music
- x11/wireshark
- x11/ImageMagick
- x11/ghostscript
- x11/ooffice
- x11/oomath
- x11/oocalc
- x11/yast2_snapper
- x11/glxgears
- x11/nautilus
- x11/evolution
- x11/desktop_mainmenu
- x11/reboot_gnome
- shutdown/shutdown

0 comments on commit ed33061

Please sign in to comment.