Repository navigation
SWF(perf): Bucket ref-update visibility by repo name - #660
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
jatmn
left a comment
There was a problem hiding this comment.
🟢 Thanks for the contribution. I do not see any actionable issues from my review.
Merge readiness
- Review policy: Required checks were green at review time; branch protection may still require this approval before merge.
- Base freshness: PR base matched live
mainat review time (617e87630ea9cbb6056afea369693aae80436dac); no rebase needed for target drift. - Optional follow-up:
collect_visible_ref_updates_innercomments still describe a separate quarantine pass in the loop; the loop now uses unifiedRefUpdateRepoIndex::row_visible. Updating that comment is cosmetic, not merge-blocking.
Findings
(none)
Review method: full merge-gate campaign (primary + 2×2 blind searches). Indexed gate is equivalent to the prior full scan because ref_update_row_names_repo still requires exact repo name equality before owner-prefix matching; quarantine veto remains before listable_at_root.
|
Updated the comment in |
Build one exact-name repo index per request for the REST and GraphQL ref-update feeds, and check only same-name candidates.
Quarantine still vetoes a matching row even for the owner. Owner-prefix matching, keyset paging, and output order are unchanged.
d4cbdb3), full scanThe Rust harness runs main's full-scan gate and the production indexed gate on the same preloaded window: 30,000 active repos, 2,000 quarantined repos, and 2,048 newest-first rows (1,792 private, 128 quarantined, 128 visible). It checks ordered output equality, then alternates the two paths for 40 timed windows each. The indexed timing includes building and dropping the index. Matcher calls come from fixture positions and short-circuit points, not counters in the timed loops. CPU is Linux thread CPU time; p95 is nearest-rank wall time. Optimized Rust 1.99.1, LTO off, Ubuntu x86_64 VM with four Xeon vCPUs, single test thread with affinity to CPUs 2 and 3. This measures the in-memory gate, not SQL, owner resolution, or HTTP latency.
A separate seeded test compares ordered row IDs and slugs against the full scan for all 2,048 events on a 12,288-repo catalog, for anonymous, owner, and rule-reader callers. The Postgres-backed workspace suite passed, including the REST and GraphQL feed tests. Strict Clippy hits the same
clippy::double_must_useerrors on main atblockstore/mod.rs:114under this toolchain; it passes on the branch with only that lint allowed.CARGO_PROFILE_RELEASE_LTO=false cargo test --locked --release -p twigpine-node --lib bench_ref_update_visibility -- --ignored --nocaptureSummary by CodeRabbit