fix: ignore stale native runtime cache manifests - #1170
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughRuntime cache enumeration now supports MeshLLM version scoping. Resolver discovery uses scoped enumeration. Regression tests confirm that legacy cached manifests do not block valid runtime installation or resolution. ChangesRuntime cache compatibility
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crates/mesh-llm-native-runtime/src/cache.rs (1)
125-127: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRestrict
installed_for_versionto crate visibility.The method is used only inside
mesh-llm-native-runtime; make itpub(crate)so cache enumeration stays internal to the crate.Proposed change
- pub fn installed_for_version(&self, mesh_version: &str) -> Result<Vec<InstalledNativeRuntime>> { + pub(crate) fn installed_for_version( + &self, + mesh_version: &str, + ) -> Result<Vec<InstalledNativeRuntime>> {🤖 Prompt for 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. In `@crates/mesh-llm-native-runtime/src/cache.rs` around lines 125 - 127, Change the visibility of NativeRuntimeCache::installed_for_version from pub to pub(crate), keeping its parameters, return type, and implementation unchanged.Source: Coding guidelines
🤖 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.
Nitpick comments:
In `@crates/mesh-llm-native-runtime/src/cache.rs`:
- Around line 125-127: Change the visibility of
NativeRuntimeCache::installed_for_version from pub to pub(crate), keeping its
parameters, return type, and implementation unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 2a7d7248-633c-4c31-b380-b253bb1601d4
📒 Files selected for processing (3)
crates/mesh-llm-native-runtime/src/cache.rscrates/mesh-llm-native-runtime/src/resolver.rscrates/mesh-llm-runtime-install/src/lib.rs
29d7012 to
b528124
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
1 similar comment
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Summary
Fixes native runtime installation failing when the cache contains runtime manifests from older MeshLLM releases that predate per-file checksums.
Root cause
Resolver candidate discovery strictly validated every cached runtime before applying the requested MeshLLM version filter. A legacy cached manifest therefore aborted installation before a valid explicit bundle could be selected.
Changes
Fixes #1162
Validation
cargo fmt --all --checkcargo test -p mesh-llm-native-runtime --libcargo test -p mesh-llm-runtime-install --libcargo check -p mesh-llm-native-runtimecargo check -p mesh-llm-runtime-installcargo check -p mesh-llmcargo clippy -p mesh-llm-native-runtime --all-targets -- -D warningscargo clippy -p mesh-llm-runtime-install --all-targets -- -D warningscargo clippy -p mesh-llm --all-targets -- -D warningsSummary by CodeRabbit