text stringlengths 0 218 |
|---|
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /root |
configfile: ../dev/null |
plugins: json-ctrf-0.3.5 |
collecting ... collected 3 items |
::test_visible_outputs_are_physically_correct FAILED [ 33%] |
::test_reusable_solver_handles_heldout_configuration FAILED [ 66%] |
::test_no_oracle_or_skill_leakage_in_agent_image PASSED [100%] |
=================================== FAILURES =================================== |
_________________ test_visible_outputs_are_physically_correct __________________ |
def test_visible_outputs_are_physically_correct() -> None: |
result = load_json(OUT / "result.json") |
by_id = {entry["id"]: entry for entry in result["configs"]} |
assert set(by_id) == {cfg["id"] for cfg in VISIBLE_CONFIGS["configs"]}, "result.json config ids mismatch" |
for cfg in VISIBLE_CONFIGS["configs"]: |
pulse = load_json(OUT / f"pulse_{cfg['id']}.json") |
> check_one_config(cfg, by_id[cfg["id"]], pulse, cfg["id"]) |
/verifier/test_outputs.py:266: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:228: in check_one_config |
np.testing.assert_allclose(np.asarray(pulse["mode_freqs_hz"], dtype=float), freqs, rtol=5e-8, atol=0.03, err_msg=f"{where}: mode frequencies") |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
args = (<function assert_allclose.<locals>.compare at 0x77228b1519e0>, array([2510854.64746303, 2490810.73363636, 2473679.091...0. ]), array([2450000. , 2440102.45686529, 2426089.8073354 , |
2408497.84911714, 2387594.80216248])) |
kwds = {'equal_nan': True, 'err_msg': 'chain5_pair13: mode frequencies', 'header': 'Not equal to tolerance rtol=5e-08, atol=0.03', 'verbose': True} |
@wraps(func) |
def inner(*args, **kwds): |
with self._recreate_cm(): |
> return func(*args, **kwds) |
^^^^^^^^^^^^^^^^^^^ |
E AssertionError: |
E Not equal to tolerance rtol=5e-08, atol=0.03 |
E chain5_pair13: mode frequencies |
E Mismatched elements: 5 / 5 (100%) |
E Max absolute difference: 62405.19783752 |
E Max relative difference: 0.02613726 |
E x: array([2510854.647463, 2490810.733636, 2473679.091302, 2459857.719463, |
E 2450000. ]) |
E y: array([2450000. , 2440102.456865, 2426089.807335, 2408497.849117, |
E 2387594.802162]) |
/usr/local/lib/python3.12/contextlib.py:81: AssertionError |
______________ test_reusable_solver_handles_heldout_configuration ______________ |
def test_reusable_solver_handles_heldout_configuration() -> None: |
solver = OUT / "solve.py" |
assert solver.exists(), "missing reusable /root/output/solve.py" |
with tempfile.TemporaryDirectory() as tmp: |
tmpdir = Path(tmp) |
input_path = tmpdir / "heldout.json" |
output_dir = tmpdir / "out" |
input_path.write_text(json.dumps(HELDOUT_CONFIGS, indent=2) + "\n") |
proc = subprocess.run( |
["python3", str(solver), "--input", str(input_path), "--output-dir", str(output_dir)], |
cwd=str(ROOT), |
text=True, |
stdout=subprocess.PIPE, |
stderr=subprocess.STDOUT, |
timeout=240, |
check=False, |
) |
(LOGS / "heldout_solve_stdout.txt").write_text(proc.stdout) |
assert proc.returncode == 0, f"solve.py failed on heldout config:\n{proc.stdout}" |
result = load_json(output_dir / "result.json") |
by_id = {entry["id"]: entry for entry in result["configs"]} |
assert set(by_id) == {"heldout_chain8_pair26"}, "heldout result id mismatch" |
cfg = HELDOUT_CONFIGS["configs"][0] |
pulse = load_json(output_dir / "pulse_heldout_chain8_pair26.json") |
> check_one_config(cfg, by_id[cfg["id"]], pulse, "heldout") |
/verifier/test_outputs.py:293: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:228: in check_one_config |
np.testing.assert_allclose(np.asarray(pulse["mode_freqs_hz"], dtype=float), freqs, rtol=5e-8, atol=0.03, err_msg=f"{where}: mode frequencies") |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
args = (<function assert_allclose.<locals>.compare at 0x77228b1be8e0>, array([2683400.84683794, 2662422.36018496, 2643223.061...127.61569594, |
2548923.62976467, 2533234.93735343, 2515188.23253936, |
2494856.14335927, 2472278.28028498])) |
kwds = {'equal_nan': True, 'err_msg': 'heldout: mode frequencies', 'header': 'Not equal to tolerance rtol=5e-08, atol=0.03', 'verbose': True} |
@wraps(func) |
def inner(*args, **kwds): |
with self._recreate_cm(): |
> return func(*args, **kwds) |
^^^^^^^^^^^^^^^^^^^ |
E AssertionError: |
E Not equal to tolerance rtol=5e-08, atol=0.03 |
E heldout: mode frequencies |
E Mismatched elements: 8 / 8 (100%) |
E Max absolute difference: 107721.71971502 |
E Max relative difference: 0.04357184 |
E x: array([2683400.846838, 2662422.360185, 2643223.061887, 2625932.358656, |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 23