Project

General

Profile

Actions

action #164877

closed

[qe-core]test fails in validate_packages_and_patterns

Added by mgrifalconi 5 months ago. Updated 10 days ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2024-08-02
Due date:
% Done:

100%

Estimated time:
Difficulty:

Description

Observation

openQA test in scenario sle-15-SP4-Server-DVD-Incidents-x86_64-mau-extratests-zypper@64bit fails in
validate_packages_and_patterns

Test suite description

Testsuite maintained at https://gitlab.suse.de/qa-maintenance/qam-openqa-yml. Run console tests against aggregated test repo

Reproducible

Fails since (at least) Build :34936:sles-ltss-release

Expected result

Last good: :34959:ca-certificates-mozilla (or more recent)

Further details

Always latest result in this scenario: latest


Related issues 1 (1 open0 closed)

Related to openQA Tests (public) - action #174076: [qe-core] test fails in validate_packages_and_patterns - Package 'sles-ltss-release' not found in LTSS or not preinstalledFeedbackdzedro2024-12-11

Actions
Actions #1

Updated by mgrifalconi 5 months ago

Some context:
We are running this code https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/console/validate_packages_and_patterns.pm#L32-L37
which in turn uses this library https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/c571c397b57dd40ed8ee6e1c867951ec857d94de/lib/repo_tools.pm#L606-L632

Basically we are making sure sles-ltss-release is installed in the machine under test by calling zypper search and grepping for the repo name, in this case LTSS.
This is all great in regular situation, like https://openqa.suse.de/tests/15064968/logfile?filename=serial_terminal.txt

# zypper --quiet --non-interactive se -n --installed-only -t package --match-exact --details sles-ltss-release | grep LTSS; echo 2znPe-$?-
i+ | sles-ltss-release | package | 15.4-150400.13.5.3 | x86_64 | SLE-Product-SLES15-SP4-LTSS-Updates

But fails when sles-ltss-release is being updated: https://openqa.suse.de/tests/15063842#step/validate_packages_and_patterns/20

This happens because the repo name is a temporary name for the package being under test:
TEST-0 in incident test https://openqa.suse.de/tests/15065708/logfile?filename=serial_terminal.txt
http-download.suse.de-af68f07b in aggregate tests https://openqa.suse.de/tests/15063842/logfile?filename=serial_terminal.txt

Started the discussion on slack for ideas https://suse.slack.com/archives/C02CANHLANP/p1722592438505449

Actions #2

Updated by mgrifalconi 4 months ago

  • Priority changed from Normal to Low

Not a problem anymore since update is approved, but will come again on next update

Actions #3

Updated by mgrifalconi 11 days ago

  • Assignee deleted (mgrifalconi)
Actions #4

Updated by mgrifalconi 11 days ago

  • Status changed from In Progress to Workable
Actions #5

Updated by dzedro 11 days ago

  • Status changed from Workable to In Progress
  • Assignee set to dzedro
Actions #6

Updated by dzedro 11 days ago

  • Related to action #174076: [qe-core] test fails in validate_packages_and_patterns - Package 'sles-ltss-release' not found in LTSS or not preinstalled added
Actions #8

Updated by dzedro 10 days ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF