Skip to content

fix: mark test-mode bypassed fits complete so they are resumable (#1387) - #1388

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

Jammy2211 merged 1 commit into
mainfrom
feature/test-mode-bypass-completed

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

_fit_bypass_test_mode (PYAUTO_TEST_MODE=2/3) wrote samples/summary/results but returned without self.paths.completed(), so bypassed fits were never seen as complete and reruns re-bypassed every stage instead of resuming. One-line fix mirroring start_resume_fit, found via autolens_profiling#70 (the profiler carried a runtime stopgap, to be removed when the profiling repo's current claim frees).

API Changes

None — behavioural fix only: a bypassed fit now leaves a .completed marker (zipped with the output), making test-mode pipelines resumable like production ones.

Test Plan

  • New TestBypassWritesCompleted: the marker lands in the output zip; a second fit() with a poisoned start_resume_fit routes through the completed path.
  • Full test_autofit/ suite: 1497 passed / 1 skipped.

Closes #1387.

🤖 Generated with Claude Code

_fit_bypass_test_mode returned without paths.completed(), unlike
start_resume_fit — so a bypassed fit was never seen as complete and a
rerun re-bypassed the whole pipeline instead of taking
result_via_completed_fit. Found by the SLaM resume profiler
(autolens_profiling#70), which carried a runtime stopgap; defeats the
resume-representative purpose of PYAUTO_TEST_MODE_SAMPLES (#1378/#1381).

Fixes #1387.

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 352e1e1 into main Jul 17, 2026
5 checks passed
@Jammy2211
Jammy2211 deleted the feature/test-mode-bypass-completed branch July 17, 2026 09:10
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 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.

fix: test-mode bypass never writes .completed, so bypassed fits are not resumable

1 participant