action #155908
closedcoordination #152769: [epic] Reduction of yaml files in YaST installations
Reduce yaml files for guided_btrfs
0%
Description
Motivation¶
See epic and tickets in the epic for best practices.
Some general summary as a hint (after reading previous tickets):
Main goals are to reduce for single test suite to single yaml file comparing the ones created per each architecture before and drive the schedule having different yaml default files per each architecture. The final yaml should be stored in a folder where we have the representation of each test case: schedule/yam/test_cases
In order to do that you have to consider if it is just about yaml or would require some code changes to make things more homogeneous, there are multiple approaches ranging from simple dropping small tested functionality in some specific architecture to some more fancy code strategy.
At the same time we should care of variables, basically moving all of them to job group yaml.
Leave out for now ppc64le, due to most of our test coverage is in PowerVM and it is not working, so verification are not possible atm. Anyway in the future most likely we will have to reduce hugely test coverage for ppc64le, so we should take that into account instead of trying to do much effort in the code due to PowerVM requires special treatment in the console or installation that only make sense to have them in textmode breaking this homogeneity that we are aiming to.
Specific from this test suite:
For ipmi we might need to create another default file due to disk selection required there (not exclusive of ipmi), basically the only difference is that guided_hard_disks
is not empty in the this new default file.
Validation is different for each architecture, in general for validation is not a good idea to have such a granularity that create those schedules differences, because the installed system are quite different, for the installer is a different case because the unified installer is quite the same for all archs except some particular differences sometimes.
In this ticket we can attempt to do the following:
- Unify hibernation_enabled hibernation_disabled in single data-driven test module.
- Deal with these two modules:
- console/validate_partition_table_via_blkid - console/validate_blockdevices
in the sense that we could also unify the way of checking the partition table when blkid is not available or if the blockdevice check can be done for all. Therefore, in summary, it is not about removing those two modules but trying to make them work for all.
Schedules for this test suite exists in schedule/yast/sle/guided_btrfs/
.
Acceptance criteria¶
AC1: Reduce yaml files for corresponding test suite over all the architectures.
AC2: Apply additional refactor to those 3 modules mentioned above and make them data-driven.
AC3: Clean-up unused files.
Updated by JERiveraMoya about 1 year ago
- Tags changed from qe-yam-mar-sprint to qe-yam-apr-sprint
Updated by JERiveraMoya 11 months ago
- Tags changed from qe-yam-apr-sprint to qe-yam-may-sprint
Updated by JERiveraMoya 10 months ago
- Tags changed from qe-yam-may-sprint to qe-yam-jan-sprint
Updated by JERiveraMoya 10 months ago
- Tags changed from qe-yam-jan-sprint to qe-yam-jun-sprint
Updated by JERiveraMoya 9 months ago
Feel free to send PR whenever you have the time.
Updated by zoecao 9 months ago
PR for this ticket, still not ready, need to double think about how to deal with the difference in ipmi:
For unknown reason, it loads
installation/partitioning/guided_setup/select_disks
instead of loading
installation/partitioning/guided_setup/accept_default_hard_disks_selection
https://openqa.suse.de/tests/14677702#
PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19553
Updated by JERiveraMoya 9 months ago
zoecao wrote in #note-12:
PR for this ticket, still not ready, need to double think about how to deal with the difference in ipmi:
For unknown reason, it loads
installation/partitioning/guided_setup/select_disks
instead of loading
installation/partitioning/guided_setup/accept_default_hard_disks_selection
https://openqa.suse.de/tests/14677702#PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19553
We need to exercise this part or selecting disk in the test coverage and I think in ipmi the workers are configured like that, we cannot change it, so I suggested in ticket description as possible solution:
For ipmi we might need to create another default file due to disk selection required there (not exclusive of ipmi), basically the only difference is that guided_hard_disks is not empty in the this new default file.
Updated by zoecao 9 months ago
JERiveraMoya wrote in #note-13:
zoecao wrote in #note-12:
PR for this ticket, still not ready, need to double think about how to deal with the difference in ipmi:
For unknown reason, it loads
installation/partitioning/guided_setup/select_disks
instead of loading
installation/partitioning/guided_setup/accept_default_hard_disks_selection
https://openqa.suse.de/tests/14677702#PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19553
We need to exercise this part or selecting disk in the test coverage and I think in ipmi the workers are configured like that, we cannot change it, so I suggested in ticket description as possible solution:
For ipmi we might need to create another default file due to disk selection required there (not exclusive of ipmi), basically the only difference is that guided_hard_disks is not empty in the this new default file.
Yes, I created a new default yaml file for ipmi, I forgot to replace it with the new one. This is the latest VR with the new ipmi default yaml file, but the result has no difference:
https://openqa.suse.de/tests/14677742#details
Updated by JERiveraMoya 9 months ago
zoecao wrote in #note-14:
JERiveraMoya wrote in #note-13:
zoecao wrote in #note-12:
PR for this ticket, still not ready, need to double think about how to deal with the difference in ipmi:
For unknown reason, it loads
installation/partitioning/guided_setup/select_disks
instead of loading
installation/partitioning/guided_setup/accept_default_hard_disks_selection
https://openqa.suse.de/tests/14677702#PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19553
We need to exercise this part or selecting disk in the test coverage and I think in ipmi the workers are configured like that, we cannot change it, so I suggested in ticket description as possible solution:
For ipmi we might need to create another default file due to disk selection required there (not exclusive of ipmi), basically the only difference is that guided_hard_disks is not empty in the this new default file.
Yes, I created a new default yaml file for ipmi, I forgot to replace it with the new one. This is the latest VR with the new ipmi default yaml file, but the result has no difference:
https://openqa.suse.de/tests/14677742#details
because we should use there installation/partitioning/guided_setup/accept_default_hard_disks_selection
Updated by zoecao 9 months ago
In schedule/yam/guided_btrfs.yaml, it loads
guided_partitioning:
- installation/partitioning/select_guided_setup
- installation/partitioning/guided_setup/accept_default_part_scheme
- installation/partitioning/guided_setup/accept_default_fs_options
And in ipmi default yaml schedule, it sets:
guided_open: []
guided_hard_disks:
- installation/partitioning/guided_setup/accept_default_hard_disks_selection
guided_scheme: []
guided_filesystem: []
And in other defaul yaml schedule file, it sets:
guided_partitioning: []
I guess this is the problem. Is there a way to insert installation/partitioning/guided_setup/accept_default_hard_disks_selection
to guided_partitioning:
Updated by zoecao 9 months ago
Updated the PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19553 CI failed, will check it.
And the latest [VR links]
It is really wired that the ipmi job always load select_disks
, I have already set ipmi default yaml as
guided_open: []
guided_hard_disks:
- installation/partitioning/guided_setup/accept_default_hard_disks_selection
guided_scheme: []
guided_filesystem: []
And schedule/yam/guided_btrfs.yaml as
guided_open:
- installation/partitioning/select_guided_setup
guided_scheme:
- installation/partitioning/guided_setup/accept_default_part_scheme
guided_filesystem:
- installation/partitioning/guided_setup/accept_default_fs_options
But it still loads installation/partitioning/guided_setup/select_disks
Updated by zoecao 9 months ago
The ipmi issue is fixed.
The PR and MR are ready for review now:
PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19553
MR: https://gitlab.suse.de/qe-yam/openqa-job-groups/-/merge_requests/237
Updated by JERiveraMoya 9 months ago
- Status changed from In Progress to Resolved