fix(node): bound federated repository aggregation - #409
Conversation
|
Thanks for the contribution. A couple of things will help us review this faster:
See CONTRIBUTING.md. Update the PR and these notes will clear automatically. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Limit details: You’ve used the included review currently available. 📝 WalkthroughWalkthroughFederated peer pages now read ChangesFederated truncation propagation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Federated repository results now report truncation when a peer indicates additional rows beyond its returned page, preventing incomplete aggregate results from appearing complete. No current merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Usage-based review receipt
Note This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing. Comment |
Greptile SummaryThe PR bounds federated repository aggregation to control peer response size, concurrency, timeout duration, aggregate rows, and serialized output size.
Confidence Score: 4/5The incomplete peer-page reporting should be fixed before merging because clients can receive an incomplete federated repository set marked as untruncated. The new request intentionally fetches only the first 200 rows from each peer, but it discards the peer's total-count header and derives Files Needing Attention: crates/gitlawb-node/src/api/repos.rs
|
| Filename | Overview |
|---|---|
| crates/gitlawb-node/src/api/repos.rs | Adds bounded peer fetching and aggregate serialization, but fails to mark the result truncated when an individual peer has more than 200 visible repositories. |
Reviews (1): Last reviewed commit: "fix(node): bound federated repository ag..." | Re-trigger Greptile
Summary
No direct issue matching this federated response-boundary fix was found in the GitHub issue or pull request index.
Changes
truncatedresponse field and count peers that returned a valid pageTest plan
cargo fmt --all -- --checkcargo check --workspace --all-targetscargo clippy -p gitlawb-node --bin gitlawb-node -- -D warningscargo clippy -p gitlawb-node --all-targets -- -D warnings -A dead-codeSummary by CodeRabbit
New Features
Bug Fixes