Repository navigation
fix(deps): share TinyInference with embedding workspaces - #156
Conversation
The two tinyinference crates are now declared as git dependencies pinned to a revision instead of path dependencies, so an embedding workspace can redirect them to its own shared copy. A matching patch entry keeps standalone builds on the vendored submodule, and the vendored submodules are bumped to their latest commits. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Tiny Sweeper reviewReviewed head: Verdict: Ready for maintainer review · Priority: none Diagnostics and supporting detailsFull summaryPull request purpose (title): fix(deps): share TinyInference with embedding workspaces. This pull request reworks how TinyComputer's workspace depends on TinyInference: the two vendored path dependencies for `tinyinference-decisions` and `tinyinference-llm` become git dependencies pinned to `rev = "02c01b72f70cd3747304b2a5a696b52a49fdd4fd"`, and a workspace-root `[patch."https://github.com/tinyhumansai/tinyinference"]` entry maps those packages back to `vendor/tinyinference/crates/...` so standalone builds still resolve locally. The stated purpose is to let an embedding host workspace override these git sources with its own top-level TinyInference patch, avoiding duplicate package identities when both sides use TinyInference 0.5, while leaving the submodule pins untouched. No push delta was available, so this describes the whole pull request. Review snapshot
Completeness: Complete What changed`Cargo.toml` no longer declares `tinyinference-decisions` and `tinyinference-llm` as direct paths into the vendored submodule; both now point at the tinyhumansai/tinyinference git repository at the full commit rev `02c01b72f70cd3747304b2a5a696b52a49fdd4fd`. A new `[patch."https://github.com/tinyhumansai/tinyinference"]` table at the workspace root redirects both crates back to `vendor/tinyinference/crates/...` for standalone builds; comment text was updated to explain the host-workspace redirect intent. Nothing outside the manifest changes. Features
Tests
FindingsNo active actionable findings. Before mergeNone. Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
TinyComputer's workspace currently declares TinyInference decisions and planner crates as direct paths into its nested vendor copy. In an embedding host, Cargo cannot redirect those path dependencies to the host's shared TinyInference tree, which can compile duplicate package identities when TinyComputer and host dependencies use TinyInference 0.5.
Declare the two dependencies by the exact TinyInference revision recorded by TinyComputer's vendor gitlink, then keep a workspace-root patch to that vendored copy for standalone builds. When TinyComputer is embedded, Cargo ignores the member workspace patch and honors the host's top-level TinyInference patch, so the planner and host resolve the same
tinyinference-coresource. The TinyInference submodule pins are unchanged.Validation:
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningscargo build --all-targets --all-featurescargo test --all-featurescargo tree -p tinycomputer -i tinyinference-coreshowed onetinyinference-core v0.5.0from the pinned vendor copy.Refs #111
Part of tinyhumansai/openhuman#7328
Summary by CodeRabbit