Repository navigation
fix(ci): avoid rereading the full plugin response fixture - #200490
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR stores synthetic GitHub responses in separate route files so plugin CLI tests avoid repeatedly parsing unrelated payloads. Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR is a focused, useful test-fixture optimization with no actionable defects found, and its maintainer-authored direction is established. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe plugin publication test fixture supplies synthetic GitHub responses to real CLI subprocesses through fetch and gh adapters, while recording requests for existing assertions. flowchart LR
A[Plugin CLI tests] --> B[Fixture response writer]
B --> C[Per route response files]
A --> D[Real CLI subprocesses]
D --> E[Fetch and gh fixture adapters]
E --> C
E --> F[Request records and assertions]
Technical reviewBest possible solution: Keep route-specific fixture reads in the existing transport owner while preserving all current assertions, transitions, request budgets, and timeouts. Do we have a high-confidence way to reproduce the issue? Current-main source directly establishes full-map parsing on every simulated request; the reported timeout was not independently reproduced during this read-only review. Is this the best way to solve the issue? The change removes unrelated payload parsing at the existing fixture boundary without caching responses or weakening test coverage; the single reported timing pair supports a local improvement, not a general CI speedup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a3bee8752790. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +30. Total +30 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 17, 2026, 3:27 AM ET / 08:27 UTC. |
|
Merged via squash auto-merge.
|
(cherry picked from commit 981ef45) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
The full 101-package plugin CLI test exceeded its 240-second limit after completing its request flow. Its transport fixture rereads and parses the entire response map for every simulated request, including archive payloads unrelated to that request.
User Impact
No product behavior changes. The existing CLI tests do less fixture work while keeping their assertions, request budget, and timeouts unchanged.
Why This Change Was Made
Store one response file per route and read only the requested route. Preserve live artifact metadata, response transitions, and fixture updates between synchronous CLI calls.
Evidence