Tests: fix ClawMongo suite alignment - #2
Merged
Conversation
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
openclaw memory statuscommand plus assumeddist/memory/index.jsalready existed.@romiluz/clawmongoplugin metadata, removed duplicate root Slack/Telegram runtime deps, updated status fast-json expectations for MongoDB memory, externalized plugin-local Slack/Telegram/WhatsApp runtime packages from the root tsdown build, changed the real ClawMongo E2E to callopenclaw status --json --all, made it builddistbefore importing the memory runtime, and added a stabledist/memory/index.jsbuild entry.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
pnpm test src/commands/status.scan.fast-json.test.ts,pnpm test src/infra/tsdown-config.test.ts src/plugins/bundled-runtime-deps.test.ts,pnpm test src/infra/tsdown-config.test.ts,pnpm check, fullpnpm test,pnpm build,test -f dist/memory/index.js,pnpm clawmongo:e2e, MongoDB knowledge-base search, branch/main ancestry check, QA mock suite attempt, and redacted diff secret scans.pnpm checkpassed; fullpnpm testpassed 76 Vitest shards twice after the final build fix;pnpm buildpassed;dist/memory/index.jsexists after build; current diff gitleaks scans reported no leaks; branch contains currentorigin/main(origin-main-included=yes); realpnpm clawmongo:e2epassed against Atlas withok: true,deploymentProfile: atlas-cloud, andresultCount: 1.pnpm testreported failures in gateway probe auth, logging redaction capture, status scan, version/plugin runtime metadata, onboarding memory setup, embedding mocks, MEMORY.md prompt text, query rewrite telemetry, bundled dependency ownership, plugin config defaults, min-host guardrails, and later fast-json memory expectation;pnpm buildthen exposed plugin-local Slack type dependency bundling from the root build; user-run real E2E exposed staleopenclaw memory status --jsonand missingdist/memory/index.jsbefore the fixes.Root Cause (if applicable)
@romiluz/clawmongopublishing metadata; root build also needed to externalize plugin-local runtime packages after removing duplicate root deps; E2E script retained an old CLI subcommand and assumed prebuilt dist/stable memory dist entry.openclawand@romiluz/clawmongoshapes during fork alignment.Regression Test Plan (if applicable)
pnpm test,pnpm build,pnpm clawmongo:e2e, plus targeted failed-file reruns.--allmemory inspection, plugin-local runtime externalization, and the real E2E CLI/status/dist path.pnpm test,pnpm build, andpnpm clawmongo:e2eare the merge gates.User-visible / Behavior Changes
MEMORY.mdas runtime memory guidance.Diagram (if applicable)
N/A
Security Impact (required)
Yes, explain risk + mitigation: gateway probe auth now prefers an already cached local operator device token for read-only probe details; this avoids mutating first-time probes and uses existing cached auth scope only.Repro + Verification
Environment
memory.mongodb.deploymentProfile=atlas-cloud, temporary E2E database/prefix generated by scriptSteps
pnpm check.pnpm testand patch the remaining fast-json expectation.pnpm test src/commands/status.scan.fast-json.test.ts.pnpm test.pnpm build; patch plugin runtime externalization; rerunpnpm test src/infra/tsdown-config.test.ts src/plugins/bundled-runtime-deps.test.ts,pnpm build,pnpm check, and fullpnpm test.pnpm clawmongo:e2ewith rotated env vars set in their terminal.Expected
Actual
pnpm checkpassed.pnpm testpassed 76 shards twice after the final build fix.pnpm buildpassed after externalizing plugin-local runtime dependencies and after adding the stable memory dist entry.pnpm clawmongo:e2epassed:ok: truedeploymentProfile: atlas-cloudclawmongo_e2e_386a6290e2e_386a6290_resultCount: 1queryVectorfor auto-embedding indexes.skill_workshopMCP tool, runtime inventory drift expectation, and image/control UI roundtrip timeout.Evidence
Human Verification (required)
pnpm check, fullpnpm test,pnpm build, real MongoDB/Voyage E2E pass, current diff secret scans, MongoDB docs/knowledge-base lookup, QA mock suite attempt/report inspection, stale E2E command fix, fresh-dist E2E build fix.OPENAI_API_KEY/OPENCLAW_LIVE_OPENAI_KEYis not present in the agent process environment.Review Conversations
Compatibility / Migration
Risks and Mitigations