Bug 1219904

Summary: [Build 20240213] openQA test fails in swing- conflicting java versions
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: JavaAssignee: Dominique Leuenberger <dimstar>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.opensuse.org/tests/3936992/modules/swing/steps/12
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

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