Repository navigation
Backend gRPC: server, client and OTLP/gRPC export - #6371
shai-almog wants to merge 14 commits into
Conversation
…ure-Java HPACK First layer of backend gRPC support. GrpcFrames reassembles length-prefixed messages from arbitrary chunks and bounds size before allocating and after gzip inflation; GrpcMetadata handles grpc-timeout, grpc-message and -bin metadata. Hpack (JavaSE arm only) is the RFC 7541 codec the dev-loop HTTP/2 server and client will use; tested against the Appendix C vectors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ver gRPC HTTP/2 streaming streams go to a GrpcServer that the generated wiring builds from @GrpcService beans. GrpcChannel calls gRPC services over libcurl (native) or a pure-Java HTTP/2 client (JavaSE). gRPC-Web is served over HTTP/1.1. cn1:generate-grpc -Dcn1.grpc.target=backend writes service interfaces and clients. cn1.otel.protocol=grpc exports traces and metrics to port 4317. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…yable statuses, exact content type - A stalled peer no longer blocks a call past its deadline (JavaSE sets the socket timeout per read; native bounds the stream's read timeout). - OtlpGrpc retries CANCELLED/ABORTED/OUT_OF_RANGE/DATA_LOSS as the OTLP spec asks, and never lets a runtime exception unwind the exporter. - "No deadline" is its own flag rather than a negative nanoTime. - isGrpc no longer matches application/grpc-web or application/grpcfoo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a quiet stream without one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stream errors, documented limits - BackendGrpc names a nested message's codec Outer$InnerProtoCodec, the class ProtoMessageAnnotationProcessor actually writes, and reads Iterator<? extends Q> / StreamObserver<? super R>. - A failed stream rethrows its status if asked again instead of ending quietly; the client deadline saturates instead of wrapping. - Web.parseHeaders gets its doc comment back. - The guide states the per-connection serialisation, the gRPC-Web header and cancellation limits, and closing a stream read only in part. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ADLINE_EXCEEDED Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macOS /bin/bash 3.2 treats "${arr[@]}" of an empty array as unbound under
set -u, so a local site build stopped before Hugo ran.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cs.yml does Without WEBSITE_BOOTSTRAP_CN1_SNAPSHOTS the Skin Designer compiled with the gate's JDK 8 and failed on 'invalid target release: 17' on every machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s is recorded Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloudflare Preview
|
|
Compared 288 screenshots: 288 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
Benchmark ResultsDetailed Performance Metrics
|
Native fidelity (Android, Material 3)54 pairs compared -- median 95.6%, worst 91.3% ( Distribution --
Geometry vs native (bbox offset / size ratio / center offset / corner radius) -- gated separately from the visual score
Side-by-side comparisons (worst first)
|
|
Compared 380 screenshots: 380 matched. |
|
Developer Guide build artifacts are available for download from this workflow run:
Developer Guide quality checks: |












































































































Summary
Backend gRPC as server and client, plus OTLP export over gRPC.
com.codename1.backend.grpc): 5-byte framing with gzip, status/metadata (-bin),grpc-timeoutdeadlines enforced on server and client, all four RPC shapes, and gRPC-Web over HTTP/1.1 for the existing app-sideGrpcWebclient.BackendGrpcprocessor generates dispatch glue for@GrpcServiceclasses and client stubs with no reflection;generate-grpcgains a backend target that acceptsstream.cn1.otel.protocol=grpcreusesOtlpSchemapayloads; retryable statuses follow the OTLP spec.Backend-gRPC.asciidoc, with snippets from compiled demo sources.website-docs.ymldoes, under bash 3.2, and restores the files it rewrites.Known limits (documented in the guide)
Verification
scripts/pre-push-gates.sh --fullclean (SpotBugs/PMD/Checkstyle zero, guide checks, Hugo site build).GrpcEndToEndTest(14 run, 2 skipped) andBackendBeansTestgRPC cases pass.🤖 Generated with Claude Code