Bug 1219904 - [Build 20240213] openQA test fails in swing- conflicting java versions
Summary: [Build 20240213] openQA test fails in swing- conflicting java versions
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Java (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dominique Leuenberger
QA Contact: E-mail List
URL: https://openqa.opensuse.org/tests/393...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-14 08:34 UTC by Dominique Leuenberger
Modified: 2024-02-15 08:45 UTC (History)
0 users

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2024-02-14 08:34:51 UTC
## Observation

Findings:

* openSUSE isinstalled graphically, with Libreoffice(-base), which requires 'java'
* 'java' unspecified is currently suggested by the product to mean 'java-11-openjdk( (zypper info --suggests openSUSE-release) - thus preinstalled
* The tests triggers 'zypper in java java-devel'
* 'java-devel' is provided by all java-*-open(j9|openjdk) packages - here, we have no suggests marker, thus java-21-openj9 wins (alphabetically, with best version provides)
* the test forcibly sets java to the latest openjdk variant installed
=> we now have java pointing to java1--openjdk, and the java-devel being java-21-openj9 installed

And that's how the test fails.

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-toolkits@64bit fails in
[swing](https://openqa.opensuse.org/tests/3936992/modules/swing/steps/12)

## Test suite description
Maintainer: dheidler@suse.de Test GUI Toolkits


## Reproducible

Fails since (at least) Build [20240213](https://openqa.opensuse.org/tests/3936992) (current job)


## Expected result

Last good: [20240212](https://openqa.opensuse.org/tests/3935365) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=toolkits&version=Tumbleweed)
Comment 1 Dominique Leuenberger 2024-02-14 08:36:25 UTC
Mitigations:

openSUSE-release should suggest java-21-openjdk AND java-21-openjdk-devel, so users doing just zypper in java java-devel will get what we also use as default to build in TW (currently java-21-opendk)
Comment 2 Dominique Leuenberger 2024-02-15 08:45:13 UTC
Mitigation worked - confirmed by openQA:
  https://openqa.opensuse.org/tests/3940120#step/swing/11