Skip to content

Commit c565392

Browse files
authored
Remove the inprocess harness (#4595)
The `inprocess` package was an N-validator in-process test harness that only built behind the `inprocess` build tag. Nothing in a normal build or in CI uses it, so this removes it along with everything #3642 added outside the package to support it. That takes out `inprocess/`, the tag-gated accessors in `app/app_inprocess.go`, and the in-process backend and its test in `integration_test/runner`. It also reverts the other two pieces #3642 added. The `evmHTTPServer`/`evmWSServer` fields on `App` existed only so the harness could stop the listeners at teardown, and production never read them. The runner's pluggable `execer` seam (`withExecer`, `backendPreparer`, `dockerExecer`) goes back to the plain `execCmd` docker path it replaced. It doesn't affect consensus or state: the only production change drops two write-only struct fields. With go1.27.3, `go vet` on `app` and the runner passes, `seid` builds, `go mod tidy` is clean and golangci-lint reports 0 issues on the runner. The SDK docs in sei-k8s-controller that named this harness are updated separately in sei-protocol/sei-k8s-controller#620.
1 parent 667d341 commit c565392

13 files changed

Lines changed: 6 additions & 1788 deletions

File tree

‎app/app.go‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,6 @@ type App struct {
428428

429429
forkInitializer func(sdk.Context)
430430

431-
// evmHTTPServer/evmWSServer hold the EVM JSON-RPC HTTP and WebSocket listeners
432-
// constructed in RegisterLocalServices so an embedding orchestrator (the
433-
// in-process harness) can Stop() them at teardown. Nil when the respective
434-
// listener is disabled. Production seid does not read these; its process exit
435-
// reaps the listeners.
436-
evmHTTPServer evmrpc.EVMServer
437-
evmWSServer evmrpc.EVMServer
438-
439431
txPrioritizer sdk.TxPrioritizer
440432

441433
benchmarkManager *benchmark.Manager
@@ -2540,7 +2532,6 @@ func (app *App) RegisterLocalServices(node client.LocalClient, txConfig client.T
25402532
if err != nil {
25412533
panic(err)
25422534
}
2543-
app.evmHTTPServer = evmHTTPServer
25442535
go func() {
25452536
<-app.Initialized()
25462537
if err := evmHTTPServer.Start(); err != nil {
@@ -2554,7 +2545,6 @@ func (app *App) RegisterLocalServices(node client.LocalClient, txConfig client.T
25542545
if err != nil {
25552546
panic(err)
25562547
}
2557-
app.evmWSServer = evmWSServer
25582548
go func() {
25592549
<-app.Initialized()
25602550
if err := evmWSServer.Start(); err != nil {

‎app/app_inprocess.go‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎inprocess/appoptions.go‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎inprocess/doc.go‎

Lines changed: 0 additions & 92 deletions
This file was deleted.

‎inprocess/genesis.go‎

Lines changed: 0 additions & 196 deletions
This file was deleted.

0 commit comments

Comments
 (0)