Orchestrata Ultimate › Tests › Reference › scripts › test_freshness_guard
Tests reference — tests/scripts/test_freshness_guard.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_freshness_guard.py
source · 36 tests · 731 lines
Tests for scripts/freshness_guard.py — the 6-check stale-data guard
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_durations_sink_absent_is_skip_not_exception |
76 | |
| function | test_durations_sink_all_fresh_records_left_byte_identical |
84 | |
| function | test_durations_sink_stale_detected_but_left_untouched_when_not_refreshed |
100 | |
| function | test_durations_sink_compaction_drops_old_and_missing_file_records |
118 | |
| function | test_durations_sink_compaction_is_idempotent |
140 | |
| function | test_durations_sink_malformed_trailing_line_does_not_crash |
162 | |
| function | test_durations_sink_non_object_json_line_dropped_not_crashed |
178 | A syntactically-valid JSON line that isn't an object used to crash |
| function | test_durations_sink_fresh_header_survives_compaction |
211 | A run-identity HEADER line has no "test" key at all -- it must be kept |
| function | test_durations_sink_stale_header_dropped |
228 | |
| function | test_durations_sink_fresh_header_survives_alongside_droppable_rows |
242 | The mixed-file case: a fresh header, a fresh row for an existing file, |
| function | test_durations_sink_non_numeric_ts_dropped |
266 | |
| function | test_capture_age_absent_is_skip_not_exception |
287 | |
| function | test_capture_age_fresh_within_window |
295 | |
| function | test_capture_age_stale_beyond_window |
307 | |
| function | test_observer_registry_absent_dir_is_skip_not_exception |
324 | |
| function | test_observer_registry_empty_dir_is_fresh |
333 | |
| function | test_observer_registry_alive_pid_running_session_is_fresh |
340 | |
| function | test_observer_registry_dead_pid_detected_but_not_refreshed |
354 | |
| function | test_observer_registry_dead_pid_marked_killed_on_refresh |
368 | |
| function | test_observer_registry_non_running_status_ignored |
382 | |
| function | test_observer_registry_malformed_json_skipped_not_crashed |
396 | |
| function | test_observer_registry_permission_denied_pid_counts_as_alive |
406 | |
| function | test_packer_cache_absent_is_skip_not_exception |
428 | |
| function | test_packer_cache_malformed_json_stale_then_removed_on_refresh |
436 | |
| function | test_packer_cache_wrong_shape_stale_then_removed_on_refresh |
451 | |
| function | test_packer_cache_all_entries_current_left_byte_identical |
461 | |
| function | test_packer_cache_dead_entry_detected_but_not_pruned_when_not_refreshed |
473 | |
| function | test_packer_cache_dead_entry_pruned_on_refresh |
487 | |
| function | test_packer_cache_prune_is_idempotent |
500 | |
| function | test_ast_runtime_merge_absent_snapshot_is_skip_not_exception |
520 | |
| function | test_ast_runtime_merge_absent_callgraph_is_skip_not_exception |
535 | |
| function | test_ast_runtime_merge_present_runtime_calls_is_fresh |
550 | |
| function | test_ast_runtime_merge_zero_calls_is_stale_when_not_refreshed |
568 | |
| function | test_prolog_kbs_absent_snapshot_is_skip_not_exception |
601 | |
| function | test_prolog_kbs_present_snapshot_reports_a_valid_verdict |
612 | A snapshot written just now is newer than every live trace_intel/ |
| function | test_main_check_mode_is_read_only_and_returns_a_valid_exit_code |
633 | Every check is redirected to tmp_path fixtures via main()'s |