relayburn-sdk: collapse analyze/compare_archive.rs into compare.rs#349
relayburn-sdk: collapse analyze/compare_archive.rs into compare.rs#349willwashburn merged 1 commit intomainfrom
Conversation
) The module was a 5-line wrapper around `Ledger::query_turns` + `build_compare_table` plus ~700 lines of fixture/helper boilerplate to test what is fundamentally a delegation. Most tests duplicated coverage already provided by `build_compare_table`'s own tests (`groups_unclassified_turns_under_unclassified`, the model-filter cases, the min-sample flagging, etc.) or by the ledger's query tests (since/project/session filters). Move `compare_from_archive` + `CompareFromArchiveResult` into `compare.rs` next to `build_compare_table`; replace the nine mostly-redundant tests with one focused round-trip smoke test that appends turns to a real ledger and verifies the wrapper produces the expected shape. SDK surface unchanged — `compare_from_archive` and `CompareFromArchiveResult` still re-exported from `relayburn_sdk::analyze`. Closes #347. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
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 with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR consolidates comparison functionality by moving ChangesModule Consolidation
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Collapse
analyze/compare_archive.rsintoanalyze/compare.rs. The module was a 5-line wrapper aroundLedger::query_turns + build_compare_tablewith ~700 lines of fixture/helper boilerplate; consolidating drops a maintenance surface that documented itself as redundant.compare_from_archive+CompareFromArchiveResultintoanalyze/compare.rs.build_compare_table's own tests and the ledger's query tests).compare_from_archive/CompareFromArchiveResultre-exports fromrelayburn_sdk::analyze— SDK surface unchanged.Net: +83 / -758 LOC.
Closes #347.
Test plan
cargo build --workspace --all-targetscleancargo test --workspacepasses (all suites green)cargo clippy --workspace --all-targetswarning count unchanged (22 → 22 vsmain)compare_from_archivestill exported fromrelayburn_sdk::analyze::compare_from_archiveand viarelayburn_sdk::CompareFromArchiveResult🤖 Generated with Claude Code