Skip to content

fix: inject test_mode segment into aggregator result paths - #119

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/test-mode-output-path
May 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/test-mode-output-path

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Migration for PyAutoFit #1292, which makes PYAUTO_TEST_MODE namespace AutoFit output paths under output/test_mode/.... The aggregator integration tests hardcode PYAUTO_TEST_MODE=1 inline and reconstruct the result directory by joining conf.instance.output_path with the database name — they need the test_mode/ segment too, otherwise add_directory scrapes an empty bare path and assert i == 2 fails.

Scripts Changed

  • scripts/aggregator/fit_imaging.py — added "test_mode" to result_path composition in clean() and aggregator_from() (2 sites)
  • scripts/aggregator/fit_interferometer.py — same (2 sites)
  • scripts/aggregator/tracer.py — same (2 sites)

Upstream PR

PyAutoLabs/PyAutoFit#1292

Test Plan

  • All 3 scripts pass under PYAUTO_TEST_MODE=2 with the worktree's modified autofit
  • /smoke_test autolens_workspace_test green

🤖 Generated with Claude Code

PyAutoFit #1292 makes PYAUTO_TEST_MODE prepend a test_mode/ segment to
AutoFit's output paths. These aggregator integration tests hardcode
PYAUTO_TEST_MODE=1 inline and then reconstruct the result directory
from conf.instance.output_path; without the segment, agg.add_directory
scrapes an empty bare path and the assertions fail.

Adds "test_mode" to every path.join(conf.instance.output_path, ...)
site that points at a search-output directory. SQLite database file
paths stay bare — those files are created at the conf output_path root
by Aggregator.from_database, which takes an absolute filename and so
bypasses the autofit path-mutation logic.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 22, 2026
@Jammy2211
Jammy2211 merged commit d9353ec into main May 22, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/test-mode-output-path branch May 22, 2026 17:57
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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