Skip to content

fix(ci): avoid rereading the full plugin response fixture - #200490

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-plugin-response-fixture-20261117
Nov 17, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-plugin-response-fixture-20261117

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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

  • A matched local full101 recovery pair passed with 101 packages, 203 CLI entrypoints, and 7,792 requests in both runs. Case duration was 124.615 seconds before and 105.559 seconds after; this single local pair does not establish CI speedup.
  • Isolated recovery and both carrierless cases passed with their original assertions.
  • Targeted lint, the scripts-test TypeScript check, formatting, syntax, and diff checks passed.
  • Independent review found no actionable findings.

@vincentkoc vincentkoc self-assigned this Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review November 17, 2026 08:13
@vincentkoc
vincentkoc enabled auto-merge (squash) November 17, 2026 08:14
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR stores synthetic GitHub responses in separate route files so plugin CLI tests avoid repeatedly parsing unrelated payloads.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and appears correct; validation consists of reported fixture-backed CLI runs and passing focused CI, with limited performance sampling.
Proof confidence 🦐 gold shrimp (3/6) This changes test-fixture implementation only; the reported CLI regression runs and exact-head CI support it without requiring shipped-product demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Plugin publication CLI tests spend avoidable time parsing unrelated fixture payloads and can exceed their test timeout.
Reason: The maintainer-authored change removes demonstrated fixture waste while retaining existing behavior and validation limits.

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
Reviewed head: 3f4560e5e5e122d1de4939b1936d90188a54c1bd

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Full-map response storage and per-request reading keeps the original intent (09723cd: Provide raw external-I/O responses to real CLI subprocesses without replacing release authentication owners.)
  • Live artifact metadata projection keeps the original intent (282ac00: Keep artifact inventories consistent with current fixture metadata while exercising live dependency validation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +30. Total +30 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 39 9 +30
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 39 9 +30

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This improves test-fixture efficiency without changing shipped product behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This improves test-fixture efficiency without changing shipped product behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 3:27 AM ET / 08:27 UTC.

@vincentkoc
vincentkoc merged commit 981ef45 into main Nov 17, 2026
155 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-plugin-response-fixture-20261117 branch November 17, 2026 08:29
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

RomneyDa added a commit that referenced this pull request Nov 17, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant