Repository navigation
chore(tests): speed up gateway session patch coverage - #118633
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 7:11 AM ET / 11:11 UTC. ClawSweeper reviewWhat this changesThe PR replaces bundled provider-thinking artifact resolution in the gateway session-patch test suite with deterministic OpenAI profile mocks, reducing test runtime without changing production behavior. Merge readiness✅ Ready for maintainer review This PR remains necessary: current Priority: P3 Review scores
Verification
How this fits togetherGateway session patches update stored agent-session settings such as model and thinking level. The patch validator consults shared thinking-level logic, which reads provider profiles from plugin metadata and policy artifacts before accepting or rejecting a session update. flowchart LR
A[Gateway session patch request] --> B[Session patch projection]
B --> C[Thinking-level validation]
C --> D[Provider profile resolver]
D --> E[Plugin metadata and policy artifacts]
C --> F[Updated session or validation error]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +35. Total +35 across 1 file. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Land the focused test isolation after normal maintainer review and required checks, while retaining provider-specific profile contracts in Do we have a high-confidence way to reproduce the issue? Not applicable: this PR optimizes test execution rather than reporting a user-facing defect. Its body supplies same-host before/after timings and unchanged test counts for the affected suite. Is this the best way to solve the issue? Yes. Mocking the provider-policy boundary in the gateway projection suite is the narrowest maintainable approach because dedicated OpenAI policy tests retain the real profile contract coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fe6fa891ea4e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: chore(tests): speed up gateway session patch coverage This is item 3/3 in the current shard. Shard 3/25. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
The gateway-core test group spent roughly 24 seconds loading bundled provider policy artifacts inside the session-patch projection suite. That suite validates patch behavior, while the provider policy artifact resolver already has dedicated contract coverage.
Why This Change Was Made
The session-patch suite now supplies deterministic provider thinking profiles through its existing mocked dependency boundary. All patch cases and assertions remain intact, including OpenAI xhigh and runtime-sensitive Luna max/ultra behavior; the real bundled artifact and thinking-policy contracts remain covered by their owner suites.
User Impact
There is no product behavior change. The gateway-core test group completes substantially faster with unchanged test coverage.
Evidence