• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

maxlambrecht / java-spiffe / 40950717276
88%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2026 08:39PM UTC
Jobs 1
Files 51
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Oct 2026 07:46PM UTC coverage: 87.833% (+0.4%) from 87.416%
40950717276

push

github

maxlambrecht
fix(helper): fail KeyStoreHelper.run when the X.509 context watch fails

KeyStoreHelper's X.509 context watcher released the run latch and then
threw a WatcherException from onError. DefaultWorkloadApiClient invokes
watchers on gRPC executor threads, so the exception never reached the
thread blocked in run: run returned normally, as if the KeyStore had
been written. run(false) therefore reported success when the first
X.509 context could not be fetched or stored, and the CLI, which uses
run(true), exited with status 0 after a failed watch (for example
PERMISSION_DENIED from the Workload API, or an update that could not be
stored). The existing error test passed only because its stub calls
onError synchronously on the caller's thread.

Record the first error reported while run is waiting and throw it from
run after the latch is released, so run fails with
KeyStoreHelperException as documented and the CLI exits with status 1.
Errors arriving after run has returned are only logged; previously the
exception thrown from onError could also cancel the gRPC stream.

Fixes #488

Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com>

507 of 657 branches covered (77.17%)

Branch coverage included in aggregate %.

1897 of 2080 relevant lines covered (91.2%)

3.61 hits per line

Coverage Regressions

Lines Coverage ∆ File
23
73.78
1.7% io/spiffe/workloadapi/DefaultX509Source.java
19
77.42
1.09% io/spiffe/helper/keystore/KeyStoreHelper.java
4
94.58
0.75% io/spiffe/svid/jwtsvid/JwtSvid.java
3
92.93
0.0% io/spiffe/bundle/jwtbundle/JwtBundle.java
3
95.32
0.29% io/spiffe/workloadapi/CachedJwtSource.java
2
96.23
0.39% io/spiffe/workloadapi/DefaultJwtSource.java
Jobs
ID Job ID Ran Files Coverage
1 40950717276.1 29 Oct 2026 08:38PM UTC 51
87.83
GitHub Action Run
Source Files on build 40950717276
  • Tree
  • List 51
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40950717276
  • 49d736df on github
  • Prev Build on main (#31272071406)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc