test(memory): migrate engine coverage to TinyCortex - #4820
Conversation
📝 WalkthroughWalkthroughTinyCortex receives dedicated reusable and CI Lite test jobs with submodule setup, caching, feature-enabled Cargo tests, and PR-gate enforcement. Related OpenHuman unit tests are removed, and the parity checklist documents the new test-ownership boundary and verification commands. ChangesTinyCortex CI and test ownership
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Changes as CI Lite changes
participant Tests as tinycortex-tests
participant Cargo
participant Gate as pr-ci-gate
Changes->>Tests: Detect vendor/tinycortex changes
Tests->>Cargo: Run cargo test with git-diff,sync
Cargo-->>Tests: Return test status
Tests-->>Gate: Report TinyCortex Memory Tests
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/ci-lite.yml:
- Around line 166-169: Update the tinycortex path filter used by the
tinycortex-tests job to include .gitmodules and scripts/ci-cancel-aware.sh
alongside the existing workflow and vendor paths, ensuring setup or runner
changes trigger the tests instead of skipping them.
In `@src/openhuman/memory_store/chunks/types.rs`:
- Line 15: Update the ownership documentation near the DataSource re-export to
match the actual exported API: either state that DataSource is sourced from and
re-exported by TinyCortex, or remove the re-export if host ownership remains
intended. Keep the comment and DataSource export consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2bfa77a4-83d1-4c0f-ad11-35ea7919c762
📒 Files selected for processing (9)
.github/workflows/ci-lite.yml.github/workflows/test-reusable.ymldocs/tinycortex-parity-checklist.mdsrc/openhuman/memory_queue/ops.rssrc/openhuman/memory_search/scoring.rssrc/openhuman/memory_store/chunks/types.rssrc/openhuman/memory_store/trees/types.rssrc/openhuman/memory_tree/score/mod.rssrc/openhuman/memory_tree/score/mod_tests.rs
💤 Files with no reviewable changes (5)
- src/openhuman/memory_store/trees/types.rs
- src/openhuman/memory_tree/score/mod.rs
- src/openhuman/memory_search/scoring.rs
- src/openhuman/memory_tree/score/mod_tests.rs
- src/openhuman/memory_queue/ops.rs
Summary
MemoryTaintseam.Problem
openhuman, so migrated TinyCortex memory and Composio sync tests were absent from OpenHuman's merge gates.Solution
Submission Checklist
diff-cover) meet the gate enforced by.github/workflows/ci-lite.yml. Runpnpm test:coverageandpnpm test:rustlocally; PRs below 80% on changed lines will not merge.docs/TEST-COVERAGE-MATRIX.md.Impact
Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
fix/tinycortex-memory-test-migrationff6c6efabValidation Run
pnpm --filter openhuman-app format:checkpnpm typecheckcargo fmt --all -- --check; pre-push Tauricargo checkValidation Blocked
command:cargo test --test raw_coverage_all memory_sync -- --test-threads=1error:local compiler stopped making progress under unrelated host-wide Rust build and memory pressure; terminated without a test result.impact:OpenHuman memory E2E remains for authoritative CI execution; TinyCortex's full and focused Composio suites passed locally.Behavior Changes
Parity Contract
Duplicate / Superseded PR Handling
Summary by CodeRabbit
New Features
Documentation
Tests