Project

General

Profile

action #95697

[kernel][jeos][opensuse] Have a common way to add LTP repository for SLE and openSUSE

Added by jlausuch 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Enhancement to existing tests
Target version:
-
Start date:
2021-07-20
Due date:
% Done:

0%

Estimated time:
Difficulty:

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.

History

#2 Updated by pvorel 2 months 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.

#3 Updated by pcervinka 2 months 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.

#4 Updated by pcervinka 2 months ago

  • Priority changed from Normal to Low

#5 Updated by okurz about 2 months ago

  • Category set to Enhancement to existing tests

Also available in: Atom PDF