Skip to content

feat: fail smoke scripts when sampler dependencies are missing - #316

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/smoke-sampler-imports
Oct 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/smoke-sampler-imports

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Why

Smoke mode bypasses samplers, allowing tutorials to pass when their backend cannot be imported.

Changes

At PYAUTO_TEST_MODE=2, run a preflight in the actual script interpreter and existing process-group timeout. Collect autofit constructor aliases, read the public search-manifest@1, and import its declared required modules. Detect current corner_cornerpy and legacy plotter corner calls too. Failures flow through the existing per-script report. Other modes retain direct execution; working directory, arguments and sibling imports are preserved.

No duplicated sampler registry. Static detection is conservative: dynamically selected constructors are not inferred, alias reassignment is not tracked, and calls in unexecuted branches can require a backend. Heart consumers delegate to this shared Hands harness; no Heart edits required for this task.

Validation

  • Targeted guard/registry tests: 20 passed, including missing/present/broken imports, aliases, manifest errors, script failures, argv and timeout.
  • Full suite before final corner/cap regressions: 501 passed, 9 skipped, 1 process-reaping test failure. The same failure was previously reproduced on untouched baseline f27613f in this environment; timeout implementation unchanged.
  • Independent Sol review CLEAN after fixing the review's corner_cornerpy finding. Tenant firewall and diff check pass.
  • Real HowToFit tutorial_6_gradients.py (HowToFit e9acbbc1, Autofit 4b183e22): same run_python.py command with actual smoke profile fails in 0.3s without blackjax, naming BlackJAXNUTS and blackjax; after installing blackjax1.7.1 it passes in 14.8s. Structured reports preserve both results. Tested in an isolated fresh Python3.12 environment.

Heart at resume: STALE (Release STALE; monitoring RED; snapshot11h old). No release. Tier notify: auto-merge permitted only after exact-head CI green; no background waiter.

Closes #313.

@Jammy2211
Jammy2211 merged commit 7ac11d7 into main Oct 16, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/smoke-sampler-imports branch October 16, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: detect missing sampler dependencies in smoke mode

1 participant