apache / apache/juneau

Build failure on macOS and Java 17 in `org.apache.juneau.secret.macos.keychain.KeychainSecretStore_Test`

Open
#396 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
96
Forks
42
Avg merge
10d 16h
Merged PRs (30d)
12

Description

I get:
```
[INFO] Running org.apache.juneau.secret.macos.keychain.KeychainSecretStore_Test
password data for new item: [ERROR] Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.52 s <<< FAILURE! -- in org.apache.juneau.secret.macos.keychain.KeychainSecretStore_Test
[ERROR] org.apache.juneau.secret.macos.keychain.KeychainSecretStore_Test.a01_roundTrip -- Time elapsed: 15.06 s <<< ERROR!
java.lang.IllegalStateException: Timed out invoking '/usr/bin/security' after 15 seconds.
at org.apache.juneau.commons.utils.Shorts.isex(Shorts.java:1757)
at org.apache.juneau.secret.macos.keychain.KeychainSecretStore.run(KeychainSecretStore.java:225)
at org.apache.juneau.secret.macos.keychain.KeychainSecretStore.store(KeychainSecretStore.java:131)
at org.apache.juneau.secret.macos.keychain.KeychainSecretStore_Test.a01_roundTrip(KeychainSecretStore_Test.java:63)
```
Running:
```
mvn
```
Using:
```
openjdk version "17.0.20.1" 2026-08-18
OpenJDK Runtime Environment Homebrew (build 17.0.20.1+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.20.1+0, mixed mode, sharing)

Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5)
Maven home: /opt/homebrew/Cellar/maven/3.9.16/libexec
Java version: 17.0.20.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk@17/17.0.20.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "26.6.2", arch: "aarch64", family: "mac"

Darwin ****.local 25.6.0 Darwin Kernel Version 25.6.0: Fri Jul 31 19:17:26 PDT 2026; root:xnu-12377.161.14~5/RELEASE_ARM64_T6041 arm64

Docker version 29.7.2, build a7dcaa6
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running mvn on macOS and reproducing org.apache.juneau.secret.macos.keychain.KeychainSecretStore_Test.a01_roundTrip. Read KeychainSecretStore.java around run and store, plus Shorts.java around line 1757, to trace the /usr/bin/security timeout. Done means the test completes successfully without the 15-second timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, macos
Domain
security, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.