vxpu: remove fake gRPC server bloat in Go CLI and router tests #980
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 345 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.350
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #980"
general
weight: 0.35
justinsb
vxpu/cli: remove fake gRPC server tests in favor of real e2e
Hand-rolled mock gRPC servers in
vxpu/cmd/vxputests duplicated behavior already exercised by real end-to-end tests and added maintenance overhead whenever proto fields or router interfaces changed.Remove all hand-rolled fake gRPC servers from
vxpu/cmd/vxputests:cliFakeExecutor,localEndpointAgent,captureEngineServer, andTestCmdAsk_ShipsVerifyGraphAndDraftPlanThroughRouterinspeculation_cli_test.go. Keep a direct table-drivenTestCmdAsk_Validationtest with no gRPC server and runTestRouterSeparateDraftSpeculation_CPUand_GPUagainst the realagent.NewServer,router.NewServer, and Pythonvxpu.server.cliVerifyFakeExecutorand the fake-executorTestCmdPlanVerifyinplan_verify_test.go, keeping only direct table-driven flag validation inTestCmdPlanVerify_Validation. Real executor equivalence is already covered byvxpu/pkg/plannerequivalence tests.mockCompilerService,mockAgentServer,startMockCompilerAgent,TestCmdPlanPackages_BuildWithMTLS,TestCmdPlanPackages_BuildThroughMockAgent, andTestCmdPlanPackages_MissingPackageFileFailsinplan_test.go, which duplicateTestCmdPlanPackages_BuildThroughServiceandap-e2e-vxpumTLS suites. Seed compile failures directly viastore.RecordCompileFailureinTestCmdPlanPackagesWithFailures.vxpu/router: remove redundant fake gRPC server tests covered by e2e
Several router tests spun up hand-rolled fake
ExecutorServerandAgentServerimplementations to check mTLS handshakes,GetVocabforwarding,GenerateandExecutestreaming, stats recording, basic golden pass/fail checks, and proto field forwarding that real end-to-end tests already verify.Remove the redundant fake-server tests while preserving concurrency, reconciliation, fault-injection, and direct no-server validation tests:
mtls_test.go(covered byvxpu/tests/e2e/pki_test.goandvxpu/pkg/mtlstests).vocab_test.go(covered byvxpu/tests/e2e/e2e_test.go), keeping the no-serverFailedPreconditioncheck alongsideTestNewSession_NoModelLoadedinrouter_test.go.fakeExecutorstreaming tests anddescribingFakeExecutorfromrouter_test.go.TestStats_RecordsNamedModelRequestsfromstats_test.go, keeping the no-server buffer and backoff tests.golden_test.go, keeping concurrency and model-standing tests.catalog_test.goand replaceTestLoadModel_GoalStoredOnInstanceDesiredwith direct no-serverTestGoalValidation_RefusesInvalidAndUnsupported.Fixes #978