Project

General

Profile

Actions

action #95697

open

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

Added by jlausuch almost 3 years ago. Updated over 2 years 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.

Actions #2

Updated by pvorel almost 3 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.

Actions #3

Updated by pcervinka almost 3 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.

Actions #4

Updated by pcervinka almost 3 years ago

  • Priority changed from Normal to Low
Actions #5

Updated by okurz over 2 years ago

  • Category set to Enhancement to existing tests
Actions

Also available in: Atom PDF