Files
foxhunt/scripts/archive/cleanup_2025_10_30/run-coverage-llvm.sh
jgrusewski 433af5c25d chore: Major codebase cleanup - remove deprecated files and organize structure
- 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.
2025-10-30 01:02:34 +01:00

38 lines
967 B
Bash
Executable File

#!/bin/bash
# LLVM Coverage runner script for Foxhunt HFT Trading System
# Alternative coverage tool that handles rustc flags via environment variables
set -e
echo "🔍 Foxhunt Coverage Analysis (LLVM)"
echo "===================================="
echo ""
echo "🚀 Running cargo-llvm-cov..."
echo " (Overriding RUSTFLAGS to avoid stack-protector incompatibility)"
echo ""
# Run llvm-cov with clean RUSTFLAGS
# This bypasses the .cargo/config.toml rustflags that are incompatible
env RUSTFLAGS="" cargo llvm-cov \
--workspace \
--lcov \
--output-path coverage/lcov.info \
"$@"
EXIT_CODE=$?
if [ $EXIT_CODE -eq 0 ]; then
echo ""
echo "✅ Coverage analysis complete!"
echo "📊 Report saved to: coverage/lcov.info"
echo ""
echo "💡 To generate HTML report:"
echo " genhtml coverage/lcov.info -o coverage/html"
else
echo ""
echo "❌ Coverage analysis failed with exit code: $EXIT_CODE"
fi
exit $EXIT_CODE