Repository navigation
test: search conformance suite layer (ii), backend execution of the 15 searches (search-extensibility A0a(ii)) - #1673
Merged
Conversation
…ches - test_conformance_backend.py runs every search's real backend at PYAUTO_TEST_MODE=1 with real DirectoryPaths: the archived output file set (generic files, samples.csv/samples_info.json, covariance.csv for PDF families, the backend's own search_internal file), completed-path resume without a second _fit call, a NullPaths fit, the A0b narrowed samples_from fallback, and frozen samples_info key sets per search and family. - Capability-matched likelihoods: numpy for jax_use none/optional, jax.numpy for required (NSS, BlackJAXNUTS, SMC, MultiStart x4). - The roster declares jax_use and jax_modules; on unittest-nojax a search skips only by that declared capability, never by importorskip. - Strict xfails: Dynesty x2 restored-output samples_from falls back to samples.csv (A3); MCMC x4 import-time auto_correlation_settings default ignores a run-time PYAUTO_TEST_MODE (A4). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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(ii) of the search-extensibility epic (PyAutoFit#1671): the backend-execution layer of the search conformance suite. Tests only. Stacked on #1672 (A0b): this PR's base is
feature/search-ext-a0b-hygienebecause it asserts A0b's Drawer/NullPathsandsamples_fromrepairs; merge #1672 first, then this one (GitHub retargets it tomainwhen the base branch goes). Shipped under the human's 2026-10-08--autolaunch; tier judge.test_autofit/non_linear/search/test_conformance_backend.pyover the 15-search roster atPYAUTO_TEST_MODE=1, fits cached once per module: (a) realDirectoryPathsfit asserting the exact output file set inside the zip, (b) completed-path resume (_fitcall counter 1 then 0), (c)NullPathsfit returns aResultwith samples, (d)samples_from(model, None)raises its real error and falls back only onFileNotFoundError/NotImplementedErrorwith the WARNING, (e) frozensamples_infokey sets per search plus a shared family core.conformance_roster.pygains the declared capability attributes layer (i) left out:jax_use(none/optional/required) andjax_modules. Golden table unchanged.unittest-nojaxsearches skip by declared capability only, neverimportorskip.Six strict xfails for real library bugs, each naming its repair phase:
samples_via_internal_from(None)readssavestate.save, whichoutput_search_internaldeletes, so a restored folder always falls back tosamples.csv.auto_correlation_settings=AutoCorrelationsSettings()default is built at import time, so test mode'scheck_size=1only applies whenPYAUTO_TEST_MODEis set before import.One test-side workaround follows from item 2: Emcee gets a fresh
AutoCorrelationsSettings()built under test mode, or a 10-step chain crashes inemcee.autocorr. Documented in the module. Minor findings not tested: Drawer'ssamples_info["time"]isNoneeven with real paths; NSS writes"time"as a float where every other search writes a string.API Changes
None (tests only).
Test Plan
pytest test_autofit/non_linear/search -x: 604 passed, 1 skipped, 9 xfailedpytest test_autofit -x: 3207 passed, 2 skipped, 9 xfailedunittest-nojaxemulated: 71 passed, 65 skipped (exactly NSS, BlackJAXNUTS, SMC, MultiStart×4, all by declared capability), 4 xfailed (re-run by the reviewing session)Full API Changes (for automation & release notes)
Removed
Added
Migration
Validation checklist (--auto run — plan was not pre-approved)
importorskipabsent from code) · Heart STALErelease validation incomplete: no rehearsal for current sourceGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code