Repository navigation
fix(runtime): round 50 core/jni/inprocess findings - #572
Merged
Merged
Conversation
- multipart: MeteredField and TryFromFieldWithState docs now describe the cooperative aggregate count (reads on the extractor task are counted; reads moved off that task are not), matching register_multipart_bytes. - vespera_core: the Reference Object module doc lists Link Objects as accepting a $ref (kept as raw JSON). - vespera tests: the oversized path value comment states the real bound (MAX_ENVELOPE_MESSAGE_CHARS), not the 64 KiB hoist cap. - vespera_jni daemon_env: the module doc says a resuming worker finds its own thread-local cell (empty or holding its own record). - vespera_jni runtime-config test: the first-set worker-count assertion runs in a child process, so it no longer depends on test order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Round 50 runtime (core / jni / inprocess) findings. All five pending findings were verified against the code and fixed; none refuted.
crates/vespera/src/multipart/mod.rs): theMeteredFieldandTryFromFieldWithStatedocs claimed non-cooperative metering. The aggregate count is a task-local of the extractor's task, so reads moved off that task are not counted. Both docs now state the cooperative contract. Doc only; the owner-approved option of making counting non-cooperative was not taken.crates/vespera/tests/validated_form_query_path.rs): the inline comment claimed a 60,000-byte segment echoes past the 64 KiB hoist cap. It does not; the real bound isMAX_ENVELOPE_MESSAGE_CHARS(256). Comment corrected.crates/vespera_jni/src/daemon_env.rs): the module doc said a resuming worker finds an empty TLS cell. It may hold its own earlier record. Reworded.crates/vespera_core/src/route.rs): the Reference Object module doc omitted Link Objects, which keep a$refas raw JSON. Added.crates/vespera_jni/src/jni_impl_runtime_config_tests.rs): the first-set worker-count assertion was order-dependent in-process. It now runs in a child process, following the shared-runtime test pattern.Verification:
cargo test -p vespera_jni --lib runtime_config_testspasses;RUSTDOCFLAGS=-D warnings cargo doc -p vespera_core -p vespera --no-depsis clean;cargo clippy -p vespera_jni --all-targets -- -D warningsis clean;cargo fmtapplied. No new executable lines invesperaorvespera_core(doc and comment changes only), andvespera_jniis outside tarpaulin. Changepack:.changepacks/changepack_log_runtime_round50.json(all seven packages at Patch).🤖 Generated with Claude Code