[MONGOCRYPT-593] Unskip `test-java` tasks needing JDK install Created: 12/Sep/23  Updated: 06/Dec/23  Resolved: 06/Dec/23

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Task Priority: Unknown
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Binding Changes: Not Needed

 Description   

Scope

  • Unskip test-java tasks failing to find JDK.

Background & Motivation

Some test-java tasks fail to locate the JDK (example):

[2023/09/05 13:04:41.741] + JAVA_HOME=/opt/java/jdk8
[2023/09/05 13:04:41.741] + ./gradlew -version
[2023/09/05 13:04:41.745] ERROR: JAVA_HOME is set to an invalid directory: /opt/java/jdk8
[2023/09/05 13:04:41.745] Please set the JAVA_HOME variable in your environment to match the
[2023/09/05 13:04:41.745] location of your Java installation.

The affected distros do not appear to have an install of the JDK:

  • "Debian 11.0" (distro: debian11-large).
  • "Ubuntu 20.04 arm64" (distro: ubuntu2004-arm64-small).
  • "Ubuntu 22.04 arm64" (distro: ubuntu2204-arm64-small).

Once the distros have an install of the JDK available, unskip the tests. Search libmongocrypt source for this ticket ID to find the tests to unskip.



 Comments   
Comment by Githook User [ 06/Dec/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-593 Unskip `test-java` task on `Debian 11.0` (#712)

  • remove `test-java` tasks on arm64 variants

arm64 hosts are not expected to include JDK. Refer: BUILD-17899

Comment by Cloud GitHub Webhooks [ 06/Dec/23 ]

kevinAlbs merged a pull request (MONGOCRYPT-593 Unskip `test-java` task on `Debian 11.0`) into the following branch:
master: a90b9990e38ad2bd19dc668c837f4e8839169bc0

Comment by Githook User [ 12/Sep/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-593 Skip or remove `test-java` tasks failing to find JDK. (#699)

  • remove `test-java` task on SLES 12

There is a passing `test-java` task on SLES 15.
Branch: r1.8
https://github.com/mongodb/libmongocrypt/commit/0306c2ec95c51694e71e9313c5d2d62be62b8374

Comment by Githook User [ 12/Sep/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-593 Skip or remove `test-java` tasks failing to find JDK. (#699)

  • remove `test-java` task on SLES 12

There is a passing `test-java` task on SLES 15.
Branch: master
https://github.com/mongodb/libmongocrypt/commit/dd9e972177825eb73679d35ee6301a06397db1c3

Comment by Cloud GitHub Webhooks [ 12/Sep/23 ]

kevinAlbs merged a pull request (MONGOCRYPT-593 Skip or remove `test-java` tasks failing to find JDK.) into the following branch:
master: dd9e972177825eb73679d35ee6301a06397db1c3

Generated at Thu Feb 08 09:09:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.