[AZ-238] [AZ-239] Add resource restart tests

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-05-05 06:26:15 +03:00
parent 5acd14b792
commit 2ba44a33c5
8 changed files with 274 additions and 3 deletions
@@ -0,0 +1,35 @@
# Batch Report
**Batch**: 13
**Tasks**: AZ-238_cold_start_restart_tests, AZ-239_jetson_resource_endurance_tests
**Date**: 2026-05-05
## Task Results
| Task | Status | Files Modified | Tests | AC Coverage | Issues |
|------|--------|---------------|-------|-------------|--------|
| AZ-238_cold_start_restart_tests | Done | 2 files | 25 passed | 4/4 ACs covered | None |
| AZ-239_jetson_resource_endurance_tests | Done | 2 files | 25 passed | 4/4 ACs covered | None |
## AC Test Coverage: All covered
- AZ-238 AC-1: `test_disconnected_segment_triggers_relocalization_request_check`
- AZ-238 AC-2: `test_restart_scenario_records_first_output_or_blocked_prerequisite`
- AZ-238 AC-3: `test_cold_start_trials_report_p95_first_fix_and_resource_spike`
- AZ-238 AC-4: `test_cold_start_trials_report_p95_first_fix_and_resource_spike`, `test_cold_start_hardware_prerequisites_are_blocked_not_passed`
- AZ-239 AC-1: `test_jetson_resource_metric_summary_captures_memory_and_throttle_fields`
- AZ-239 AC-2: `test_missing_thermal_hardware_reports_blocked_prerequisite`
- AZ-239 AC-3: `test_fdr_rollover_logs_segments_without_raw_frame_retention`
- AZ-239 AC-4: `test_missing_thermal_hardware_reports_blocked_prerequisite`, `test_fdr_rollover_logs_segments_without_raw_frame_retention`
## Code Review Verdict: PASS
## Auto-Fix Attempts: 0
## Stuck Agents: None
## Verification
- `python3 -m pytest tests/blackbox`: 25 passed.
- IDE lints: no errors on changed Python files.
- `python3 -m black ...` and `python3 -m ruff ...` could not run because those optional dev tool modules are not installed in the current interpreter.
## Next Batch: All test implementation tasks complete
@@ -0,0 +1,19 @@
# Code Review Report
**Batch**: AZ-238_cold_start_restart_tests, AZ-239_jetson_resource_endurance_tests
**Date**: 2026-05-05
**Verdict**: PASS
## Findings
| # | Severity | Category | File:Line | Title |
|---|----------|----------|-----------|-------|
No findings.
## Review Notes
- Spec compliance: all ACs for AZ-238 and AZ-239 are covered by focused blackbox tests.
- Scope: changes add test-side restart/resource helpers and blackbox tests only; runtime component code remains untouched.
- Security quick-scan: no external network access, shell invocation, dynamic execution, or secrets were introduced.
- Architecture: tests use public FDR and replay harness boundaries and preserve run-scoped artifact behavior.