← Về thư mục
tests/test_benchmark_bringup.py
- _payload · function · L40-L46 — def _payload(weights_sha256: str = WEIGHTS_SHA256) -> dict
- _make_bringup · function · L49-L166 — def _make_bringup( root: Path, *, with_env_generation: bool = True, manifest_state: str = "ready", ) -> dict
- _load_record · function · L169-L172 — def _load_record(root: Path) -> dict
- _save_record · function · L175-L178 — def _save_record(root: Path, record: dict) -> None
- _problem_ids · function · L181-L182 — def _problem_ids(report: dict) -> set[str]
- _verify_with_reference · function · L185-L188 — def _verify_with_reference(root: Path) -> dict
- _rewrite_canary · function · L191-L198 — def _rewrite_canary(root: Path, payload: dict) -> None
- _rewrite_downstream · function · L201-L208 — def _rewrite_downstream(root: Path, payload: dict) -> None
- _forge_weights_coherently · function · L211-L244 — def _forge_weights_coherently(root: Path, forged: bytes) -> str
- test_a_complete_bring_up_verifies · function · L252-L272 — def test_a_complete_bring_up_verifies(tmp_path)
- test_sealing_is_deterministic · function · L275-L280 — def test_sealing_is_deterministic(tmp_path)
- test_editing_the_record_without_resealing_is_caught · function · L288-L295 — def test_editing_the_record_without_resealing_is_caught(tmp_path)
- test_a_lazy_forge_is_caught_by_the_self_vouch · function · L298-L311 — def test_a_lazy_forge_is_caught_by_the_self_vouch(tmp_path)
- test_a_full_forge_is_caught_only_by_the_reference · function · L314-L324 — def test_a_full_forge_is_caught_only_by_the_reference(tmp_path)
- test_without_reference_digests_a_coherent_forgery_is_not_admitted · function · L327-L341 — def test_without_reference_digests_a_coherent_forgery_is_not_admitted(tmp_path)
- test_a_modified_weights_file_is_caught · function · L344-L351 — def test_a_modified_weights_file_is_caught(tmp_path)
- test_a_deleted_weights_file_is_caught · function · L354-L359 — def test_a_deleted_weights_file_is_caught(tmp_path)
- test_a_wrong_recorded_size_is_caught · function · L362-L369 — def test_a_wrong_recorded_size_is_caught(tmp_path)
- test_wrong_weights_against_the_reference_are_caught · function · L372-L380 — def test_wrong_weights_against_the_reference_are_caught(tmp_path)
- test_reference_must_cover_the_exact_unique_weights_set · function · L383-L402 — def test_reference_must_cover_the_exact_unique_weights_set(tmp_path)
- test_malformed_reference_keys_are_reported_not_raised · function · L405-L414 — def test_malformed_reference_keys_are_reported_not_raised(tmp_path)
- test_duplicate_weight_paths_are_rejected_before_hashing · function · L417-L424 — def test_duplicate_weight_paths_are_rejected_before_hashing(tmp_path)
- test_weight_fields_have_exact_types · function · L435-L442 — def test_weight_fields_have_exact_types(tmp_path, mutation)
- test_schema_version_bool_is_not_integer_one · function · L445-L450 — def test_schema_version_bool_is_not_integer_one(tmp_path)
- test_seal_record_rejects_nonfinite_numbers · function · L454-L456 — def test_seal_record_rejects_nonfinite_numbers(value)
- test_adapter_is_a_confined_hashed_snapshot · function · L459-L465 — def test_adapter_is_a_confined_hashed_snapshot(tmp_path)
- test_windows_drive_paths_are_never_portable_record_paths · function · L469-L480 — def test_windows_drive_paths_are_never_portable_record_paths(tmp_path, record_path)
- test_deleted_adapter_is_rejected · function · L483-L486 — def test_deleted_adapter_is_rejected(tmp_path)
- test_fifo_artifact_is_rejected_without_blocking · function · L489-L510 — def test_fifo_artifact_is_rejected_without_blocking(tmp_path)
- test_generation_manifest_identity_is_bound · function · L513-L528 — def test_generation_manifest_identity_is_bound(tmp_path)
- test_superseded_generation_remains_verifiable · function · L531-L535 — def test_superseded_generation_remains_verifiable(tmp_path)
- test_generation_prefix_must_exist_inside_its_generation · function · L538-L551 — def test_generation_prefix_must_exist_inside_its_generation(tmp_path)
- test_unreadable_environment_layout_is_reported_not_raised · function · L554-L576 — def test_unreadable_environment_layout_is_reported_not_raised(tmp_path)
- test_environment_layout_probe_errors_are_reported_not_raised · function · L580-L599 — def test_environment_layout_probe_errors_are_reported_not_raised( tmp_path, monkeypatch, error_type )
- racing_lstat · function · L587-L590 — def racing_lstat(path, args, *kwargs)
- test_generation_prefix_probe_errors_are_reported_not_raised · function · L603-L629 — def test_generation_prefix_probe_errors_are_reported_not_raised( tmp_path, monkeypatch, error_type )
- racing_is_dir · function · L617-L620 — def racing_is_dir(path)
- test_a_canary_with_no_output_is_caught · function · L637-L645 — def test_a_canary_with_no_output_is_caught(tmp_path)
- test_a_deleted_canary_output_is_caught · function · L648-L654 — def test_a_deleted_canary_output_is_caught(tmp_path)
- test_a_modified_canary_output_is_caught · function · L657-L665 — def test_a_modified_canary_output_is_caught(tmp_path)
- test_an_unparseable_canary_output_is_caught · function · L668-L676 — def test_an_unparseable_canary_output_is_caught(tmp_path)
- test_a_missing_declared_field_is_caught · function · L679-L692 — def test_a_missing_declared_field_is_caught(tmp_path)
- test_canary_command_binds_target_and_recorded_weights · function · L695-L702 — def test_canary_command_binds_target_and_recorded_weights(tmp_path)
- test_canary_command_rejects_absolute_execution_argv · function · L712-L719 — def test_canary_command_rejects_absolute_execution_argv(tmp_path, interpreter, tool)
- test_canary_digest_matches_the_commanded_weight_not_any_recorded_weight · function · L722-L757 — def test_canary_digest_matches_the_commanded_weight_not_any_recorded_weight(tmp_path)
- test_canary_command_rejects_platform_absolute_weight_paths · function · L763-L768 — def test_canary_command_rejects_platform_absolute_weight_paths(tmp_path, weight_path)
- test_schema_v1_has_exactly_one_canary_output · function · L771-L778 — def test_schema_v1_has_exactly_one_canary_output(tmp_path)
- test_canary_semantics_are_bound_to_the_record · function · L790-L795 — def test_canary_semantics_are_bound_to_the_record(tmp_path, field, value)
- test_unhashable_declared_field_is_a_problem_not_an_exception · function · L798-L804 — def test_unhashable_declared_field_is_a_problem_not_an_exception(tmp_path)
- test_downstream_payload_must_match_the_canary · function · L807-L821 — def test_downstream_payload_must_match_the_canary(tmp_path)
- test_downstream_boolean_plddt_does_not_equal_numeric_canary_plddt · function · L824-L839 — def test_downstream_boolean_plddt_does_not_equal_numeric_canary_plddt(tmp_path)
- test_downstream_requires_a_distinct_consumption_artifact · function · L842-L862 — def test_downstream_requires_a_distinct_consumption_artifact(tmp_path)
- test_downstream_cannot_alias_the_canary_physical_file · function · L866-L893 — def test_downstream_cannot_alias_the_canary_physical_file(tmp_path, link_kind)
- test_a_refused_downstream_is_caught · function · L896-L904 — def test_a_refused_downstream_is_caught(tmp_path)
- test_a_deleted_downstream_output_is_caught · function · L907-L912 — def test_a_deleted_downstream_output_is_caught(tmp_path)
- test_a_refused_admission_never_proceeds_even_when_the_rest_verifies · function · L920-L929 — def test_a_refused_admission_never_proceeds_even_when_the_rest_verifies(tmp_path)
- test_cost_beyond_the_budget_refuses_admission · function · L932-L941 — def test_cost_beyond_the_budget_refuses_admission(tmp_path)
- test_a_negative_wall_time_is_caught · function · L944-L951 — def test_a_negative_wall_time_is_caught(tmp_path)
- test_attempts_are_nonempty_complete_finally_passed_and_sum_to_totals · function · L975-L983 — def test_attempts_are_nonempty_complete_finally_passed_and_sum_to_totals( tmp_path, mutation, check_id )
- test_extreme_mixed_numeric_totals_are_reported_not_raised · function · L986-L993 — def test_extreme_mixed_numeric_totals_are_reported_not_raised(tmp_path)
- test_a_weight_path_escaping_the_root_is_caught · function · L996-L1003 — def test_a_weight_path_escaping_the_root_is_caught(tmp_path)
- test_a_symlink_escaping_the_root_is_caught · function · L1006-L1017 — def test_a_symlink_escaping_the_root_is_caught(tmp_path)
- test_a_nul_in_an_artifact_path_is_reported_not_raised · function · L1020-L1027 — def test_a_nul_in_an_artifact_path_is_reported_not_raised(tmp_path)
- test_an_artifact_io_error_is_reported_not_raised · function · L1030-L1043 — def test_an_artifact_io_error_is_reported_not_raised(tmp_path, monkeypatch)
- refusing_open · function · L1035-L1038 — def refusing_open(path, flags, args, *kwargs)
- test_a_post_read_identity_swap_is_caught · function · L1046-L1069 — def test_a_post_read_identity_swap_is_caught(tmp_path, monkeypatch)
- swapping_stat · function · L1052-L1063 — def swapping_stat(path, args, *kwargs)
- test_a_missing_generation_manifest_is_caught · function · L1072-L1079 — def test_a_missing_generation_manifest_is_caught(tmp_path)
- test_a_generation_that_is_not_ready_is_caught · function · L1082-L1086 — def test_a_generation_that_is_not_ready_is_caught(tmp_path)
- test_a_missing_record_raises · function · L1094-L1096 — def test_a_missing_record_raises(tmp_path)
- test_a_non_json_record_raises · function · L1099-L1103 — def test_a_non_json_record_raises(tmp_path)
- test_a_non_strict_json_record_raises · function · L1115-L1119 — def test_a_non_strict_json_record_raises(tmp_path, raw)
- test_an_overflowing_json_exponent_is_a_problem_not_an_exception · function · L1122-L1130 — def test_an_overflowing_json_exponent_is_a_problem_not_an_exception(tmp_path)
- test_an_invalid_utf8_record_raises · function · L1133-L1137 — def test_an_invalid_utf8_record_raises(tmp_path)
- test_a_recursively_nested_record_raises_bringup_error · function · L1140-L1148 — def test_a_recursively_nested_record_raises_bringup_error(tmp_path)
- test_a_recursively_nested_artifact_is_reported_not_raised · function · L1151-L1161 — def test_a_recursively_nested_artifact_is_reported_not_raised(tmp_path)
- test_every_json_artifact_uses_the_strict_parser · function · L1175-L1204 — def test_every_json_artifact_uses_the_strict_parser(tmp_path, target, raw, check_id)
- test_json_artifact_size_cap_is_reported_not_raised · function · L1207-L1221 — def test_json_artifact_size_cap_is_reported_not_raised(tmp_path, monkeypatch)
- test_a_record_symlink_escaping_the_root_raises · function · L1224-L1237 — def test_a_record_symlink_escaping_the_root_raises(tmp_path)
- test_a_non_object_record_raises · function · L1240-L1244 — def test_a_non_object_record_raises(tmp_path)