Bug Bounty Completed! - Native Build STABLE - v0.2.3 Testing Underway
🚀 Circuit Breaker Native Build STABLE — v0.2.3 Testing Underway!
TL;DR: After days of relentless stability firefighting, the *native PyInstaller build is finally making REAL progress. 684 lint errors, async/sync deadlocks, event loop hangs, and resource leaks all fixed. Advanced scanning + Proxmox one-click tomorrow.
🎉 What We Fixed (High-Level)
The native dev server used to freeze after 3-5 minutes:
Ctrl+Cignored/healthtimeouts- WS storms (CLOSE_WAIT ×30)
- t=300s Proxmox poll pileups
Root causes squashed:
✅ Event loop blockers (sync SQLAlchemy in async def → run_in_executor)
✅ Scheduler shutdown deadlocks (APScheduler.shutdown → thread pool)
✅ DB pool exhaustion (30s hangs → pool_timeout=5)
✅ Lifespan leaks (uncancelled tasks/subs → tracked + cancelled)
✅ Telemetry bloat (unbounded tables → indexes + 30-day purge)
✅ Dev workflow (docker-compose.deps + stress tests)
Numbers:
684 lint + type errors → 0
23 ESLint warnings → 0
Stress test: 100 concurrent reqs + 10 WS tabs → ✅
Native dev → 60+ min stable (was 3min max)
🔬 Tech Deep Dive (for the curious)
The killer bug chain:
--reload→ file save → lifespan shutdownscheduler.shutdown(wait=True)→ sync blocks event loopasyncio.wait_for(..., timeout=10)→ never fires (loop frozen)- WS reconnect storm → 30 CLOSE_WAIT → Redis 50ms polls → total starvation
Systemic fix:
Ruff ASYNC rules + mypy strict
pool_timeout=5 everywhere
Lifespan: tasks.append(asyncio.create_task(...)) → cancel on shutdown
Proxmox jobs: async with asyncio.timeout(270):
ThreadPoolExecutor(max_workers=32)
Full postmortem: BACKEND_STABILITY_REMEDIATION.md
🚀 What This Unlocks
Native build = game changer:
- ✅ No Docker hacks for ARP/raw sockets (deeper LAN scanning)
- ✅ PyInstaller one-liner (
curl ... | bash) - ✅ RPi/VM/NAS native (arm64/amd64)
- ✅ Zero deps beyond Postgres (optional)
Tomorrow:
v0.2.3 → v0.3.0-beta
├── 🏗️ Deeper LAN scanning (multi-interface ARP/ICMP)
├── 🔌 Proxmox one-click (cluster/VM/storage import)
├── 📱 Rack simulator v2 (U-aware, cable mgmt)
└── 🧪 Stress-tested (100 concurrent + WS storm)
🎯 Join the Beta
curl -fsSL https://raw.githubusercontent.com/BlkLeg/circuitbreaker/main/install.sh | bash
Test it, break it, tell us:
- Native hangs?
- Proxmox import issues?
- Scanning false positives?
🙏 Thanks
- AI agents ate 700+ bugs in 24hrs
- Community stress-tested the fixes
- You — for sticking through the fires
Native Circuit Breaker is here. Let’s ship v1.0.
Shawnji — Circuit Breaker Maintainer
