text
stringlengths
0
4.86k
history, _ = canonical_history(PUBLIC_HISTORY)
mask, center, _, _ = expected_decomposition(history, instance)
expected_rows, total_collision_mass = expected_runaway(history, mask, center)
rows = read_csv(OUTPUT / "runaway_growth.csv", RUNAWAY_COLUMNS)
events = read_csv(OUTPUT / "collision_events.csv", EVENT_COLUMNS)
> assert len(rows) == len(expected_rows) == len(events) == int(np.sum(mask)) >= 100
E AssertionError: assert 185 == 187
E + where 185 = len([{'central_mass_pre_msun': '3.5976559518', 'collision_mass_fraction': '0.0016496446', 'companion_mass_msun': '15.4319315296', 'cumulative_collision_mass_msun': '15.4319315296', ...}, {'central_mass_pre_msun': '20.3303481489', 'collision_mass_fraction': '0.0036010061', 'companion_mass_msun': ...
E + and 187 = len([{'central_mass_pre_msun': 3.59765595183, 'collision_mass_fraction': 0.0016467983100525389, 'companion_mass_msun': 15.43193152957, 'cumulative_collision_mass_msun': 15.43193152957, ...}, {'central_mass_pre_msun': 20.3303481489, 'collision_mass_fraction': 0.003594792978476318, 'companion_mass...
/verifier/test_outputs.py:738: AssertionError
_______ test_reusable_cli_generalizes_to_private_randomized_histories[1] _______
seed = 1
@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 0x71a292ef2ff0>(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 0x71a292ef2ff0> = 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.8655690728', 'event_id': 'event_0001', 'post_mass_msun': '188.9462484145', 'pre_mass_msun': '43.1055299717', ...}, {'companion_mass_msun': '17.2451565838', 'event_id': 'event_0002', 'post_mass_msun': '203.3405559103', 'pre_mass_msun': '186.1202499564', ...}, {'com...
E + and 9 = int(np.int64(9))
E + where np.int64(9) = <function sum at 0x71a292ef2ff0>(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 0x71a292ef2ff0> = 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.9698057703', 'event_id': 'event_0001', 'post_mass_msun': '303.9498705046', 'pre_mass_msun': '46.9849165462', ...}, {'companion_mass_msun': '99.6051974783', 'event_id': 'event_0002', 'post_mass_msun': '403.550216171', 'pre_mass_msun': '303.9498705046', ...}])
E + and 10 = int(np.int64(10))
E + where np.int64(10) = <function sum at 0x71a292ef2ff0>(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 0x71a292ef2ff0> = 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_public_merger_tree_is_a_closed_central_spine
PASSED ../verifier/test_outputs.py::test_public_remnant_scenarios_match_independent_analytic_solution
PASSED ../verifier/test_outputs.py::test_report_contains_auditable_physical_interpretation
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_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_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]
========================= 6 failed, 8 passed in 2.18s ==========================
============================= 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 PASSED [ 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 PASSED [ 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%]