Skip to content

Remove Mockshell dependency from JSONRPC Functional Tests#278

Closed
smanes0213 wants to merge 5 commits into
masterfrom
development/Remove_MockShell_Dependency
Closed

Remove Mockshell dependency from JSONRPC Functional Tests#278
smanes0213 wants to merge 5 commits into
masterfrom
development/Remove_MockShell_Dependency

Conversation

@smanes0213

Copy link
Copy Markdown
Contributor

Replace the local mock shell based JSON-RPC test setup with Thunder test runtime integration so tests run against real in-process PluginHost behavior. JsonRpcServer now initializes ThunderTestRuntime, acquires a real IShell from the embedded host, and attaches JSON-RPC dispatch through that shell.

@smanes0213 smanes0213 requested a review from Copilot June 9, 2026 09:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request replaces the JSON-RPC functional test server’s local MockShell stub with an embedded Thunder PluginHost via Thunder::TestCore::ThunderTestRuntime, so JSON-RPC dispatch runs against a real in-process IShell/PluginHost environment.

Changes:

  • Removed the MockShell-based setup and initialized ThunderTestRuntime in JsonRpcServer, attaching JSON-RPC to a real IShell.
  • Updated build configuration to enable Thunder’s test runtime and link JSON-RPC functional tests against the required Thunder test support library.
  • Updated CI workflow packages/configuration to support building the embedded runtime during functional tests.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/FunctionalTests/README.md Updates JSON-RPC functional test architecture documentation to describe using ThunderTestRuntime/real IShell.
tests/FunctionalTests/jsonrpc/MockShell.h Removes the IShell stub previously used by the JSON-RPC functional tests.
tests/FunctionalTests/jsonrpc/JsonRpcServer.h Adds ThunderTestRuntime and stores a real IShell proxy instead of MockShell.
tests/FunctionalTests/jsonrpc/JsonRpcServer.cpp Initializes/deinitializes the embedded Thunder runtime and attaches/detaches JSON-RPC using a real shell.
tests/FunctionalTests/jsonrpc/CMakeLists.txt Links JSON-RPC functional tests to thunder_test_support needed for the test runtime.
tests/FunctionalTests/external/thunder/CMakeLists.txt Enables Thunder’s test runtime option when JSON-RPC tests are enabled.
.github/workflows/ProxyStubFunctionalTests.yml Installs additional dependencies and enables test runtime in the workflow configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/FunctionalTests/README.md Outdated
@smanes0213 smanes0213 marked this pull request as ready for review June 15, 2026 09:19
Copilot AI review requested due to automatic review settings June 15, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread tests/FunctionalTests/jsonrpc/CMakeLists.txt
@smanes0213

Copy link
Copy Markdown
Contributor Author

Closing this pull request as it is covered in PR

@smanes0213 smanes0213 closed this Jun 16, 2026
@smanes0213 smanes0213 deleted the development/Remove_MockShell_Dependency branch June 16, 2026 08:49
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 16, 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.

2 participants