Project

General

Profile

Actions

action #156889

closed

coordination #151990: [epic] Optimize test coverage

Unify qcow name in support images group

Added by leli 10 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2024-03-08
Due date:
% Done:

0%

Estimated time:

Description

Motivation

After mr#93 merged, we need to update the qcow names following the style of test suite name. Please refer to
https://progress.opensuse.org/issues/152005

Scope

Published qcow name support image job group.

Acceptance criteria

AC1: Unify qcow name in support images group
AC2: Confirmation for migration using those support images is updated accordingly.


Related issues 1 (0 open1 closed)

Related to qe-yam - action #152005: Rename support images test suitesResolvedleli2023-12-04

Actions
Actions #1

Updated by JERiveraMoya 10 months ago

  • Tags set to qe-yam-mar-sprint
  • Description updated (diff)
  • Status changed from New to Workable
  • Parent task set to #151990
Actions #2

Updated by rainerkoenig 10 months ago

  • Status changed from Workable to In Progress
  • Assignee set to rainerkoenig
Actions #3

Updated by rainerkoenig 10 months ago

Actions #4

Updated by rainerkoenig 10 months ago · Edited

Had a look at this. Since in #152005 it looks like the idea wiht "size*" was abandoned it looks like that this ticket is just about removing the autoyast- prefix from the qcow names. This gives us 32 filenames to take care of:

 removed because it was not complete
Actions #5

Updated by rainerkoenig 10 months ago

Digging deeper into this. Its getting worse. We have situations where the first job does a

PUBLISH_HDD_1: 'autoyast-SLES-%VERSION%-%ARCH%-%DESKTOP%-updated.qcow2'

and the chained dependency job uses

HDD_1: 'autoyast-SLES-15-SP5-%ARCH%-%DESKTOP%-updated.qcow2'

so it is practically the same image, but once with %VERSION% and once with 15-SP5 which will make it difficult if we only see for the PUBLISH_HDD_1 names.

And we have anchor imports from test_suites.yaml as well.

So I guess a better filename list will be if I compile the YAML for the support_images job group and then look for all HDD_1 names with autoyast in it, no matter what.

Also note that we have this in support_images:

  sle-15-SP3-Server-DVD-Updates-x86_64:
    - supp_sles15sp3_deregister:
        description: >-
          Create support image for SLES 12SP5 textmode and default patterns.
        <<: *create_hdd_yast_maintenance_desktop
        settings:
          <<: *create_hdd_yast_maintenance_desktop_settings
          DESKTOP: 'textmode'
          INSTALLER_SELF_UPDATE: 'http://download.suse.de/ibs/SUSE:/Maintenance:/Test:/SLE-INSTALLER:/15-SP3:/x86_64/update/'
          PATTERNS: apparmor,base,enhanced_base,minimal_base,yast2_basis
          PUBLISH_HDD_1: autoyast-SLES-15-SP3-%ARCH%-textmode-updated.qcow2
          YAML_SCHEDULE: 'schedule/yast/maintenance/autoyast_create_hdd_maintenance_deregister.yaml'
        testsuite: null

The published HDD is used nowhere in our job groups.

Actions #6

Updated by leli 10 months ago

rainerkoenig wrote in #note-5:

Digging deeper into this. Its getting worse. We have situations where the first job does a

PUBLISH_HDD_1: 'autoyast-SLES-%VERSION%-%ARCH%-%DESKTOP%-updated.qcow2'

and the chained dependency job uses

HDD_1: 'autoyast-SLES-15-SP5-%ARCH%-%DESKTOP%-updated.qcow2'

so it is practically the same image, but once with %VERSION% and once with 15-SP5 which will make it difficult if we only see for the PUBLISH_HDD_1 names.

And we have anchor imports from test_suites.yaml as well.

So I guess a better filename list will be if I compile the YAML for the support_images job group and then look for all HDD_1 names with autoyast in it, no matter what.

