Repository navigation
test: linked admission test for the static-link build - #39
Conversation
…linked_with_config Verification for tinyhumansai/openhuman#7610 (E0.3, epic #7524): the linked export must be admitted and reach Ready. Co-authored-by: Medulla <medulla@tinyhumans.ai>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Tiny Sweeper reviewTiny Sweeper completed its review; deterministic results follow. State: Ready for maintainer review Review snapshot
Completeness: Complete What changedAdds a 39-line integration test file, `crates/tinydocs-module/tests/static_link.rs`. The test is compiled only under `#![cfg(feature = "static-link")]` and allows `clippy::unwrap_used`/`clippy::expect_used`; on a two-worker multi-thread Tokio runtime it builds a `MemoryBus` and `Broker`, spawns the broker on the bus, constructs a `ModuleHost`, calls `attach_linked_with_config(tinydocs_module::linked_module().unwrap(), serde_json::json!({}))`, asserts `info.name == "tinydocs-module"`, and polls `host.list()` every 10 ms until any module state matches `ModuleState::Ready`, wrapped in a 10-second `tokio::time::timeout`. No production code, documentation, or configuration is modified. Features
TestsNo supported feature-to-test mapping was produced. Test execution is not inferred. FindingsNo active actionable findings. Before mergeNone. Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
There was a problem hiding this comment.
tinysweeper found nothing blocking, but could not review everything, so this is not an approval: crates/tinydocs-module/tests/static_link.rs, tinysweeper/description.
$0.0005 · 26,533 in / 1,914 out · 3,968 cached (15%) · ladder/vectors-oai3, glm-5.3-flash, deepseek-v4.1-flash · 107 embedded
critique: $0.0001 · 13,028 in / 893 out · 2,176 cached (17%) · glm-5.3-flash
security: $0.0004 · 13,505 in / 1,021 out · 1,792 cached (13%) · deepseek-v4.1-flash
There was a problem hiding this comment.
tinysweeper found nothing blocking. Approving.
$0.0022 · 103,383 in / 26,924 out · 9,216 cached (9%) · ladder/vectors-oai3, deepseek-v4.1-flash · 107 embedded
critique: $0.0009 · 43,671 in / 9,554 out · 2,176 cached (5%) · deepseek-v4.1-flash
security: $0.0005 · 40,673 in / 7,992 out · 3,968 cached (10%) · deepseek-v4.1-flash
description: $0.0005 · 16,852 in / 7,371 out · 3,072 cached (18%) · deepseek-v4.1-flash
Part of tinyhumansai/openhuman#7524, leaf issue tinyhumansai/openhuman#7610 (E0.3).
Verified: the module crate builds as rlib+cdylib and uses
module_export_optional_static!with astatic-linkfeature. It lacked a test assertinglinked_module()is admitted byModuleHost::attach_linked_with_config. This addstests/static_link.rs(gated onstatic-link; covered by the existing--all-featuresCI lane).Local:
cargo test --features static-link --test static_linkpasses.Summary by CodeRabbit