feat: add LCM pattern regression test suite#168
Open
slideshow-dingo wants to merge 2 commits intoMartian-Engineering:mainfrom
Open
feat: add LCM pattern regression test suite#168slideshow-dingo wants to merge 2 commits intoMartian-Engineering:mainfrom
slideshow-dingo wants to merge 2 commits intoMartian-Engineering:mainfrom
Conversation
- Pattern 001: LCM Tools Integration (lcm_grep, lcm_expand, lcm_expand_query) - Pattern 002: Compaction completes without error - Pattern 003: Auth profile validation for summarizer Validates that LCM tools integrate correctly with OpenClaw's session, cron, and agent infrastructure. Designed to catch integration failures that emerge in production but are difficult to detect manually. Tests use black-box approach (invoke LCM through OpenClaw tool interface) and are idempotent (can run repeatedly without polluting DB). OpenClaw version: v2026.3.22
The pattern-regression.test.ts was importing from 'node:test' instead of 'vitest', causing 'beforeAll is not a function' errors in CI. Also added SKIP_INTEGRATION_TESTS env var to skip tests that require a real OpenClaw instance (they can be run locally with SKIP_INTEGRATION_TESTS=0). Fixes CI test failure: '(0 , __vite_ssr_import_0__.beforeAll) is not a function'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a pattern test regression suite to help LCM operators validate plugin integration with OpenClaw instances.
Motivation
Running LCM in production on an autonomous ops agent revealed integration failure modes difficult to detect manually:
Tests Added
lcm_grep,lcm_expand,lcm_expand_querywork after compactionFiles
test/pattern-regression.test.ts— Test runner + fixturesdocs/pattern-regression.md— Operator guideChanges
node:testtovitest(was causingbeforeAll is not a functionin CI)SKIP_INTEGRATION_TESTSenv var to skip tests requiring a real OpenClaw instanceTesting
Validated locally on OpenClaw v2026.3.22 with ollama-local summarizer.
CI: ✅ Passing
Related
Closes #85 — provides deterministic smoke-test path for lcm_expand_query validation
Questions for Maintainers
lossless-claw/test/or a separate repo?lcm doctor/lcm testsubcommand?