Skip to content

Merge service files in sdk-tests shadow jar - #449

Merged
muhamadazmy merged 1 commit into
mainfrom
fix-sdk-tests-grpc-service-files
Sep 25, 2026
Merged

muhamadazmy merged 1 commit into
mainfrom
fix-sdk-tests-grpc-service-files

Conversation

@muhamadazmy

Copy link
Copy Markdown
Contributor

Problem

Since #448, RestateDeployer.waitForMetadataClusterBeingReady checks cluster state over gRPC. In the sdk-tests shadow jar, META-INF/services/io.grpc.NameResolverProvider from grpc-netty-shaded overwrote the one from grpc-core, so only UdsNameResolverProvider was registered. The default scheme became unix, and every channel to localhost:<port> failed:

Caused by: java.lang.IllegalArgumentException: Address types of NameResolver 'unix' for 'localhost:32769' not supported by transport
  at dev.restate.sdktesting.infra.RestateDeployer.waitForMetadataClusterBeingReady$lambda$0(RestateDeployer.kt:397)

As a result, every SDK test class, in every SDK and every config, timed out in beforeAll (e.g. https://github.com/restatedev/restate/actions/runs/36150936597). The e2e suites weren't affected because they run on the Gradle test classpath, not the fat jar.

Fix

Add mergeServiceFiles() to tasks.shadowJar. In the rebuilt jar, io.grpc.NameResolverProvider lists both DnsNameResolverProvider and UdsNameResolverProvider, and PickFirstLoadBalancerProvider is back in io.grpc.LoadBalancerProvider. Building a channel to localhost:<port> from the jar now works.

🤖 Generated with Claude Code

Since #448, RestateDeployer checks cluster state via gRPC. In the sdk-tests
fat jar, grpc-netty-shaded's META-INF/services/io.grpc.NameResolverProvider
overwrote grpc-core's, leaving only UdsNameResolverProvider. The default
scheme became 'unix', so building a channel to localhost:<port> failed with
"Address types of NameResolver 'unix' ... not supported by transport",
timing out deployment of every SDK test class.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Test Results

 6 files  ±0   6 suites  ±0   2m 25s ⏱️ -3s
45 tests ±0  45 ✅ ±0  0 💤 ±0  0 ❌ ±0 
95 runs  ±0  95 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9ef3240. ± Comparison against base commit e0a5f77.

@muhamadazmy
muhamadazmy merged commit edd926b into main Sep 25, 2026
4 checks passed
@muhamadazmy
muhamadazmy deleted the fix-sdk-tests-grpc-service-files branch September 25, 2026 17:32
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant