Repository navigation
test(gateway): unsuppress tracer plugin in queued-session rotation e2e - #118266
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 6:34 PM ET / 22:34 UTC. ClawSweeper reviewWhat this changesThe branch clears the minimal-gateway environment flag for the queued-session rotation E2E so its configured tracer plugin is loaded and its turn-count assertions exercise the intended path. Merge readinessKeep this PR open for the maintainer-labeled landing path. The patch correctly repairs a deterministic test-harness mismatch: the shared isolated-gateway helper enables minimal mode by default, while this E2E explicitly configures and asserts a tracer plugin that minimal mode intentionally suppresses. Priority: P2 Review scores
Verification
How this fits togetherThe queued-session rotation E2E starts an isolated Gateway process through the shared test-instance helper, then drives a held agent turn and a replacement turn over Gateway chat. Its fixture plugin records each prepared turn, so the test needs normal plugin startup rather than the helper’s default minimal Gateway mode. flowchart LR
A[Queued rotation E2E] --> B[Shared test instance helper]
B --> C[Gateway child process environment]
C --> D{Minimal Gateway enabled?}
D -->|Yes| E[Plugin lookup suppressed]
D -->|No| F[Configured tracer plugin loads]
F --> G[Turn preparation events]
G --> H[Trace-count assertions]
Decision needed
Why: The implementation is mechanically narrow and matches the existing helper contract, but the Before merge
Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the one-site environment override after current CI completes, preserving the helper’s minimal-mode default for E2Es that do not require plugin startup. Do we have a high-confidence way to reproduce the issue? Yes. Current source establishes the failure mechanism: the helper enables minimal Gateway mode, that mode suppresses plugin lookup, and this test requires its configured tracer plugin; the PR body also reports an isolated after-fix pass in 20.7 seconds, though this read-only review did not rerun it. Is this the best way to solve the issue? Yes. Clearing the per-instance environment default is the narrowest maintainable fix because it preserves the shared helper’s lightweight default and follows existing full-Gateway E2E patterns. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a1c2009b91b9. 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.
|
What Problem This Solves
Two gateway E2Es have been red on main, observed during the lint-cleanup work (#118098) and adjudicated there as not-caused-by-that-branch. This PR resolves their true state:
test/gateway-queued-session-rotation.e2e.test.tsfailed deterministically becauseOPENCLAW_TEST_MINIMAL_GATEWAYleaked into its environment and suppressed the tracer plugin the test's assertion depends on — a test-setup bug, not flake.test/huggingface-local-app-openclaw.e2e.test.tsfails because of a real product regression: the native llama-cpp plugin hijacks an explicitly configured HTTP provider route (MLX passes, llama.cpp returnsLLM request failed). Filed as Custom provider id llama-cpp is routed through the native plugin instead of its HTTP endpoint #118212 with evidence; no product code is changed blind in this PR.Why This Change Was Made
The rotation test now clears
OPENCLAW_TEST_MINIMAL_GATEWAYfor its gateway spawn so the tracer plugin loads. Both tests are ungated hermetic E2Es — neither needs external services, so no environment skip is warranted.User Impact
None at runtime (test-only, +4/−1). The rotation E2E is green again; the HF E2E remains red pointing at the real routing regression tracked in #118212.
Evidence
tsgo:test, changed-file format/oxlint,git diff --check: clean; structured autoreview clean🤖 Generated with Claude Code