Project

General

Profile

Actions

action #155203

open

coordination #151984: [epic] Unify YaST and Migration CIs and job groups

Replace YaST test suites in openQA DB/UI in YaST jobs groups with anchor/alias in job group yaml definition

Added by JERiveraMoya 3 months ago. Updated 1 day ago.

Status:
In Progress
Priority:
Low
Assignee:
Target version:
-
Start date:
2023-12-22
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Have full version control of our test scenarios.
Watch out for some test suite that inherit from other test suites, we should also remove those dependencies, all should be testsuite: null.

Acceptance criteria

AC1: All YaST test suites use anchor/alias instead of db/ui definitions

Actions #1

Updated by JERiveraMoya about 2 months ago

  • Subject changed from Replace test suites in openQA DB/UI in YaST jobs groups with anchor/alias in job group yaml definition to Replace test suites in openQA DB/UI in YaST jobs groups with anchor/alias in job group yaml definition for YaST test suites
  • Description updated (diff)
Actions #2

Updated by JERiveraMoya about 2 months ago

  • Subject changed from Replace test suites in openQA DB/UI in YaST jobs groups with anchor/alias in job group yaml definition for YaST test suites to Replace YaST test suites in openQA DB/UI in YaST jobs groups with anchor/alias in job group yaml definition
Actions #3

Updated by tinawang123 about 1 month ago

One comment, Please don't change leap to sle migration jobs.
We still need use 'test suites' to update 'HDD_1_URL' setting to avoid open more MRs.

Actions #4

Updated by rainerkoenig about 1 month ago

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

Updated by rainerkoenig about 1 month ago

Step 1: Look what testsuites from openQA are still used in the SLE* jobgroups

openqa-job-groups/JobGroups> grep -r testsuite SLE* | grep -v null | sort | uniq
SLE_15_DEV/aarch64.yaml:        testsuite: yast2_cmd
SLE_15_DEV/ppc64le.yaml:        testsuite: offline_install+skip_registration
SLE_15_DEV/ppc64le.yaml:        testsuite: transactional_server_helper_apps
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v3_client
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v3_server
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v4_client
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v4_server
SLE_15_DEV/x86_64.yaml:        testsuite: lvm+RAID1
SLE_15_DEV/x86_64.yaml:        testsuite: msdos
SLE_15_DEV/x86_64.yaml:        testsuite: yast2_cmd
SLE_15/x86_64.yaml:        testsuite: gnome_install_from_source
SLE_15/x86_64.yaml:        testsuite: installer_extended

So many references in SLE_15_DEV and a few in SLE_15 job group.

Actions #6

Updated by JERiveraMoya about 1 month ago ยท Edited

rainerkoenig wrote in #note-5:

Step 1: Look what testsuites from openQA are still used in the SLE* jobgroups

openqa-job-groups/JobGroups> grep -r testsuite SLE* | grep -v null | sort | uniq
SLE_15_DEV/aarch64.yaml:        testsuite: yast2_cmd
SLE_15_DEV/ppc64le.yaml:        testsuite: offline_install+skip_registration
SLE_15_DEV/ppc64le.yaml:        testsuite: transactional_server_helper_apps
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v3_client
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v3_server
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v4_client
SLE_15_DEV/ppc64le.yaml:        testsuite: yast2_nfs_v4_server
SLE_15_DEV/x86_64.yaml:        testsuite: lvm+RAID1
SLE_15_DEV/x86_64.yaml:        testsuite: msdos
SLE_15_DEV/x86_64.yaml:        testsuite: yast2_cmd
SLE_15/x86_64.yaml:        testsuite: gnome_install_from_source
SLE_15/x86_64.yaml:        testsuite: installer_extended

So many references in SLE_15_DEV and a few in SLE_15 job group.

test suites from db do not need to have 'testsuite', ie this one so that filter might not give you all that you need I think.

Actions #7

Updated by rainerkoenig about 1 month ago

Exactly: I just wrote this comment at the same time when you were posting your comment, so we had a "comment collison".

Unfortunately comment#5 was not the full picture. It just selects test suites where we have a line with testsuite: that is not null.

BUT there is much more in this:

    - textmode:
        settings:
          YAML_SCHEDULE: schedule/yast/textmode/textmode_aarch64.yaml
          YAML_TEST_DATA: test_data/yast/installation/network_config.yaml
          YAML_SCHEDULE_DEFAULT: schedule/yast/sle/flows/default_aarch64.yaml
    - transactional_server_helper_apps:

The textmode definition in our job group has no testsuite: line at all, but this means, that it will use the settings from what is stored in openQA in the test suite textmode (which by chance you find on page 105 if you search for "textmode" in the test suites search field).
And our job group setings have a lot of those implicit usage of stored test suites. This will make the effort for this ticket explode.

Actions #8

Updated by JERiveraMoya about 1 month ago

I don't think so, it is easy to spot them visually I think...but not 100 % sure, I like to start visually and sometimes I don't need any tool or script, but other people seems to prefer the scripting first, which could lead you a trap :) Let me know if I can help somehow.

Actions #9

Updated by rainerkoenig about 1 month ago

The easy way to spot the tests that need adaption is to compile the jobgroup YAML file. Unfortunately we have that testsuite: null in many occasions in test_suites.yaml, so even if you look at the x86_64.yaml and think you found one the chances are high that testsuite: null gets imported from test_suites.yaml. But looking at the end result you clearly see, which testsuites have no testsuite reference at all.

Actions #10

Updated by JERiveraMoya about 1 month ago

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

Updated by rainerkoenig 28 days ago

MR is ready: https://gitlab.suse.de/qe-yam/openqa-job-groups/-/merge_requests/137

Checked that in the compiled job group definitions for SLE_15 and SLE_15_DEV all testsuites have a line testsuite: null in them.
Descriptions are mostly copied, and sometimes adapted to the new repo where the test suite is maintained now.

Actions #12

Updated by JERiveraMoya 8 days ago

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

Updated by JERiveraMoya 1 day ago

  • Priority changed from Normal to Low
Actions

Also available in: Atom PDF