Also note that we have this in support_images:

  sle-15-SP3-Server-DVD-Updates-x86_64:
    - supp_sles15sp3_deregister:
        description: >-
          Create support image for SLES 12SP5 textmode and default patterns.
        <<: *create_hdd_yast_maintenance_desktop
        settings:
          <<: *create_hdd_yast_maintenance_desktop_settings
          DESKTOP: 'textmode'
          INSTALLER_SELF_UPDATE: 'http://download.suse.de/ibs/SUSE:/Maintenance:/Test:/SLE-INSTALLER:/15-SP3:/x86_64/update/'
          PATTERNS: apparmor,base,enhanced_base,minimal_base,yast2_basis
          PUBLISH_HDD_1: autoyast-SLES-15-SP3-%ARCH%-textmode-updated.qcow2
          YAML_SCHEDULE: 'schedule/yast/maintenance/autoyast_create_hdd_maintenance_deregister.yaml'
        testsuite: null

The published HDD is used nowhere in our job groups.

Agree to use the same naming style for qcow names.
No idea for this test suite, looks like a test suite in development.

Actions #7

Updated by rainerkoenig 10 months ago

Approaching the list of files by extracting them from the compiled YAML for yst_support_images group gives 37 file names with "autoyast" in it:

> grep HDD_1 support-images.yaml | sed 's/^.*HDD_1: //' | grep autoyast | sort | uniq 
autoyast-SLED-%VERSION%-%ARCH%-%DESKTOP%-all_patterns-updated@%MACHINE%.qcow2
autoyast-SLED-%VERSION%-%ARCH%-%DESKTOP%-default_patterns-updated@%MACHINE%.qcow2
autoyast_SLEHPC-%VERSION%-%ARCH%-DEV-gnome-allpatterns-updated.qcow2
autoyast_SLEHPC-%VERSION%-%ARCH%-DEV-gnome-defpatterns-updated.qcow2
autoyast_SLEHPC-%VERSION%-%ARCH%-SERVER-allpatterns-updated.qcow2
autoyast_SLEHPC-%VERSION%-%ARCH%-SERVER-defpatterns-updated.qcow2
autoyast_SLEHPC-%VERSION%-%ARCH%-TEXTMODE-allpatterns-updated.qcow2
autoyast_SLEHPC-%VERSION%-%ARCH%-TEXTMODE-defpatterns-updated.qcow2
autoyast-SLES-12-SP5-aarch64-GM-updated.qcow2
autoyast-SLES-12-SP5-%ARCH%-GM-all_patterns-updated.qcow2
autoyast-SLES-12-SP5-%ARCH%-GM-updated.qcow2
autoyast_SLES-12-SP5-%ARCH%-HA-updated.qcow2
autoyast-SLES-12-SP5-s390x-GM-all_patterns-updated.qcow2
autoyast-SLES-12-SP5-x86_64-GM-media-minimal-updated.qcow2
autoyast-SLES-15-SP3-%ARCH%-GM-gnome-allpatterns-updated.qcow2
autoyast-SLES-15-SP3-%ARCH%-GM-ltss-%DESKTOP%-updated.qcow2
autoyast-SLES-15-SP3-%ARCH%-GM-textmode-allpatterns-updated.qcow2
autoyast-SLES-15-SP3-%ARCH%-HA-updated.qcow2
autoyast-SLES-15-SP3-%ARCH%-media-minimal-updated.qcow2
autoyast-SLES-15-SP3-%ARCH%-textmode-ms-updated.qcow2
autoyast-SLES-15-SP3-%ARCH%-textmode-updated.qcow2
autoyast-SLES-15-SP3-s390x-GM-SDK-gnome-allpatterns.qcow2
autoyast-SLES-15-SP4-%ARCH%-gnome-sdk-allpatterns-updated.qcow2
autoyast-SLES-15-SP4-%ARCH%-HA-updated.qcow2
autoyast-SLES-15-SP4-BUILD%BUILD%-%ARCH%-gnome.qcow2
autoyast-SLES-15-SP5-%ARCH%-%DESKTOP%-updated.qcow2
autoyast-SLES-15-SP5-%ARCH%-GM-HA-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-%DESKTOP%-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-%DESKTOP%-all-patterns-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-%DESKTOP%-all_patterns-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-%DESKTOP%-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-ltss-desktop-%DESKTOP%-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-ltss-%DESKTOP%-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-minimal-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-skip-registration.qcow2
autoyast-SLES-%VERSION%-%ARCH%-GM-updated.qcow2
autoyast-SLES-%VERSION%-%ARCH%-SAP-updated.qcow2

This is a much better starting point.

Actions #8

Updated by rainerkoenig 10 months ago

After obtainting the names to be changed the rest was easy scripting.

MR: https://gitlab.suse.de/qe-yam/openqa-job-groups/-/merge_requests/116

