action #104568
open[qe-core] QAM maintenance tests: openQA to be able to test updates after some of them were rejected
0%
Description
Motivation¶
When testing of maintenance update identifies broken update and it is rejected, the tests will start failing as the repository will become empty.
That kills the testing for the day.
Acceptance criteria¶
- AC1: When the update is rejected, restarted tests will proceed like nothing happened and will test the remaining maintenance updates.
Suggestions¶
- Make openQA smarter itself to identify this kind of situation
- Modify the initial tests to gracefully skip empty repositories
Updated by vpelcak about 3 years ago
- Subject changed from Add ability of openQA to test updates after some of them were rejected to openQA to be able to test updates after some of them were rejected
Updated by okurz about 3 years ago
- Project changed from QA (public) to openQA Tests (public)
- Subject changed from openQA to be able to test updates after some of them were rejected to [qe-core] QAM maintenance tests: openQA to be able to test updates after some of them were rejected
- Category set to Enhancement to existing tests
This is actually something that can be solved just within os-autoinst-distri-opensuse, so changing project scope accordingly. Can you provide an example of a failing test which hit such a case? I am pretty sure that in whatever test module such tests fail the tests can be adapted. Do you think there is anything speaking against simply ignoring empty repositories? So instead of trying to install packages from a repository and fail simply don't treat it as an error, either by looking for installable packages and skipping if there are no packages or catch the error and skip.
I guess this needs a change in one of the following locations:
- https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/cae6400303ef59c58de143fbaf3050bf5e22457e/lib/qam.pm#L76
- https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/qam-updinstall/update_install.pm
- https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/installation/add_update_test_repo.pm
Updated by vpelcak about 3 years ago
I am absolutely alright with whatever solution as long as it works reliably and doesn't produce false positives and negatives.
Updated by hurhaj about 3 years ago
vpelcak wrote:
I am absolutely alright with whatever solution as long as it works reliably and doesn't produce false positives and negatives.
Empty repo can happen, for example by mistake of maint coordinator (as I saw recently). It's much less likely than the scenario of rejection and it can also be detected by maint team themselves, QEM when we see empty update, etc. I believe there's no need to check for every possible issue on every possible step of the process. Therefore I believe Oliver's proposal is absolutely fine.
Updated by osukup about 3 years ago
okurz wrote:
This is actually something that can be solved just within os-autoinst-distri-opensuse, so changing project scope accordingly. Can you provide an example of a failing test which hit such a case? I am pretty sure that in whatever test module such tests fail the tests can be adapted. Do you think there is anything speaking against simply ignoring empty repositories? So instead of trying to install packages from a repository and fail simply don't treat it as an error, either by looking for installable packages and skipping if there are no packages or catch the error and skip.
I guess this needs a change in one of the following locations:
- https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/cae6400303ef59c58de143fbaf3050bf5e22457e/lib/qam.pm#L76
- https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/qam-updinstall/update_install.pm
- https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/installation/add_update_test_repo.pm
I agree with @okurz .. it can be solved at test level adding common test if URL in MAINT_TEST_REPO/INCIDENT_REPO exist and then change vars on the fly or even better in main.pm on starting sequence of test
Updated by slo-gin about 2 years ago
This ticket was set to Normal priority but was not updated within the SLO period. Please consider picking up this ticket or just set the ticket to the next lower priority.
Updated by slo-gin 12 months ago
This ticket was set to Normal priority but was not updated within the SLO period. Please consider picking up this ticket or just set the ticket to the next lower priority.