- Docker: Delete 23 deprecated Dockerfiles, fix CI/CD to use Dockerfile.foxhunt-build - Config: Remove 36 .env files, keep 4 essential, delete config/environments/ - Docs: Archive 614 Wave D files to docs/archive/wave_d/, 95% reduction in root - Scripts: Delete 56 deprecated scripts, keep 58 production-critical (49% reduction) - Python: Organize 37 scripts into scripts/python/ subdirectories, delete ml/python/ - Build: Remove 1GB artifacts, delete old venvs, clean Python cache from git - Migrations: Delete deprecated directory (4,432 lines), remove duplicate database/migrations/ - Infrastructure: Delete deployment/ (61 files), docs/scripts/ (8 files) Total impact: ~2,500 files cleaned, 750MB+ space freed, zero production impact All deleted scripts backed up to archives. runpod/ and tests/runpod/ preserved. data_acquisition_service retained per user request.
36 lines
989 B
Python
36 lines
989 B
Python
import re
|
|
|
|
with open('test_output.log', 'r') as f:
|
|
content = f.read()
|
|
|
|
# Find all test result summaries
|
|
pattern = r'test result: (ok|FAILED)\. (\d+) passed; (\d+) failed; (\d+) ignored'
|
|
matches = re.findall(pattern, content)
|
|
|
|
total_passed = 0
|
|
total_failed = 0
|
|
total_ignored = 0
|
|
failed_suites = 0
|
|
passed_suites = 0
|
|
|
|
for match in matches:
|
|
status, passed, failed, ignored = match
|
|
total_passed += int(passed)
|
|
total_failed += int(failed)
|
|
total_ignored += int(ignored)
|
|
if status == 'FAILED':
|
|
failed_suites += 1
|
|
else:
|
|
passed_suites += 1
|
|
|
|
print(f"Total Test Suites: {passed_suites + failed_suites}")
|
|
print(f" Passed Suites: {passed_suites}")
|
|
print(f" Failed Suites: {failed_suites}")
|
|
print()
|
|
print(f"Total Tests Executed: {total_passed + total_failed}")
|
|
print(f" Passed: {total_passed}")
|
|
print(f" Failed: {total_failed}")
|
|
print(f" Ignored: {total_ignored}")
|
|
print()
|
|
print(f"Success Rate: {total_passed / (total_passed + total_failed) * 100:.2f}%")
|