text stringlengths 0 249 |
|---|
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /verifier |
collecting ... collected 8 items |
test_outputs.py::test_output_schema_and_parameterized_solver_interface PASSED [ 12%] |
test_outputs.py::test_frozen_inputs_and_private_fixture_replay PASSED [ 25%] |
test_outputs.py::test_nominal_reconstruction_matches_independent_pairwise_sum PASSED [ 37%] |
test_outputs.py::test_private_reconstructions_match_independent_pairwise_sum PASSED [ 50%] |
test_outputs.py::test_cutoff_convergence_is_measured_and_satisfied PASSED [ 62%] |
test_outputs.py::test_harmonic_matrix_and_strain_stress_consistency PASSED [ 75%] |
test_outputs.py::test_force_energy_symmetry_and_curvature PASSED [ 87%] |
test_outputs.py::test_physical_invariants_and_supercell_extensivity PASSED [100%] |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED test_outputs.py::test_output_schema_and_parameterized_solver_interface |
PASSED test_outputs.py::test_frozen_inputs_and_private_fixture_replay |
PASSED test_outputs.py::test_nominal_reconstruction_matches_independent_pairwise_sum |
PASSED test_outputs.py::test_private_reconstructions_match_independent_pairwise_sum |
PASSED test_outputs.py::test_cutoff_convergence_is_measured_and_satisfied |
PASSED test_outputs.py::test_harmonic_matrix_and_strain_stress_consistency |
PASSED test_outputs.py::test_force_energy_symmetry_and_curvature |
PASSED test_outputs.py::test_physical_invariants_and_supercell_extensivity |
============================== 8 passed in 10.81s ============================== |
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /verifier |
collecting ... collected 7 items |
test_outputs.py::test_output_schema_and_parameterized_solver_interface FAILED [ 14%] |
test_outputs.py::test_frozen_inputs_and_private_fixture_replay PASSED [ 28%] |
test_outputs.py::test_nominal_reconstruction_matches_independent_pairwise_sum FAILED [ 42%] |
test_outputs.py::test_private_reconstructions_match_independent_pairwise_sum FAILED [ 57%] |
test_outputs.py::test_cutoff_convergence_is_measured_and_satisfied FAILED [ 71%] |
test_outputs.py::test_force_energy_symmetry_and_curvature FAILED [ 85%] |
test_outputs.py::test_physical_invariants_and_supercell_extensivity FAILED [100%] |
=================================== FAILURES =================================== |
____________ test_output_schema_and_parameterized_solver_interface _____________ |
def test_output_schema_and_parameterized_solver_interface(): |
assert (SUBMISSION / "solve_polar.py").is_file(), "Missing reusable solver source" |
> for case in all_case_bundles(): |
^^^^^^^^^^^^^^^^^^ |
test_outputs.py:313: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
test_outputs.py:226: in all_case_bundles |
return (nominal, *private_case_bundles()) |
^^^^^^^^^^^^^^^^^^^^^^ |
test_outputs.py:150: in private_case_bundles |
hidden_run = run_hidden_case( |
isolated_runner.py:401: in run_hidden_case |
egress_probe = verify_egress_denied( |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
def verify_egress_denied( |
*, |
workspace: Path, |
environment: dict[str, str], |
identity: tuple[int, int] | None, |
) -> dict[str, object]: |
"""Probe direct-IP TCP egress as the submitted identity.""" |
if identity is None: |
return {"status": "not-enforced-local", "targets": {}} |
targets = ( |
("1.1.1.1", 443), |
("8.8.8.8", 53), |
) |
probe = ( |
"import json\n" |
"import socket\n" |
f"targets = {targets!r}\n" |
"result = {}\n" |
"for host, port in targets:\n" |
" key = f'{host}:{port}'\n" |
" try:\n" |
" connection = socket.create_connection((host, port), timeout=1.0)\n" |
" except OSError as error:\n" |
" result[key] = {'connected': False, 'error': type(error).__name__}\n" |
" else:\n" |
" connection.close()\n" |
" result[key] = {'connected': True, 'error': None}\n" |
"print(json.dumps(result, sort_keys=True))\n" |
"raise SystemExit(1 if any(item['connected'] for item in result.values()) else 0)\n" |
) |
completed, _ = run_process( |
[sys.executable, "-I", "-B", "-c", probe], |
cwd=workspace, |
environment=environment, |
timeout=20, |
identity=identity, |
) |
> assert completed.returncode == 0, ( |
^^^^^^^^^^^^^^^^^^^^^^^^^ |
"Unprivileged hidden execution retained external network egress:\n" |
f"{completed.stdout}\n{completed.stderr}" |
) |
E AssertionError: Unprivileged hidden execution retained external network egress: |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 37