Skip to content

🤖 tests: move the Effect bridge probe router into its test and drop the benchmark - #4484

Merged
ThomasK33 merged 1 commit into
mainfrom
test-audit/ws2-effect-probe
Sep 25, 2026
Merged

ThomasK33 merged 1 commit into
mainfrom
test-audit/ws2-effect-probe

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves the effectBridge probe router out of production code into its only consumer, effectBridge.test.ts, and deletes the informational benchmark (crosscutting candidate #5).

Background

src/node/orpc/effectBridge.ts (137 lines) was never mounted on the production router; its header said only the test uses it. buildOrpcEffectContext in effectContext.ts was labelled a test helper. The benchmark ran 4,400 calls on every CI run and asserted only that the elapsed times were above 0.

Implementation

  • Probe procedures (pinnedCount, setPinned, scopedHold, echoAsync) now live in the test file. echoEffect existed only for the benchmark and is gone.
  • The test builds its Effect context with Context.make(MemoryMeta, service); buildOrpcEffectContext and the now-unused MemoryMeta re-export are deleted from effectContext.ts.
  • Kept, unchanged in substance: service injection via "effect/context", Effect Schema input validation, Schema.TaggedError → defined oRPC error, abort → fiber interruption with scope finalizers, auth middleware over handlerGen procedures, and the OpenAPI converter regression for createOpenAPIGenerator. These pin @orpc/experimental-effect behavior that router.ts's handlerGen handlers rely on.

Validation

bun test src/node/orpc/effectBridge.test.ts (8 pass); make static-check on the stack top.

Stack: 2/5.

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $4.45

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T10:41:01.955650Z 606bf96 New commits
🔒 Security Review ✅ Completed 2026-09-25T10:42:15.633017Z 606bf96 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThomasK33
ThomasK33 added this pull request to stack #4488 September 25, 2026 08:57
@ThomasK33 ThomasK33 changed the title tests: move the Effect bridge probe router into its test and drop the benchmark 🤖 tests: move the Effect bridge probe router into its test and drop the benchmark Sep 25, 2026
@ThomasK33
ThomasK33 added this pull request to the merge queue Sep 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because a pull request earlier in the stack was removed Sep 25, 2026
@ThomasK33
ThomasK33 added this pull request to the merge queue Sep 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 25, 2026
Base automatically changed from test-audit/ws2-dead-exports to main September 25, 2026 10:39
@ThomasK33
ThomasK33 force-pushed the test-audit/ws2-effect-probe branch from 81c1ca5 to 606bf96 Compare September 25, 2026 10:39
@ThomasK33
ThomasK33 added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 8f6bd2b Sep 25, 2026
30 of 31 checks passed
@ThomasK33
ThomasK33 deleted the test-audit/ws2-effect-probe branch September 25, 2026 11:49
yermakoffivan pushed a commit to yermakoffivan/mux that referenced this pull request Sep 25, 2026
…on sets, assisted matchers, workflow transitions) (coder#4483)

## Summary

Removes four production exports that only tests called, from the
test-audit follow-up campaign (WS2, crosscutting candidates coder#1–coder#4).
Behavior-preserving: no production caller changes.

## Removed

| Symbol | Why it was dead | Tests |
| --- | --- | --- |
| `isCopilotRoutableModel` (`copilot/modelRouting.ts`) | Always returned
`true`; no caller since coder#3104 | 2 tests restating the constant deleted |
| `gatherInstructionSets` (`instructionFiles.ts`) | No caller since
coder#439; `systemMessage.ts` calls `readInstructionSet` directly | 4 tests
deleted; `readInstructionSet` tests already cover null, local files,
scope and `projectName` |
| `findAssistedMatch`, `hunkMatchesAssisted` (`assistedReview.ts`) |
Replaced by the `*Candidate*` versions in coder#3370; only tests called them
| Range overlap, deletion fallback (old-side span), rename (`oldPath`),
first-match index and no-match cases moved onto
`findAssistedCandidateMatch`, the function `ReviewPanel` calls.
`hunkMatchesAssistedCandidate` is now module-private |
| `WorkflowRunStatusTransitionSchema` + its table
(`orpc/schemas/workflow.ts`) | Never enforced; coder#4089 kept it only
because a test imported it. Real enforcement lives in
`WorkflowService`/`WorkflowRunStore` (tested in
`WorkflowRunStore.test.ts`) and follows different rules | "rejects
impossible status transitions" deleted |

## Validation

- Mutation check: disabling the deletion fallback and the `oldPath`
match in `hunkMatchesPathAndRange` fails the two moved tests.
- `bun test src/common/utils/review/ src/common/utils/copilot/
src/node/utils/main/instructionFiles.test.ts
src/common/orpc/schemas/workflow.test.ts
src/node/services/tools/review_pane.test.ts`
- `make static-check` on the stack top.

Stack: 1/5 (coder#4483 → coder#4484 → coder#4485 → coder#4486 → coder#4487).
---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking:
`high` • Cost: `$4.45`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high
costs=4.45 -->
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