Skip to content

refactor: consolidate auto-reply command tests - #109342

Merged
steipete merged 1 commit into
mainfrom
codex/consolidate-auto-reply-command-tests
Jul 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/consolidate-auto-reply-command-tests

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The auto-reply-reply-commands CI stripes repeatedly re-evaluate the same large static module graph because the non-isolated runner resets evaluated modules after every test file. The commands bucket had 54 command test entry files, making one of the slowest CI jobs pay that reset cost many times.

Why This Change Was Made

This maintainer-directed refactor consolidates six mock-compatible sibling clusters into shared test entry points, reducing the bucket from 54 to 44 command test files while preserving the original describe names. Large export companions remain non-entry test-support modules so they share one runner reset without adding max-lines suppressions. The plugin pair remains separate: autoreview identified inherited config-mock contamination, so that candidate was intentionally reverted.

AI-assisted with Codex. The implementation and test behavior were reviewed before landing.

User Impact

No product behavior changes. Developers and CI should spend less time re-evaluating the auto-reply command module graph.

Evidence

  • Rebased patch on Blacksmith Testbox: 9 files, 174 tests passed in 29.64s (commands-subagents*, export, info, core, status, and context). Run: https://github.com/openclaw/openclaw/actions/runs/29533028283
  • Full pnpm check:changed passed on Blacksmith Testbox in 18m57s, including formatting, max-lines ratchet, core and core-test typechecks, all core lint shards, and static guards.
  • Representative same-box before/after file wall times: export 4.85s -> 3.31s, info 7.19s -> 2.90s, status 17.35s -> 11.97s.
  • Deleted test-path reference scan is clean; the historical database-first proof command now targets the aggregate export suite.
  • Mandatory autoreview: initial P1 finding caused the plugin consolidation to be reverted; second pass reported no accepted/actionable findings (patch is correct, 0.91).
  • The final pre-push rebase had no overlap with touched paths; hosted CI provides exact-head proof.

@steipete steipete self-assigned this Jul 16, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL maintainer Maintainer-authored PR labels Jul 16, 2026
@steipete
steipete force-pushed the codex/consolidate-auto-reply-command-tests branch from 8f17f52 to 3efcdc7 Compare July 16, 2026 21:14
@steipete
steipete merged commit 58f43c7 into main Jul 16, 2026
116 checks passed
@steipete
steipete deleted the codex/consolidate-auto-reply-command-tests branch July 16, 2026 21:23
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant