Repository navigation
test: search conformance suite layer (i) — metadata golden table for 15 searches - #1667
Merged
Merged
Conversation
…15 searches (#1666) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QJmrnXNQdq6HSruUt3MqVW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase A0a(i) of the
search-extensibilityepic (closes #1666). A tests-only, parametrised metadata/serialization conformance suite over all 15 public searches, collecting and passing on every CI leg including Heart'sunittest-nojax. It freezes a golden table per search (default-construction identifier,__identifier_fields__, constructor-argument names) generated from main 908ca61, so every later refactor phase of track A is checked against today's identifiers. No library source changes; no identifier changes.Checks per search: default construction, family base class, identifier golden (with
PYAUTO_TEST_MODEremoved, since test mode changes Emcee/Zeus identifiers), constructor-argument set,search.jsonround trip (af.to_dict→ JSON →af.from_dict→af.to_dict), andconf.instanceunchanged by construction (under anoutput.search_internal: falseoverride, because the test config'struemasks the mutation).Strict xfails (each pinned to one exception type with
raises=), recording known defects that later epic phases repair:BlackJAXNUTS,SMC— the serialisedinverse_mass_matrixkind string is rejected by the constructor (phase A0b);Emcee,BlackJAXNUTS,SMC—__init__setsconf.instance["output"]["search_internal"] = True(phase A3).Classes are resolved lazily by class-path string inside the tests; only
NSSconstruction requiresblackjaxand skips when it is absent. No module-levelimportorskip.API Changes
None. Tests only.
Test Plan
pytest test_autofit/non_linear/search/test_conformance.py: 101 passed, 5 xfailed (full env; also withPYAUTO_TEST_MODE=1)pytest test_autofit/non_linear: 1023 passed, 1 skipped, 5 xfailedfind_specreturns None for them): module collects, 97 passed, 4 skipped (NSS construction cases), 5 xfailedDrawer(total_draws=51)fails exactlytest_identifier_golden[Drawer](1 failed, 100 passed, 5 xfailed); reverted--runxfailconfirms exactly the five listed cases fail and nothing elseunittest(3.12, 3.13) andunittest-nojaxlegs greenFull API Changes (for automation & release notes)
Removed
Added
test_autofit/non_linear/search/conformance_roster.py,test_autofit/non_linear/search/test_conformance.py)Migration
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01QJmrnXNQdq6HSruUt3MqVW