text
stringlengths
0
4.86k
@pytest.mark.parametrize("seed", [1, 2, 3])
def test_reusable_cli_generalizes_to_private_randomized_histories(seed: int) -> None:
output, instance, history, center, scale, threshold = run_hidden(seed)
assert {path.name for path in output.iterdir()} == ARTIFACTS
mask, _, _, _ = expected_decomposition(history, instance)
events = read_csv(output / "collision_events.csv", EVENT_COLUMNS)
> assert len(events) == int(np.sum(mask)) == 7 + seed
E assert 0 == 8
E + where 0 = len([])
E + and 8 = int(np.int64(8))
E + where np.int64(8) = <function sum at 0x716c6fe53570>(array([False, False, False, False, False, False, False, False, False,\n False, False, False, False, False, False, False, False, False,\n False, False, False, False, False, False, False, False, False,\n False, False, False, False, False...
E + where <function sum at 0x716c6fe53570> = np.sum
/verifier/test_outputs.py:788: AssertionError
_______ test_reusable_cli_generalizes_to_private_randomized_histories[2] _______
seed = 2
@pytest.mark.parametrize("seed", [1, 2, 3])
def test_reusable_cli_generalizes_to_private_randomized_histories(seed: int) -> None:
output, instance, history, center, scale, threshold = run_hidden(seed)
assert {path.name for path in output.iterdir()} == ARTIFACTS
mask, _, _, _ = expected_decomposition(history, instance)
events = read_csv(output / "collision_events.csv", EVENT_COLUMNS)
> assert len(events) == int(np.sum(mask)) == 7 + seed
E AssertionError: assert 4 == 9
E + where 4 = len([{'companion_mass_msun': '145.99594967442', 'event_id': 'event_0001', 'post_mass_msun': '188.946248414546', 'pre_mass_msun': '42.987753899647', ...}, {'companion_mass_msun': '17.25776111340002', 'event_id': 'event_0002', 'post_mass_msun': '203.340555910287', 'pre_mass_msun': '186.120249956408'...
E + and 9 = int(np.int64(9))
E + where np.int64(9) = <function sum at 0x716c6fe53570>(array([False, False, False, False, False, False, False, False, False,\n False, False, False, False, False, False, False, False, False,\n False, False, False, False, False, False, False, False, False,\n False, False, False, False, False...
E + where <function sum at 0x716c6fe53570> = np.sum
/verifier/test_outputs.py:788: AssertionError
_______ test_reusable_cli_generalizes_to_private_randomized_histories[3] _______
seed = 3
@pytest.mark.parametrize("seed", [1, 2, 3])
def test_reusable_cli_generalizes_to_private_randomized_histories(seed: int) -> None:
output, instance, history, center, scale, threshold = run_hidden(seed)
assert {path.name for path in output.iterdir()} == ARTIFACTS
mask, _, _, _ = expected_decomposition(history, instance)
events = read_csv(output / "collision_events.csv", EVENT_COLUMNS)
> assert len(events) == int(np.sum(mask)) == 7 + seed
E AssertionError: assert 2 == 10
E + where 2 = len([{'companion_mass_msun': '256.969805770266', 'event_id': 'event_0001', 'post_mass_msun': '303.949870504579', 'pre_mass_msun': '46.984916546161', ...}, {'companion_mass_msun': '99.60519747829201', 'event_id': 'event_0002', 'post_mass_msun': '403.550216171023', 'pre_mass_msun': '303.949870504579...
E + and 10 = int(np.int64(10))
E + where np.int64(10) = <function sum at 0x716c6fe53570>(array([False, False, False, False, False, False, False, False, False,\n False, False, False, False, False, False, False, False, False,\n False, False, False, False, False, False, False, False, False,\n False, False, False, False, Fals...
E + where <function sum at 0x716c6fe53570> = np.sum
/verifier/test_outputs.py:788: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../verifier/test_outputs.py::test_source_is_general_and_does_not_contain_public_signatures
PASSED ../verifier/test_outputs.py::test_hidden_execution_masks_sensitive_roots_fds_secrets_and_shared_tmp
PASSED ../verifier/test_outputs.py::test_primary_provenance_and_frozen_hashes
PASSED ../verifier/test_outputs.py::test_publication_is_complete_hash_bound_and_exact
PASSED ../verifier/test_outputs.py::test_malformed_hash_fails_without_partial_publication
FAILED ../verifier/test_outputs.py::test_public_canonicalization_and_collision_catalog
FAILED ../verifier/test_outputs.py::test_public_merger_tree_is_a_closed_central_spine
FAILED ../verifier/test_outputs.py::test_public_growth_budget_closes_every_interval
FAILED ../verifier/test_outputs.py::test_public_runaway_growth_ladder_is_closed_and_spine_coupled
FAILED ../verifier/test_outputs.py::test_public_remnant_scenarios_match_independent_analytic_solution
FAILED ../verifier/test_outputs.py::test_report_contains_auditable_physical_interpretation
FAILED ../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[1]
FAILED ../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[2]
FAILED ../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[3]
========================= 9 failed, 5 passed in 2.14s ==========================
============================= 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 14 items
../verifier/test_outputs.py::test_source_is_general_and_does_not_contain_public_signatures FAILED [ 7%]
../verifier/test_outputs.py::test_hidden_execution_masks_sensitive_roots_fds_secrets_and_shared_tmp PASSED [ 14%]
../verifier/test_outputs.py::test_primary_provenance_and_frozen_hashes PASSED [ 21%]
../verifier/test_outputs.py::test_publication_is_complete_hash_bound_and_exact FAILED [ 28%]
../verifier/test_outputs.py::test_public_canonicalization_and_collision_catalog FAILED [ 35%]
../verifier/test_outputs.py::test_public_merger_tree_is_a_closed_central_spine FAILED [ 42%]
../verifier/test_outputs.py::test_public_growth_budget_closes_every_interval FAILED [ 50%]
../verifier/test_outputs.py::test_public_runaway_growth_ladder_is_closed_and_spine_coupled FAILED [ 57%]
../verifier/test_outputs.py::test_public_remnant_scenarios_match_independent_analytic_solution FAILED [ 64%]
../verifier/test_outputs.py::test_report_contains_auditable_physical_interpretation FAILED [ 71%]
../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[1] FAILED [ 78%]
../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[2] FAILED [ 85%]
../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[3] FAILED [ 92%]
../verifier/test_outputs.py::test_malformed_hash_fails_without_partial_publication FAILED [100%]
=================================== FAILURES ===================================
________ test_source_is_general_and_does_not_contain_public_signatures _________
def test_source_is_general_and_does_not_contain_public_signatures() -> None:
> source = PROGRAM.read_text(encoding="utf-8")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/verifier/test_outputs.py:606:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.12/pathlib.py:1027: in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^