Actions #9

Updated by JERiveraMoya 9 months ago

  • Tags changed from qe-yam-mar-sprint to qe-yam-apr-sprint
Actions #10

Updated by JERiveraMoya 9 months ago

Current MR doesn't cover the first comment "... following the style of test suite name" (style=name convention). It might have been a AC but I thought it was clear enough, we need quick navigation among the different parts.

Actions #11

Updated by rainerkoenig 8 months ago · Edited

Current status: I've iterated through all test suites in the yast_support_images_devel group and adapted the qcow names so that it starts with the name of the job that crates this qcow.

Tried to update all usages of those images as well, but due to %VERSION% and %DESKTOP in the filenames the chances are high that I missed some occurences. This will be fixed in the next round now. We also have occurences in test_suites.yaml which will be difficult to fix, because we should use the correct new name even if it imports a PUBLISH_HDD_1 entry.

Next problem is, that the ticket refers to migration job group, but the replace in files algorithm of VSCode also hit the SLE15 and MU group:

diff --git a/JobGroups/yast_maintenance_updates/x86_64.yaml b/JobGroups/yast_maintenance_updates/x86_64.yaml
index b351768..8d671c2 100644
--- a/JobGroups/yast_maintenance_updates/x86_64.yaml
+++ b/JobGroups/yast_maintenance_updates/x86_64.yaml
@@ -959,7 +959,7 @@ x86_64:
           BOOT_HDD_IMAGE: '1'
           DESKTOP: textmode
           DUD: dev_tools.dud
-          HDD_1: sle-15-SP5-x86_64-GM-textmode_ay@64bit.qcow2
+          HDD_1: supp_sles15sp5_yast-%ARCH%@qcow2
           YAML_SCHEDULE: schedule/yast/generate_dud.yaml
         testsuite: null
     - ncurses_interactive_installation:
diff --git a/JobGroups/SLE_15/aarch64.yaml b/JobGroups/SLE_15/aarch64.yaml
index 40f3965..fe6ed44 100644
--- a/JobGroups/SLE_15/aarch64.yaml
+++ b/JobGroups/SLE_15/aarch64.yaml
@@ -320,7 +320,7 @@ aarch64:
         settings:
           BOOT_HDD_IMAGE: '1'
           BOOTFROM: 'c'
-          HDD_1: openqa_support_server_sles15sp4_aarch64_gnome.qcow2
+          HDD_1: supportserver_generator_from_hdd_desktop-%ARCH%.qcow2
           NICTYPE: tap
           OVS_DEBUG: '1'
           REMOTE_CONTROLLER: vnc
diff --git a/JobGroups/SLE_15/x86_64.yaml b/JobGroups/SLE_15/x86_64.yaml
index 0ce3f2c..4dc0e09 100644
--- a/JobGroups/SLE_15/x86_64.yaml
+++ b/JobGroups/SLE_15/x86_64.yaml
@@ -795,7 +795,7 @@ x86_64:
         settings:
           <<: *gnome_and_qemuram
           BOOT_HDD_IMAGE: '1'
-          HDD_1: openqa_support_server_sles15sp4_x86_64_gnome.qcow2
+          HDD_1: supportserver_generator_from_hdd_gnome-%ARCH%.qcow2
           NICTYPE: tap
           OVS_DEBUG: '1'
           QEMUVGA: cirrus

Actions #12

Updated by JERiveraMoya 8 months ago

  • Tags changed from qe-yam-apr-sprint to qe-yam-may-sprint
Actions #13

Updated by JERiveraMoya 8 months ago

  • Priority changed from Normal to Low
Actions #14

Updated by JERiveraMoya 7 months ago

  • Priority changed from Low to Normal
Actions #15

Updated by JERiveraMoya 7 months ago

  • Tags changed from qe-yam-may-sprint to qe-yam-jan-sprint
Actions #16

Updated by rainerkoenig 7 months ago

  • Tags changed from qe-yam-jan-sprint to qe-yam-jun-sprint
Actions #17

Updated by JERiveraMoya 7 months ago

Holding merge until clarification about SLE 15 SP6 respin.

Actions #18

Updated by JERiveraMoya 6 months ago

  • Tags changed from qe-yam-jun-sprint to qe-yam-jul-sprint
Actions #19

Updated by JERiveraMoya 6 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF