Skip to content

test: cover raw RPC exposure across hosted runtimes - #1152

Merged
MichalCz merged 1 commit into
develfrom
test/rpc-exposure-runtimes
Nov 11, 2026
Merged

MichalCz merged 1 commit into
develfrom
test/rpc-exposure-runtimes

Conversation

@MichalCz

Copy link
Copy Markdown
Member

Summary

  • Add real hosted POST /add RPC exposure scenarios for Python, Node, and the Bun-selected runtime.
  • Use the existing raw JavaScript api.create API (no op or new application API), with one shared JavaScript fixture packaged for Node and Bun.
  • Exercise a Python ASGI application, including regression coverage for chunked request bodies and disconnects.
  • Document raw router-derived method aliases and complete JavaScript/Python examples, with the matching generated documentation page.

Validation

  • NO_HOST=true SCRAMJET_SPAWN_TS=1 node scripts/run-bdd.js --mode=docker -- features/appcontext/APPCONTEXT-003-rpc-add.feature --format pretty — passed: 3 scenarios, 63 steps, 4 hooks; Python, Node, and Bun all executed. No leaked repository processes reported.
  • node scripts/run-ava.js scripts/test/appcontext-rpc-fixture.spec.js — passed: 1 test verifying shared JavaScript source and runtime engine metadata.
  • python3 -m unittest scripts.test.appcontext_rpc_fixture_test — passed: 3 tests covering body chunks, an empty final request event, and disconnect handling.
  • Extracted Python documentation example — passed the same three request-event cases.
  • Updated generated documentation page matches targeted temporary generator output byte-for-byte; git diff --check passed.

Limitations

  • The current hosted Bun wrapper delegates sequence execution to Node. This covers the Bun-selected hosted path, not native Bun handler execution.
  • Per the agreed scope, these tests use existing api.create rather than adding this.app or bare TRouter mounting support.
  • Repository-wide npm run docs:check still fails on pre-existing drift in unrelated generated pages; only this change's corresponding page was synchronized.

@MichalCz
MichalCz merged commit f5c39bc into devel Nov 11, 2026
7 checks passed
@MichalCz
MichalCz deleted the test/rpc-exposure-runtimes branch November 11, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant