Project

General

Profile

Actions

action #132920

closed

coordination #121864: [epic] Split and enhance test modules in migrations

Split logic for recently created deregister_dropped_modules.pm

Added by JERiveraMoya 10 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2023-07-18
Due date:
% Done:

0%

Estimated time:

Description

Motivation

It should be more clear just looking at the test module what are the actions in drop_unavailable_product_modules.pm

Of course, we are talking about the function sub deregister_dropped_modules to extract its logic in different test modules, the code is just iterating over comma-separated values in settings, creating unnecessary complexity. We need test modules which address specific actions in a very straightforward way and very transparent display, so any user (ie: a developer in a bug report) could reproduce manually this. This piece of code seems to be doing:
This block deals with LTSS, it should have its own test module with name (according to documentation disable_ltss.pm (let's use some hash instead of if/else conditions here)

remove_suseconnect_product('SLE_HPC-LTSS');
remove_suseconnect_product('SLES-LTSS');

Do we really use or need this part in the YaM scope?

zypper_call 'rm -t product SLES-LTSS';
zypper_call 'rm sles-ltss-release-POOL';

We don't need setting DROPPED_MODULES because the only other case to be taking into account is the python2 so let's create a test module only for this

remove_suseconnect_product(get_addon_fullname($name));

Finally after each the two modules create above we might need to adjust the settings, but I don't think it is responsibility of this module to do this, during the migration itself ltss or python can be excluded. File a ticket to adjust it there if it is not possible at the moment and keep this code or even better fix it there on target.

@all_addons = grep { $_ ne $name } @all_addons;
set_var('SCC_ADDONS', join(',', @all_addons));

Acceptance criteria

AC1: Split/improve this piece of logic following recommendations above

Additional information

Refactored test suite are currently in this job group with names ending on *_split_patch_sle.

Actions #1

Updated by JERiveraMoya 10 months ago

  • Description updated (diff)
Actions #2

Updated by zoecao 8 months ago

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

Updated by zoecao 8 months ago

Cost a few days to review agama new builds this week, I'll continue to work on this ticket now.

Actions #4

Updated by zoecao 8 months ago

Because the supported hpc migration path doesn't include older scenarios, so we don't have ltss testing in hpc migration cases, so I didn't add SLE_HPC-LTSS to the deregister_ltss text module to make the code more clear.

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/17750

Actions #5

Updated by zoecao 7 months ago

Re-triggered the related jobs in migration dev job group, may need to file a new ticket if any new issues caused by:
@all_addons = grep { $_ ne $name } @all_addons;
set_var('SCC_ADDONS', join(',', @all_addons));
https://openqa.suse.de/tests/12439156#live
https://openqa.suse.de/tests/12439157#live

Actions #6

Updated by zoecao 7 months ago

And submit a MR to update the split patch_sle case setting.
https://gitlab.suse.de/coolgw/wegao-test/-/merge_requests/353

File one ticket for the caused failure in [addon_products_sle]:
ticket link: https://progress.opensuse.org/issues/138179

Actions #7

Updated by zoecao 7 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF