Repository navigation
test(auto-reply): reuse memory session fixtures - #147262
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. Reviewed September 13, 2026, 2:24 PM ET / 18:24 UTC. ClawSweeper reviewWhat this changesReuse the existing session fixture builder in memory-maintenance tests while preserving scenario-specific values and fresh objects. Merge readiness✅ Ready for maintainer review This remains a useful, bounded cleanup absent from the inspected main revision. The fixture substitutions preserve test inputs and assertions, and no actionable defect was found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s reply runner performs memory flushing and conversation compaction using session state and context budgets. These tests exercise those decisions with controlled session fixtures and mocked agent execution. flowchart LR
A[Test scenario overrides] --> B[Session fixture builder]
B --> C[Fresh session state]
C --> D[Memory maintenance]
E[Context and transcript budgets] --> D
D --> F[Mocked agent execution]
D --> G[State and outcome assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -89. Total -89 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep common complete-session defaults in the existing builder while leaving sparse and timing-sensitive fixtures explicit. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes repeated test setup rather than reporting a runtime defect; fixture equivalence is directly inspectable in the patch and helper. Is this the best way to solve the issue? Yes. Reusing the existing builder preserves scenario coverage without introducing another abstraction or changing production contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c72435e19089. 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.
|
* commit 'cf45ff4d6a9c13164463db860285a02c1c4f2e8c': test(macos): observe readiness cancellation and deadline ownership (#145056) fix(ci): route QA Profile Evidence to its run-status owner test (#147293) fix(install): preserve runtime links when Node validation fails (#147221) test(auto-reply): reuse memory session fixtures (#147262) fix: hide subagent sessions from Activity (#147253) ci: record resources for slow runtime test commands (#147254) fix(update): recognize FreeBSD boot identities in triage leases (#147243) refactor(active-memory): share closing tag line scan (#147031) fix: resume Settings autosave after Reload Config (#147136) fix(cli): keep conversation context after cancellation (#147139) fix(channels): make system-agent approval cards actionable (#147152) refactor: retain shared database handles until their last worker closes (#147246) refactor(slack): share workspace-qualified target resolution (#147024) refactor(msteams): remove duplicate quoted-table test (#147270)
* commit 'ac59d5e09eb468dc23cf95e447608b57e71b52af': (176 commits) improve(gateway): avoid redundant startup preflight work (#147285) test(macos): observe readiness cancellation and deadline ownership (#145056) fix(ci): route QA Profile Evidence to its run-status owner test (#147293) fix(install): preserve runtime links when Node validation fails (#147221) test(auto-reply): reuse memory session fixtures (#147262) fix: hide subagent sessions from Activity (#147253) ci: record resources for slow runtime test commands (#147254) fix(update): recognize FreeBSD boot identities in triage leases (#147243) refactor(active-memory): share closing tag line scan (#147031) fix: resume Settings autosave after Reload Config (#147136) fix(cli): keep conversation context after cancellation (#147139) fix(channels): make system-agent approval cards actionable (#147152) refactor: retain shared database handles until their last worker closes (#147246) refactor(slack): share workspace-qualified target resolution (#147024) refactor(msteams): remove duplicate quoted-table test (#147270) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) ...
What Problem This Solves
Memory-maintenance tests repeat complete session setup that their existing fixture builder already supplies.
User Impact
Internal-only cleanup; no user-visible behavior changes or required actions.
Why This Change Was Made
Reuse the existing builder for 20 complete session inputs while retaining explicit token counts, runtime pins, property order and fresh allocations. Sparse and clock-order-sensitive fixtures remain explicit. This removes 89 test lines, with no production changes or formatter-only reductions.
Evidence
adb6e518, the complete 130-test candidate and required changed-file gate passed again. The earlier baseline is retained as earlier-graph evidence.No runtime speedup is claimed. Hosted CI passed on the exact PR head.