Project

General

Profile

Actions

action #154747

open

openQA Project - coordination #127031: [saga][epic] openQA for SUSE customers

openQA Project - coordination #127910: [epic] openQA in SLE modules

[qe-core] Complete list of os-autoinst-distri-opensuse dependencies not currently in current SLE and also not provided already by openQA itself

Added by okurz 3 months ago. Updated 3 months ago.

Status:
Workable
Priority:
Normal
Assignee:
-
Category:
New test
Target version:
Start date:
2023-03-01
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Motivation

As discussed between szarate and okurz based on request from hsehic 2024-02-01.
As the parent project about QAaaS progresses we should assess our expected efforts and risks about "openQA in SLE" for further planning. As according to hsehic openQA needs to be provided from a pure SLE, i.e. no PackageHub, but also os-autoinst-distri-opensuse provides potential value to customers, we need to know the list of os-autoinst-distri-opensuse dependencies that not currently in current SLE and also not provided already by openQA itself.

Acceptance criteria

  • AC1: All dependency packages for os-autoinst-distri-opensuse that are currently not in current SLE and not already pulled in by openQA are known

Suggestions

  • Take a look into https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/os-autoinst-distri-opensuse-deps.spec where package dependencies are provided
  • Maybe the easiest is to run a SLE container, enable packagehub, install openQA, and then install os-autoinst-distri-opensuse-deps and record the list of packages that are pulled in. For that list check the source of where the package is installed from to find out packages that are pulled in from non-SLE repos, i.e. packagehub
  • Alternatively do not enable packagehub and just see what zypper fails to resolve when trying to install

Further details

  • "current SLE in development" at time of writing 2024-02 is SLE15 SP6

Related issues 1 (0 open1 closed)

Copied from openQA Project - action #154723: Complete list of openQA+os-autoinst+dependencies packages not currently in current SLE in development is known size:MResolvedjbaier_cz2023-04-26

Actions
Actions #1

Updated by okurz 3 months ago

  • Copied from action #154723: Complete list of openQA+os-autoinst+dependencies packages not currently in current SLE in development is known size:M added
Actions #2

Updated by okurz 3 months ago

  • Target version changed from Ready to QE-Core: Ready
Actions #3

Updated by szarate 3 months ago

  • Tags changed from qaaas to qaaas, qe-core-march-sprint
  • Status changed from New to Workable
  • Assignee deleted (szarate)

After running @jbaier_cz's script, I got:

SUSE:SLE-15:Update/perl-Data-Dump                                      1.23                    -
SUSE:SLE-15:Update/perl-DateTime                                       1.45                    -
SUSE:SLE-15:Update/perl-File-Path                                      2.150000                -
SUSE:SLE-15:Update/perl-File-Temp                                      0.2304                  -
SUSE:SLE-15:Update/perl-List-MoreUtils                                 0.428                   -
SUSE:SLE-15:Update/perl-Net-IP                                         1.26                    -
SUSE:SLE-15:Update/perl-NetAddr-IP                                     4.079                   -
SUSE:SLE-15:Update/perl-Regexp-Common                                  2017060201              -
SUSE:SLE-15:Update/perl-Tie-IxHash                                     1.23                    -
SUSE:SLE-15:Update/perl-XML-LibXML                                     2.0132                  -
SUSE:SLE-15:Update/perl-XML-Simple                                     2.24                    -
SUSE:SLE-15:Update/perl-XML-Writer                                     0.625                   -
openSUSE:Backports:SLE-15-SP5:Update/os-autoinst-distri-opensuse-deps  1.1621516512.d2de45c99  -
openSUSE:Backports:SLE-15-SP5:Update/perl-Code-DRY                     0.10                    -
openSUSE:Backports:SLE-15-SP5:Update/perl-Config-Tiny                  2.28                    -
openSUSE:Backports:SLE-15-SP5:Update/perl-Perl-Critic-Freenode         0.033                   -
openSUSE:Backports:SLE-15-SP5:Update/perl-Selenium-Remote-Driver       1.49                    -
openSUSE:Backports:SLE-15-SP5:Update/perl-SemVer                       0.10.0                  -
openSUSE:Backports:SLE-15-SP5:Update/perl-Test-Assert                  0.0504                  -
openSUSE:Backports:SLE-15-SP5:Update/perl-YAML-PP                      0.035                   -
openSUSE:Backports:SLE-15-SP5:Update/perl-version                      0.9929                  -

obviously some info is missing as we want to check also the packages that aren't already provided by openQA and/or os-autoinst itself, for the most part the list looks ok, but somebody needs to double check it

--- obs-check-package-origin    2024-02-09 09:24:31.135762594 +0000
+++ obs-check-package-origin-modified   2024-02-09 09:12:06.796292713 +0000
@@ -26,7 +26,7 @@
 }

 init_check() {
-    which yq &> /dev/null || {
+    command yq &> /dev/null || {
         error "yq command is missing"
         exit 100
     }
@@ -71,7 +71,16 @@
     debug "Getting build requirements from '$1.spec'"
     tmpfile="$(mktemp)"
     $osc cat devel:openQA "$1" _service:obs_scm:"$1.spec" > "$tmpfile"
-    rpmspec -q -D "sysusers_requires BuildRequires: sysuser-tools" --buildrequires "$tmpfile" \
+    debug "Getting buildrequires for $1"
+    get_requires
+    debug "Getting requires for $1"
+    get_requires '--requires'
+    rm "$tmpfile"
+}
+
+get_requires(){
+type="${1:-"--buildrequires"}"
+    rpmspec -q -D "sysusers_requires BuildRequires: sysuser-tools" ${type} "$tmpfile" \
         | sort -u \
         | while read -r; do
             package="$(get_package_name "$REPLY")"
@@ -81,7 +90,6 @@
             }
             echo "$package"
         done
-    rm "$tmpfile"
 }

 get_codestream() {
@@ -150,5 +158,5 @@
 }

 init_check
-list_versions os-autoinst
-list_versions openQA
+#list_versions os-autoinst
+list_versions os-autoinst-distri-opensuse-deps

See also https://suse.slack.com/archives/C02CANHLANP/p1707412468683349

Actions #4

Updated by szarate 3 months ago

  • Priority changed from High to Normal
  • Start date changed from 2023-04-26 to 2023-03-01
Actions

Also available in: Atom PDF