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

temporalio / sdk-java / #388
68%
master: 75%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 16 Sep 2026 08:22PM UTC
Jobs 1
Files 946
Run time 3min
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

16 Sep 2026 08:01PM UTC coverage: 68.255% (-0.2%) from 68.408%
#388

push

github

web-flow
Add Google Cloud Run CloudRunIdPlugin (#3028)

* Add Google Cloud Run worker identity/deployment helper

Adds an experimental Google Cloud Run helper, mirroring the existing AWS
Lambda module's worker-ID behavior. Because Cloud Run runs a long-lived
container (unlike Lambda's per-invocation model), this is a metadata
helper rather than a worker wrapper: it reads the Cloud Run instance
metadata -- the instance id from the metadata server, plus the worker
pool/service name and revision from CLOUD_RUN_WORKER_POOL / CLOUD_RUN_REVISION
(worker pools) or K_SERVICE / K_REVISION (services) -- and derives a worker
identity and a WorkerDeploymentVersion to apply to a normal long-lived
worker. Covers both Cloud Run worker pools and services.

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

* Set worker versioning behavior to PINNED in the Cloud Run worker apply

The worker-side apply helper enabled versioning and set the deployment
version but left the default versioning behavior unset, so a versioned
worker with a plain (un-annotated) workflow failed to register. Default it
to PINNED; a per-workflow versioning behavior still takes precedence.

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

* Add unit tests for GoogleCloudRunMetadata

Cover the Cloud Run metadata helper: environment-variable precedence
(CLOUD_RUN_WORKER_POOL over K_SERVICE, CLOUD_RUN_REVISION over
K_REVISION), worker identity fallbacks, WorkerDeploymentVersion mapping
and its empty name/revision error, the metadata HTTP request
(Metadata-Flavor: Google header, body trimming, non-200 and unreachable
errors), and the applyTo(...) methods (client identity, and PINNED
worker deployment versioning).

The metadata request is served by an in-process com.sun.net.httpserver
HttpServer and the environment lookup is injected through a new
package-private fetch(String, Duration, Function) test seam, so the
tests touch neither the network nor the real process environment. The
seam is not p... (continued)

7836 of 13628 branches covered (57.5%)

Branch coverage included in aggregate %.

0 of 71 new or added lines in 2 files covered. (0.0%)

17 existing lines in 7 files now uncovered.

31829 of 44485 relevant lines covered (71.55%)

0.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
48
0.0
contrib/temporal-gcp-cloud-run-id/src/main/java/io/temporal/gcp/cloudrun/id/GoogleCloudRunMetadata.java
23
0.0
contrib/temporal-gcp-cloud-run-id/src/main/java/io/temporal/gcp/cloudrun/id/CloudRunIdPlugin.java

Coverage Regressions

Lines Coverage ∆ File
6
56.1
-14.63% temporal-sdk/src/main/java/io/temporal/client/ActivityCompletionException.java
4
85.21
-4.14% temporal-sdk/src/main/java/io/temporal/internal/worker/ShutdownManager.java
2
66.67
-33.33% temporal-sdk/src/main/java/io/temporal/client/ActivityCanceledException.java
2
88.89
-1.96% temporal-sdk/src/main/java/io/temporal/internal/payload/visitor/Traversal.java
1
65.14
-0.92% temporal-sdk/src/main/java/io/temporal/internal/client/external/ManualActivityCompletionClientImpl.java
1
89.91
-1.83% temporal-sdk/src/main/java/io/temporal/internal/sync/CancellationScopeImpl.java
1
88.06
-1.12% temporal-sdk/src/main/java/io/temporal/internal/worker/AsyncPoller.java
Jobs
ID Job ID Ran Files Coverage
1 #388.1 16 Sep 2026 08:22PM UTC 946
68.25
Source Files on build #388
  • Tree
  • List 946
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 827a5b84 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