action #95697
open[kernel][jeos][opensuse] Have a common way to add LTP repository for SLE and openSUSE
0%
Description
Currently, LTP tests in SLE use QA_HEAD_REPO variable
https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/kernel/install_ltp.pm
if (is_sle) {
add_qa_head_repo;
return;
}
Then, for openSUSE, the openSUSE tests, the condition is a bit complex:
my $arch = '';
$arch = "_PowerPC" if is_ppc64le();
$arch = "_zSystems" if is_s390x();
$arch = ((is_x86_64 || is_aarch64) ? "Tumbleweed" : "Factory") . $arch;
$repo = "https://download.opensuse.org/repositories/benchmark:/ltp:/devel/openSUSE_$arch/";
and even more complex after this PR.
The idea behind this ticket is to use the same function (e.g. add_qa_head_repo
) for ALL distri/versions using a single variable (e.g. QA_HEAD_REPO
) pointing to the repository to be used, instead of hardcoding the repository with several conditions in the code. This would affect all the kernel jobs (also for JeOS-kernel jobs) for TW and Leap in O3.
Updated by pvorel about 2 years ago
FYI QA_HEAD_REPO points to IBS repository which is used for many packages, not just LTP:
https://build.suse.de/package/show/QA:Head
But IMHO there is no such equivalent for OBS. There will have to be special variable just for LTP.
Updated by pcervinka about 2 years ago
There is QA_HEAD_REPO https://download.opensuse.org/repositories/devel:/openSUSE:/QA:/Tumbleweed/openSUSE_Tumbleweed/. We just need to link LTP to our devel repo + configure build targets.
Updated by okurz about 2 years ago
- Category set to Enhancement to existing tests