Complete P3 F3 evaluation and Windows execution
Implement the frozen F3 protocol, nested LOWO, posterior label banks, ablations, diagnostics, checkpoint validation and full-volume inference. Record the negative G-C result: improvement at 1/4 wells, coverage80 52.38% and coverage90 60.91%, with unchanged thresholds and historical P2 results. Add native Windows logging, the RTX 3060 environment lock, detached runs, and an audited dashboard-lock recovery that preserves frozen scientific code. Update report.html, the plan and agent guidance with completed P3 status. Archive thesis sources under code_thesis with identical Git blobs and record the original-output audit without committing large data or model artifacts. Validation: 129 tests passed, 13 skipped; CUDA end-to-end smoke passed; completion audit verified 1,320 checkpoint/prediction pairs, 28 registration bundles and all 649 interior volume inlines. Scripts 04 and 09 were not rerun. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
@@ -9,6 +9,8 @@ import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from ml_porosity.paths import REPO_ROOT
|
||||
|
||||
CHILD = ("import subprocess, sys; print('out-parent'); print('err-parent', file=sys.stderr); "
|
||||
@@ -47,8 +49,9 @@ def test_failure_keeps_exit_code(tmp_path):
|
||||
|
||||
|
||||
def test_nested_steps_go_into_parent(tmp_path):
|
||||
inner = f"{sys.executable} -m ml_porosity.runlog -n step -- {sys.executable} -c 'print(1)'"
|
||||
p = launch(tmp_path, "-n", "parent", "--", "bash", "-c", f"{inner} && {inner}")
|
||||
inner = [sys.executable, '-m', 'ml_porosity.runlog', '-n', 'step', '--', sys.executable, '-c', 'print(1)']
|
||||
code = f'import subprocess; cmd={inner!r}; subprocess.run(cmd, check=True); subprocess.run(cmd, check=True)'
|
||||
p = launch(tmp_path, "-n", "parent", "--", sys.executable, '-c', code)
|
||||
p.communicate(timeout=60)
|
||||
assert p.returncode == 0
|
||||
(d,) = runs(tmp_path)
|
||||
@@ -57,6 +60,7 @@ def test_nested_steps_go_into_parent(tmp_path):
|
||||
assert [r["parent"] for r in rows] == [d.name, d.name, ""]
|
||||
|
||||
|
||||
@pytest.mark.skipif(os.name == 'nt', reason='Windows TerminateProcess bypasses Python signal handlers; POSIX SIGTERM semantics do not apply')
|
||||
def test_sigterm_marks_interrupted(tmp_path):
|
||||
p = launch(tmp_path, sys.executable, "-c", "import time; print('started', flush=True); time.sleep(60)")
|
||||
t0 = time.time()
|
||||
|
||||
Reference in New Issue
Block a user