about summary refs log tree commit diff
path: root/test/python/test_mapping_methods.py
diff options
context:
space:
mode:
authorAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 09:40:32 +0300
committerAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 09:40:32 +0300
commite469eb1d496bb5ca08a8eb264bfaead2816670e3 (patch)
treeaf433b43868128f2e5bfcc798b512fc5312e4c04 /test/python/test_mapping_methods.py
parent2326f8275a592e266ec8838cf694998d13f4968a (diff)
downloadgenenetwork4-e469eb1d496bb5ca08a8eb264bfaead2816670e3.tar.gz
src/search/native.rs (tests): fix the C3.2/C3.3 parser-test defects the guix attempt-4 check phase exposed.
Three defects in the committed C3.2/C3.3 test code, all found by guix
attempt 4's check phase (drv jlsjsw7i, phase `check', cargo test
--offline; log: logs/guix-c1-3.log attempt-4 section) after the build
phase had already proven the vendoring mechanism and the fork link
(287 s):

1. E0596 x2: the `terms` and `prefixed` closures borrow `qp` mutably,
   so both bindings need `let mut` (rustc 1.85.1 diagnostics in the
   guix log; the same E0596 sat unnoticed in logs/c3-3.log above a
   bogus "LIB_EXIT=0" — the dev-shell gate script swallowed cargo's
   exit status; fixed by re-running the gates with explicit status
   capture, logs/fix-fulltest.log).

2. The C3.2 boolean test asserted the WRONG index term for group:B6:
   `XGbxd`, with a message claiming "group:B6 must lowercase to
   XGbxd". That is the r1-test BXD case: search.py:204-209 lowercases
   the VALUE and concatenates behind XG, so B6 -> XGb6 (xapian-delve
   on the dev index: terms XGb6, XGb6btbrf2, XGb6d2, XGb6d2f2,
   XGb6d2ri exist for group B6; XGbxd exists separately for the BXD
   value). Corrected to XGb6 / !XGB6. The 13a7cb1 commit message
   itself repeats the wrong "group:B6 -> XGbxd" claim — history is
   left intact, corrected here and in LANE-REPORT/REVIEW.

3. The C3.3 probabilistic test asserted the non-stemmed field prefix
   (XD/XRF/XWK), but with STEM_ALL_Z the parsed field term is
   Z+<prefix>+stem — exactly what d563910's own commit message
   describes ("wiki:diabetes -> ZXWKdiabet") and what the production
   indexer emits (dev index: 9678 ZXWK* terms, 47868 ZXRF* terms,
   ZERO XWKZ/XRFZ/XDZ terms). Corrected to ZXD/ZXRF/ZXWK, making the
   assertion pin the exact indexed term form instead of a form that
   never occurs.

Because of defect 1 neither test ever ran at commit time — the
C3.3 "lib tests green / FULL suite EXIT=0" evidence was a false
positive of the broken exit capture, now re-established with real
status capture.
Diffstat (limited to 'test/python/test_mapping_methods.py')
0 files changed, 0 insertions, 0 deletions