text stringlengths 0 2.43k |
|---|
/verifier/test_outputs.py:1050: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:320: in run_unprivileged_solver |
completed = subprocess.run(command, cwd=case_path, text=True, capture_output=True, timeout=timeout) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/usr/local/lib/python3.12/subprocess.py:550: in run |
stdout, stderr = process.communicate(input, timeout=timeout) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/usr/local/lib/python3.12/subprocess.py:1209: in communicate |
stdout, stderr = self._communicate(input, endtime, timeout) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/usr/local/lib/python3.12/subprocess.py:2116: in _communicate |
self._check_timeout(endtime, orig_timeout, stdout, stderr) |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
self = <Popen: returncode: -9 args: ['setpriv', '--reuid=65534', '--regid=65534', '...> |
endtime = 15597049.209686711, orig_timeout = 45, stdout_seq = [] |
stderr_seq = [], skip_check_and_raise = False |
def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq, |
skip_check_and_raise=False): |
"""Convenience for checking if a timeout has expired.""" |
if endtime is None: |
return |
if skip_check_and_raise or _time() > endtime: |
> raise TimeoutExpired( |
self.args, orig_timeout, |
output=b''.join(stdout_seq) if stdout_seq else None, |
stderr=b''.join(stderr_seq) if stderr_seq else None) |
E subprocess.TimeoutExpired: Command '['setpriv', '--reuid=65534', '--regid=65534', '--clear-groups', 'env', '-i', 'HOME=/tmp/sn-verifier-cases/invalid-grid-beaf10b311004bf0a22f808a0a4af873', 'PATH=/usr/local/bin:/usr/bin:/bin', 'PYTHONNOUSERSITE=1', 'PYTHONHASHSEED=0', 'python3', '-I', '/tmp/agent-submission... |
/usr/local/lib/python3.12/subprocess.py:1253: TimeoutExpired |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ::test_hidden_independent_finite_difference_spectrum |
FAILED ::test_artifacts_manifest_and_input_integrity - KeyError: 'completed' |
FAILED ::test_public_branch_physics - AssertionError: assert 0.00014058906954... |
FAILED ::test_public_profiles_independent - AssertionError: assert 5.64791418... |
FAILED ::test_public_spectrum_turning_and_convergence - KeyError: 'bracketing... |
FAILED ::test_hidden_changed_family_replay - KeyError: 'completed' |
FAILED ::test_malformed_inputs_fail_closed - subprocess.TimeoutExpired: Comma... |
=================== 6 failed, 1 passed in 134.68s (0:02:14) ==================== |
============================= 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.980331718205929e-07', 'bvp_mesh_nodes': '731', 'central_amplitude': '0.18', 'chemical_pot...9237e-07', 'bvp_mesh_nodes': '860', 'central_amplitude': '0.52', 'chemical_potential': '-0.919623141119883', ...}, ...] |
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")) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.