Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 3:53 AM ET / 07:53 UTC. ClawSweeper reviewWhat this changesThe PR replaces three repeated length-based last-entry assertions in the node-host runner test with direct Merge readiness✅ Ready for maintainer review Keep open: this protected maintainer PR is a coherent, behavior-preserving test-only lint repair with no actionable correctness or security finding. Priority: P3 Review scores
Verification
How this fits togetherThe node-host runner persists the selected Gateway connection settings before creating a client. Its test mock captures that persisted configuration so context-path behavior can be checked after each connection scenario. flowchart LR
A[Node host options] --> B[Node host runner]
B --> C[Persisted Gateway configuration]
C --> D[Test mock capture]
D --> E[Context-path assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -6. Total -6 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the three existing context-path cases and land this focused test-only simplification after normal exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable: the change is test maintenance rather than a user-facing bug; the supplied exact-head CI context shows the relevant lint shard passing. Is this the best way to solve the issue? Yes: direct tail assertions reuse the existing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7b67c28e2e96. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Superseded by #137149, landed on That change split the runner tests, restored the max-lines gate, and rewrote the exact file this PR would edit while preserving the same 41 tests. There is no remaining delta to land here. |
What problem does this PR solve?
Main’s node-host runner test exceeded the configured 1,000-line lint limit by six lines, failing unrelated PR checks. The failure is visible in check-lint-core-4 for #137132; the offending test file is identical on the current main inspected here.
Why this change
Use the same
Array.at(-1)last-entry idiom already used bylastCapturedOptionsin this test, and assert directly instead of repeating length-based indexing and one-use locals three times. All test cases, input values, expected values, optional access and empty-context-path semantics remain unchanged. This removes six test lines; production LOC is unchanged. The existing lint limit stays enforced.Validation
node node_modules/oxlint/bin/oxlint --type-aware --threads=1 src/node-host/runner.test.ts: passes with no warning/error.node scripts/run-vitest.mjs run src/node-host/runner.test.ts: all 41 tests pass.This is a test maintenance and CI repair. It changes no runtime behavior, dependencies, configuration, persistence or public API and makes no memory or speed claim.