Repository navigation
test(fulltext2): cover WAND acceptance paths - #28720
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed complete test-only diff at b3844d5 against the declared 4.2-dev base 4199b11, PR comments and exact-branch WAND/segment/tail helper consumers. No concrete blocker found.
The new acceptance tests prove distinct contracts rather than only repeating an exhaustive result comparison: semantics-preserving Membership counters distinguish WAND candidate admission from full evaluation; replacing block-local bounds with valid term-wide bounds isolates BlockMax's additional pruning, on both built and serialized/loaded representations. The independent scorer derives N/df/average length and BM25/TF-IDF contributions from frozen documents, validates score-to-PK association, uniqueness, above-boundary membership and ordering, while allowing the documented top-k tie choice. The CDC case derives its oracle from the final live corpus so stale versions cannot supply the expected statistics/results.
Lifecycle/cost review: test-local segments/counters, fixed-seed multi-block corpus, small score/tail fixtures and no new sleeps, retries, external server or production instrumentation. Loaded mappings have registered cleanup; base ownership stays with its cleanup until successful tail-index assembly, then transfers to the index. Index.Free retains the segment list, so the following dictionary-close loop remains reachable; build-side segments do not own mmap buffers. The tail builder keeps its existing deferred cleanup. No global mutation or new concurrent writer is introduced.
All added code is one _test.go file; existing suites, runtime interfaces, index dispatch, serialization and 4.2 implementation remain untouched. This is package-level acceptance coverage, not a replacement for the existing SQL BVT, deployed lifecycle acceptance or issue #25541 QA sign-off.
Validation: source/consumer review and reuse of the author's exact-head focused normal/race, owning-package CGo and build/vet evidence. I did not independently rerun native tests, inspect private /tmp logs or perform deployed QA, and did not wait for CI. Remaining deployment/continuous-run acceptance is explicitly recorded and is not a blocker for merging these additive package tests.
|
@Mergifyio queue |
Merge Queue Status
Waiting for
All conditions
|
b824c4e to
3ec64ee
Compare
|
@Mergifyio queue |
☑️ Command
|
|
@Mergifyio refresh |
✅ Pull request refreshed |
What type of PR is this?
Which issue(s) this PR fixes:
issue #25541
What this PR does / why we need it:
Adds deterministic package-level acceptance coverage for the WAND retrieval paths delivered by merged PR #27663 on
4.2-dev.Validation:
/tmp/wand-qa-postcommit-focused-20260911.log,/tmp/wand-qa-postcommit-focused-count3-20260911.log,/tmp/wand-qa-postcommit-owning-20260911.log,/tmp/wand-uncommitted-race.log.b3844d544f6b92ae2f2eb65c9a659d5fa866d9b7on base4199b11c5c7bb24eccdb379cd6f68abcbd89e450.Exact evidence:
882b3736e3b078b40181dd234aa1208e91cbc2b56b2a76239fb86cac3437e1b7801f73e0d5060f32939714471b36dc31e4763a657d2d7771bba8bcddc623ce34QA required: yes — issue #25541 is marked
phase/testingand acceptance includes deployed/lifecycle evidence beyond package tests. Remote deployment, CI, and formal QA remain pending.Remaining validation