Skip to content

feat: test_mode_samples() accessor for PYAUTO_TEST_MODE_SAMPLES#126

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/test-mode-representative-samples
Jul 17, 2026
Merged

feat: test_mode_samples() accessor for PYAUTO_TEST_MODE_SAMPLES#126
Jammy2211 merged 1 commit into
mainfrom
feature/test-mode-representative-samples

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds test_mode_samples() to autoconf/test_mode.py — reads PYAUTO_TEST_MODE_SAMPLES (default 4, the historical test-mode bypass sample count; values below 4 raise ValueError). Consumed by PyAutoFit's test-mode sampler bypass to write samples.csv files whose row count and byte size match a production sampler stage (PyAutoLabs/PyAutoFit#1379; design locked on PyAutoLabs/PyAutoFit#1378).

Merge order: this PR merges before the paired PyAutoFit PR (dependency direction autofit → autoconf).

API Changes

Added one accessor: autoconf.test_mode.test_mode_samples(). Nothing existing changed — with the env var unset every consumer behaves exactly as before.
See full details below.

Test Plan

  • pytest test_autoconf/ — 138 passed (3 new: default returns 4; env value returned; below-4 raises)
Full API Changes (for automation & release notes)

Added

  • autoconf.test_mode.test_mode_samples() — returns int(os.environ.get("PYAUTO_TEST_MODE_SAMPLES", "4")); raises ValueError for values below 4 (4 is the minimum preserving the bypass sample structure).

Migration

  • None — additive, default-off.

Generated by the PyAutoLabs agent workflow.

Number of fake samples the test-mode sampler bypass writes (default 4 =
historical behaviour; values below 4 raise). Consumed by PyAutoFit's
_build_fake_samples to write size-realistic samples.csv outputs
(PyAutoFit#1379; design locked on PyAutoFit#1378).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 17, 2026
@Jammy2211
Jammy2211 merged commit a3e7673 into main Jul 17, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/test-mode-representative-samples branch July 17, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant