Java plugin tests fail if you have a JDK newer than 17 but != 21
Metadata
Current evaluation
Fixed by merged PR #986 (commit d36a93d5, 'fix(tests): don't fail if you have additional JREs'), making Java plugin tests tolerate extra installed JDKs like 25 instead of asserting JAVA_HOME.
Resolution: closed resolved
Reason: PR #986 'fix(tests): don't fail if you have additional JREs' was merged, landing as commit d36a93d5 in craft-parts and explicitly closing issue #985. The change alters tests/unit/plugins/test_java_plugin.py (seen in the file's history immediately after a3b9cdab 'feat: java plugin should set JAVA_HOME').
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #986 (commit d36a93d5, 'fix(tests): don't fail if you have additional JREs'), making Java plugin tests tolerate extra installed JDKs like 25 instead of asserting JAVA_HOME. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #986 (commit d36a93d5): Java plugin tests now tolerate additional installed JREs instead of failing on unexpected JAVA_HOME versions. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The test fails when a JDK newer than 17 but not 21 is installed, causing JAVA_HOME assertions to expect version 17. No fix or follow-up pull request was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Tracked externally via Jira ticket CRAFT-3997. Test failures occur when JDK versions newer than 17 but not 21 are installed, causing assertion errors in Java plugin tests. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix. Synced to Jira CRAFT-3997. No PRs merged to address the JDK version mismatch causing Java plugin test failures. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a documented fix or merge. The Java plugin test failure for JDK versions newer than 17 but not 21 remains unresolved, indicating the issue was likely abandoned or handled externally. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-parts#986
(confidence 97%)
Merged PR titled 'fix(tests): don't fail if you have additional JREs', commit 50af1b91/d36a93d5, which closes #985.
-
Caused By:
canonical/craft-parts#895
(confidence 55%)
Commit a3b9cdab 'feat: java plugin should set JAVA_HOME (#895)' introduced the JAVA_HOME-dependent test assertions that fail on unexpected JDK versions.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #986 fix(tests): don't fail if you have additional JREs | craft-parts | merged | Merged PR #986 as 50af1b91 (change d36a93d5), updating Java plugin tests to tolerate additional installed JREs and fixing #985. | |
| #1513 Make Java plugins work on Ubuntu 26.04 | craft-parts | open | Triaged: make Java plugin version-sensitive tests pass on Ubuntu 26.04 (Resolute, default OpenJDK 25). Tracked as CRAFT-5065 and fixed by merged PR #1530 (commit da6b596e), which enabled the Java plugin tests on resolute. |