action #164877
closed[qe-core]test fails in validate_packages_and_patterns
100%
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
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
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
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