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

temporalio / sdk-java / #431
72%
master: 75%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 18 Nov 2026 09:47PM UTC
Jobs 1
Files 955
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

18 Nov 2026 09:28PM UTC coverage: 71.813% (+0.01%) from 71.8%
#431

push

github

web-flow
Include inherited fields in service stub options toString (#3152)

* Include inherited fields in service stub options toString

WorkflowServiceStubsOptions.toString rendered only the five fields
declared on the subclass, silently dropping every field inherited from
ServiceStubsOptions. Target, TLS settings, timeouts, and headers were
absent from the output, which is exactly the connection information
wanted when diagnosing a client from logs.

OperatorServiceStubsOptions and CloudServiceStubsOptions had no
toString at all and fell back to Object.toString, logging as an
unreadable identity hash.

Extract the field rendering on ServiceStubsOptions into a
package-private toStringFields helper and have each subclass inline it
alongside its own fields. The helper is package-private because all
four classes live in io.temporal.serviceclient, so this adds no public
API surface.

Also include apiKeyProvided, which already participates in equals and
hashCode but was omitted from toString. The API key itself is held by a
metadata provider and is still never rendered.

Fixes #2148.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Render header names instead of header values in toString

Metadata.toString renders header values in the clear. The previous
commit propagated the inherited headers field into
WorkflowServiceStubsOptions, OperatorServiceStubsOptions, and
CloudServiceStubsOptions, which would have newly exposed any credential
supplied through setHeaders, such as a static Authorization header.

Render the header names only. This keeps the diagnostic signal that
matters when reading the output, whether a header is configured and
which ones, without printing what they contain.

Also add a regression test for the missing separator before
congestionInitialInterval in RpcRetryOptions.toString.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Add changelog entry for service stub options toString

Co-Authored-By: Claude Opus 5.5 <noreply@anthro... (continued)

8779 of 14371 branches covered (61.09%)

Branch coverage included in aggregate %.

5 of 6 new or added lines in 4 files covered. (83.33%)

892 existing lines in 36 files now uncovered.

34625 of 46069 relevant lines covered (75.16%)

0.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
66.35
0.76% temporal-serviceclient/src/main/java/io/temporal/serviceclient/ServiceStubsOptions.java

Coverage Regressions

Lines Coverage ∆ File
280
81.82
0.24% temporal-test-server/src/main/java/io/temporal/internal/testservice/TestWorkflowMutableStateImpl.java
118
85.02
0.15% temporal-test-server/src/main/java/io/temporal/internal/testservice/StateMachines.java
45
90.77
0.22% temporal-sdk/src/main/java/io/temporal/internal/sync/SyncWorkflowContext.java
42
92.42
0.04% temporal-sdk/src/main/java/io/temporal/internal/statemachines/WorkflowStateMachines.java
32
83.83
-1.7% temporal-sdk/src/main/java/io/temporal/common/interceptors/WorkflowOutboundCallsInterceptor.java
32
87.47
0.37% temporal-sdk/src/main/java/io/temporal/internal/sync/WorkflowInternal.java
30
38.89
-3.97% temporal-sdk/src/main/java/io/temporal/common/interceptors/WorkflowOutboundCallsInterceptorBase.java
30
33.33
0.0% temporal-testing/src/main/java/io/temporal/internal/sync/DummySyncWorkflowContext.java
25
57.89
2.69% temporal-sdk/src/main/java/io/temporal/workflow/NexusOperationOptions.java
24
75.76
0.0% temporal-sdk/src/main/java/io/temporal/client/WorkflowClient.java
21
78.63
-0.96% temporal-testing/src/main/java/io/temporal/testing/TestActivityEnvironmentInternal.java
19
59.06
1.66% temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java
18
70.69
1.03% temporal-sdk/src/main/java/io/temporal/workflow/ContinueAsNewOptions.java
14
45.16
13.91% temporal-sdk/src/main/java/io/temporal/workflow/MutableSideEffectOptions.java
14
45.16
13.91% temporal-sdk/src/main/java/io/temporal/workflow/SideEffectOptions.java
14
46.77
15.52% temporal-sdk/src/main/java/io/temporal/workflow/TimerOptions.java
13
80.1
-2.22% temporal-sdk/src/main/java/io/temporal/activity/LocalActivityOptions.java
13
86.93
0.17% temporal-sdk/src/main/java/io/temporal/internal/replay/ReplayWorkflowContextImpl.java
13
85.91
-1.78% temporal-sdk/src/main/java/io/temporal/workflow/ChildWorkflowOptions.java
12
89.39
0.16% temporal-sdk/src/main/java/io/temporal/internal/statemachines/VersionStateMachine.java
12
88.27
0.32% temporal-testing/src/main/java/io/temporal/testing/internal/TracingWorkerInterceptor.java
11
83.26
-2.53% temporal-sdk/src/main/java/io/temporal/activity/ActivityOptions.java
11
89.93
0.15% temporal-sdk/src/main/java/io/temporal/internal/statemachines/ChildWorkflowStateMachine.java
9
82.05
28.93% temporal-sdk/src/main/java/io/temporal/internal/sync/ExternalWorkflowInvocationHandler.java
8
81.13
1.54% temporal-sdk/src/main/java/io/temporal/internal/sync/ExternalWorkflowStubImpl.java
5
84.21
0.88% temporal-sdk/src/main/java/io/temporal/internal/statemachines/CancelExternalStateMachine.java
5
91.62
0.09% temporal-sdk/src/main/java/io/temporal/internal/statemachines/LocalActivityStateMachine.java
5
86.44
0.99% temporal-sdk/src/main/java/io/temporal/internal/sync/ChildWorkflowStubImpl.java
4
91.55
0.18% temporal-sdk/src/main/java/io/temporal/internal/statemachines/MutableSideEffectStateMachine.java
3
94.37
0.25% temporal-sdk/src/main/java/io/temporal/internal/statemachines/TimerStateMachine.java
2
91.73
-0.06% temporal-sdk/src/main/java/io/temporal/internal/replay/ReplayWorkflowExecutor.java
2
86.67
0.0% temporal-sdk/src/main/java/io/temporal/internal/replay/WorkflowMutableState.java
2
92.65
0.22% temporal-sdk/src/main/java/io/temporal/internal/statemachines/SideEffectStateMachine.java
2
88.89
-1.96% temporal-serviceclient/src/main/java/io/temporal/internal/payload/visitor/Traversal.java
1
97.34
0.04% temporal-sdk/src/main/java/io/temporal/internal/statemachines/ActivityStateMachine.java
1
93.33
1.03% temporal-sdk/src/main/java/io/temporal/internal/statemachines/StateMachineCommandUtils.java
Jobs
ID Job ID Ran Files Coverage
1 #431.1 18 Nov 2026 09:47PM UTC 955
71.81
Source Files on build #431
  • Tree
  • List 955
  • Changed 62
  • Source Changed 53
  • Coverage Changed 62
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 8b6d1511 on github
  • Prev Build on main
  • Next Build on main
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