feat(hotpath): fill lcm schema/gc/describe gaps - #779
Draft
ScriptedAlchemy wants to merge 4 commits into
Draft
Conversation
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
|
Contributor
Performance Comparison
|
…sor/hotpath-lcm-gaps-710c
…sor/hotpath-lcm-gaps-710c
…sor/hotpath-lcm-gaps-710c
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.
Summary
Fills the remaining
hotpathcoverage gaps incrates/tracedecay-lcmonly (HP-lcm). Adds 25#[hotpath::measure]attributes across the previously uninstrumented files — 21 async spans (future = true) plus 4 sync filesystem/CPU spans. No other crates touched, noCargo.tomlchanges, notokio_runtime!introduced, and hotpath stays opt-in (attributes are no-ops without thehotpathfeature, exactly like the crate's existing instrumentation).Labels follow the crate's established
sessions.lcm.<area>.<verb>convention so new spans group with the existing ones (e.g. alongsidesessions.lcm.gc.preview/sessions.lcm.gc.apply); the user-specifiedlcm.<area>.<verb>shape is preserved as the meaningful suffix.Instrumented functions
schema.rs—require_admissible_lcm_schema(schema.admit),ensure_lcm_schema_in_transaction(schema.ensure— the production schema owner;ensure_lcm_schemaitself is#[cfg(test)]-only and skipped per the no-tests rule),raw_fts_structure_is_current(schema.verify_raw_fts),rebuild_raw_fts(schema.rebuild_raw_fts),load_raw_message(raw.load_message).query/describe.rs—raw_message_overviews,summary_overviews,describe_summary_node,describe_summary_sources,describe_external_payloadundersessions.lcm.describe.*.gc/pending_delete.rs—stage_payload_delete(gc.stage_delete),drain_pending_payload_deletes_matching(gc.drain_pending_deletes— single measure point shared by both public drain wrappers),probe_metadata_rows(gc.probe_pending_metadata).gc/placeholder_scan.rs—scan_placeholder_text_rows(gc.placeholder_scan),any_placeholder_text_row(gc.placeholder_probe),count_placeholder_text_rows(gc.placeholder_count).gc/orphan_scan.rs—preview_orphan_files(gc.orphan_preview, sync fs scan),stage_orphan_files(gc.orphan_stage).payload/delete_recovery.rs—delete_external_payload_in_transaction(payload.delete),prepare_external_payload_delete_in_transaction_with_cache(payload.delete_prepare),tombstone_residual_placeholders(payload.tombstone_placeholders), plus sync fs spansremove_committed_payload_file_with(payload.remove_file) andpayload_file_fingerprint(payload.fingerprint).maintenance.rs—backup_database(maintenance.backup),payload_metadata_refs(maintenance.scan_payload_refs— shared by both public ref-collection wrappers).Skipped per instructions: tests/
#[cfg(test)]helpers, trivial single-row accessors (get_gc_meta/set_gc_meta/clear_gc_meta,schema_version), and private probes already covered by their instrumented callers.Verification
cargo check -p tracedecay-lcm(default features): passcargo check -p tracedecay-lcm --features hotpath: passcargo clippy -p tracedecay-lcm --all-targets --features hotpath: clean (one pre-existing warning in untouchedtracedecay-graph-db)cargo test -p tracedecay-lcm: 162 passed, 0 failed, 1 ignored across 5 suites