Bun corpus source
- Position: 3995/4708
- File:
js/third_party/grpc-js/test-server.test.ts - Current state: unsupported module syntax during corpus preparation
- Upstream shape: 46 ordinary cases plus 3 explicit todo/skip cases; one ordinary case is nested under a todo suite
Scope
Port the broader grpc-js server contract exercised by Bun:
- server construction, binding validation/idempotence, credential matching, unbind, start, and shutdown lifecycle
- service registration/removal, original method-name handling, unregister, default handlers, and unregistered-service errors
- generic unary serialization, Echo service behavior, secure-context enable/disable, and compression across all RPC shapes
- client visibility after unbind and actionable bind/service/lifecycle failures
- preserve error cause, operation, target/address, method/path, lifecycle phase, and synthetic stack context
Tracked from #66. The connection-injection, drain cancellation, shutdown-stream, and NoCompress cases retain upstream todo/skip semantics unless the copied suite marks them executable.