Skip to content

refactor: separate PYAUTOFIT_TEST_MODE into distinct PYAUTO_* env vars#86

Merged
Jammy2211 merged 1 commit intomainfrom
feature/test-mode-separate
Apr 12, 2026
Merged

refactor: separate PYAUTOFIT_TEST_MODE into distinct PYAUTO_* env vars#86
Jammy2211 merged 1 commit intomainfrom
feature/test-mode-separate

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Split the catch-all PYAUTOFIT_TEST_MODE into purpose-specific environment variables under a unified PYAUTO_* prefix. Adds skip_fit_output(), skip_visualization(), and skip_checks() to autoconf.test_mode alongside the existing test_mode_level() / is_test_mode(). Renames PYAUTOFIT_TEST_MODEPYAUTO_TEST_MODE.

API Changes

Three new public functions added to autoconf.test_mode (and re-exported from autoconf): skip_fit_output(), skip_visualization(), skip_checks(). The env var PYAUTOFIT_TEST_MODE is renamed to PYAUTO_TEST_MODE. See full details below.

Test Plan

  • All 71 PyAutoConf tests pass
  • All 1205 PyAutoFit tests pass (downstream consumer)
  • Import verification with env vars set and unset
Full API Changes (for automation & release notes)

Added

  • autoconf.test_mode.skip_fit_output() — returns True when PYAUTO_SKIP_FIT_OUTPUT=1
  • autoconf.test_mode.skip_visualization() — returns True when PYAUTO_SKIP_VISUALIZATION=1
  • autoconf.test_mode.skip_checks() — returns True when PYAUTO_SKIP_CHECKS=1

Changed Behaviour

  • test_mode_level() now reads PYAUTO_TEST_MODE instead of PYAUTOFIT_TEST_MODE

Migration

  • Before: export PYAUTOFIT_TEST_MODE=2
  • After: export PYAUTO_TEST_MODE=2

🤖 Generated with Claude Code

Split the catch-all PYAUTOFIT_TEST_MODE into purpose-specific variables:
- PYAUTO_TEST_MODE (sampler speedup, levels 0-3)
- PYAUTO_SKIP_FIT_OUTPUT (pre/post-fit I/O, VRAM, result text)
- PYAUTO_SKIP_VISUALIZATION (fit visualization and plotting)
- PYAUTO_SKIP_CHECKS (mesh validation, position resampling, weight thresholds)

Also renames:
- PYAUTOARRAY_OUTPUT_MODE -> PYAUTO_OUTPUT_MODE
- PYAUTO_WORKSPACE_SMALL_DATASETS -> PYAUTO_SMALL_DATASETS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jammy2211
Copy link
Copy Markdown
Collaborator Author

@Jammy2211 Jammy2211 merged commit 7ccb247 into main Apr 12, 2026
2 checks passed
@Jammy2211 Jammy2211 deleted the feature/test-mode-separate branch April 12, 2026 12:26
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.

1 participant