diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 00:02:03 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 00:02:03 +0300 |
| commit | 9825792aed800d9011e13d665a15a564e137ceb3 (patch) | |
| tree | ac3b800d89a802137aaa2c66d9edb2944671a776 /test/python/test_get_test_token.py | |
| parent | 81662183f5cad305d7c011fc53b6bb750b3b0833 (diff) | |
| download | genenetwork4-9825792aed800d9011e13d665a15a564e137ceb3.tar.gz | |
* tests/search_parity.rs (search parity): add the 54-shape harness.
* test/data/parity-fixtures (Q01-Q54, reduced-v1): commit the corpus. * test/data/parity-fixtures/reduce_fixtures.py: regenerate it from a full recording corpus. Grades any implementation behind /search against 54 recorded production shapes per parity-metric.md: status, full match-set equality, a Jaccard >= 0.8 top-10 floor for sets of 10 or more, error-class mapping (recorded gn3 4xx -> 422 invalid_query, recorded 500 -> 502 backend_error, surface -> 400 invalid_parameter with no upstream call), and exactly-once upstream-call assertions. Hermetic: axum stubs stand in for gn3 and gn-auth, tokens are minted with the committed test key, no network. The committed corpus is reduced-v1: 109 MB of recorded payloads reduced to 6.6 MB of graded essentials (sorted identifier set, the recorded first-ten order, status); the raw corpus stays out of git. The loader sniffs full and reduced files in one directory, and the stub serves reduced bodies reconstructed top-ten-first so grading is identical either way; reduced files also self-verify against the shape table at load time. The generator parses the shape table from this test so the two cannot drift, and fails loudly on any hit lacking (dataset, name). Calibrated 54/54 against the forwarding route on both the full and the reduced corpus; negative controls prove it fails loudly. Runs by default from the committed corpus; GN4_PARITY_FIXTURES overrides for external corpora, GN4_PARITY_REPORTS relocates the report (default target/parity-reports).
Diffstat (limited to 'test/python/test_get_test_token.py')
0 files changed, 0 insertions, 0 deletions
