text
stringlengths
0
2.43k
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ::test_public_branch_physics
PASSED ::test_hidden_independent_finite_difference_spectrum
FAILED ::test_artifacts_manifest_and_input_integrity - KeyError: 'completed'
FAILED ::test_public_profiles_independent - AssertionError: assert {'first-ex...
FAILED ::test_public_spectrum_turning_and_convergence - assert 64 == 12
FAILED ::test_hidden_changed_family_replay - KeyError: 'completed'
FAILED ::test_malformed_inputs_fail_closed - subprocess.TimeoutExpired: Comma...
==================== 5 failed, 2 passed in 92.79s (0:01:32) ====================
============================= test session starts ==============================
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3
rootdir: /app
configfile: ../dev/null
plugins: json-ctrf-0.3.5
collecting ... collected 7 items
::test_artifacts_manifest_and_input_integrity FAILED [ 14%]
::test_public_branch_physics FAILED [ 28%]
::test_public_profiles_independent FAILED [ 42%]
::test_public_spectrum_turning_and_convergence FAILED [ 57%]
::test_hidden_changed_family_replay FAILED [ 71%]
::test_hidden_independent_finite_difference_spectrum FAILED [ 85%]
::test_malformed_inputs_fail_closed FAILED [100%]
=================================== FAILURES ===================================
_________________ test_artifacts_manifest_and_input_integrity __________________
public_instance = {'boundary_value': {'initial_mesh_points': 560, 'max_nodes': 36000, 'origin_fraction': 2.5e-06, 'tolerance': 2e-07}, '..., 'profile_anchor_count': 2, 'refined_tolerance_factor': 0.35}, 'domain': {'profile_points': 801, 'radius': 40.0}, ...}
def test_artifacts_manifest_and_input_integrity(public_instance: dict[str, Any]) -> None:
assert {path.name for path in RESULTS.iterdir()} == REQUIRED_ARTIFACTS
assert all(path.is_file() and not path.is_symlink() for path in RESULTS.iterdir())
manifest = load_json(RESULTS / "manifest.json")
assert manifest["schema_version"] == RESULT_SCHEMA
> assert manifest["completed"] is True
^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'completed'
/verifier/test_outputs.py:861: KeyError
__________________________ test_public_branch_physics __________________________
public_instance = {'boundary_value': {'initial_mesh_points': 560, 'max_nodes': 36000, 'origin_fraction': 2.5e-06, 'tolerance': 2e-07}, '..., 'profile_anchor_count': 2, 'refined_tolerance_factor': 0.35}, 'domain': {'profile_points': 801, 'radius': 40.0}, ...}
public_branch = [{'bvp_max_rms_residual': '1.9608649886801219e-07', 'bvp_mesh_nodes': '629', 'central_amplitude': '0.18', 'chemical_po...674e-07', 'bvp_mesh_nodes': '708', 'central_amplitude': '0.52', 'chemical_potential': '-0.9196231268316327', ...}, ...]
def test_public_branch_physics(public_instance: dict[str, Any], public_branch: list[dict[str, str]]) -> None:
expected_rows = sum(len(family["amplitudes"]) for family in public_instance["continuation"]["families"])
assert len(public_branch) == expected_rows
evidence = []
for family in public_instance["continuation"]["families"]:
rows = rows_by_family(public_branch, family["family_id"])
assert [int(row["state_index"]) for row in rows] == list(range(len(rows)))
assert np.max(np.abs(np.array([float(row["central_amplitude"]) for row in rows]) - np.array(family["amplitudes"]))) < 1e-12
assert all(int(row["node_count"]) == family["node_count"] for row in rows)
masses = np.array([float(row["mass"]) for row in rows])
maximum_index = int(np.argmax(masses))
assert 0 < maximum_index < len(masses) - 1
margin = float(public_instance["convergence"]["minimum_mass_turning_margin"])
assert masses[maximum_index] - masses[maximum_index - 1] > margin
assert masses[maximum_index] - masses[maximum_index + 1] > margin
for row in rows:
numeric = [float(value) for key, value in row.items() if key not in {"family_id"}]
assert np.all(np.isfinite(numeric))
assert int(row["observed_node_count"]) == family["node_count"]
assert float(row["mass"]) > 0.0
assert float(row["chemical_potential"]) < 0.0
assert abs(
float(row["total_energy"]) - sum(float(row[key]) for key in ("kinetic_energy", "contact_energy", "gravitational_energy"))
) < 2e-9 * max(1.0, abs(float(row["total_energy"])))
assert float(row["stationary_identity_residual"]) < 4e-4
assert float(row["virial_residual"]) < 4e-4
assert float(row["green_potential_residual"]) < 0.012
assert float(row["field_equation_residual"]) < 2e-5
> assert float(row["poisson_equation_residual"]) < 2e-5
E AssertionError: assert 2.332263799361399e-05 < 2e-05
E + where 2.332263799361399e-05 = float('2.332263799361399e-05')
/verifier/test_outputs.py:912: AssertionError
_______________________ test_public_profiles_independent _______________________
public_instance = {'boundary_value': {'initial_mesh_points': 560, 'max_nodes': 36000, 'origin_fraction': 2.5e-06, 'tolerance': 2e-07}, '..., 'profile_anchor_count': 2, 'refined_tolerance_factor': 0.35}, 'domain': {'profile_points': 801, 'radius': 40.0}, ...}
public_branch = [{'bvp_max_rms_residual': '1.9608649886801219e-07', 'bvp_mesh_nodes': '629', 'central_amplitude': '0.18', 'chemical_po...674e-07', 'bvp_mesh_nodes': '708', 'central_amplitude': '0.52', 'chemical_potential': '-0.9196231268316327', ...}, ...]
def test_public_profiles_independent(public_instance: dict[str, Any], public_branch: list[dict[str, str]]) -> None:
> evidence = validate_profiles(RESULTS, public_instance, public_branch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/verifier/test_outputs.py:920:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/verifier/test_outputs.py:168: in validate_profiles
index = load_json(result_path / "profile_index.json")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
path = PosixPath('/root/results/profile_index.json')
def load_json(path: Path) -> dict[str, Any]:
assert path.is_file() and not path.is_symlink()
parsed = json.loads(path.read_text())
> assert isinstance(parsed, dict)