mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3205
Author: @ctr-137
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:calibrate-output-dir-3187📝 Commits (1)
2068c43Calibration measure: refuse a missing output directory before the sweep (#3187)📊 Changes
2 files changed (+13 additions, -0 deletions)
View changed files
📝
strata_control/calibration.py(+2 -0)📝
tests/terminal/test_calibration.py(+11 -0)📄 Description
The problem
strata engine calibrate --measurechecks the report path up front, but not the directory it should land in. That check only ran in_write_new, after the sweep, so a full measurement (8 engine starts, 177 measurements, ~19 minutes on the reporter's machine) ended withreport output directory does not existand no report for--review-result/--apply-resultto consume.What it does
The parent-directory check now runs in
_measure_lockednext to the existing "report path already exists" check, so the refusal happens in a second instead of after the sweep. Same message, same exit code (5)._write_newkeeps its check as the last word. Nothing is created: the tool still refuses rather than making a directory.Validation
Environment:
main@f57c0adc(the branch base), Windows 11, Python 3.14.7.test_measure_refuses_a_missing_output_directory_before_the_sweepintests/terminal/test_calibration.py: one case for a missing directory, one for a parent that is a file. It uses a runner that fails if the sweep starts, so it only passes when the refusal comes first.calibration measurement failed (AssertionError); config unchangedinstead of the refusal, which is the sweep having run and only the write failing.tests/terminal: 701 tests with the change, 700 without, and the same 24 problems in both runs (7 failures, 17 errors) — the two lists are identical. Those are this machine's pre-existing Windows problems in the process and liveness tests plus loader errors, not the change.pytestis not installed here, so I ranpython -m unittest discover -s tests/terminal.Limits
strata engine calibrate --measure. The issue also namessetup.py --calibrate, which writes its own record and does not fail; I left it alone.Fixes #3187
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.