Skip to content

omnipkg v1.6.1 - Bulletproof Concurrency & Windows Stability

Choose a tag to compare

@1minds3t 1minds3t released this 12 Nov 05:21
· 1302 commits to main since this release

v1.6.1: Bulletproof Concurrency & Windows Stability

This is a critical stability and performance release that eliminates race conditions discovered during multi-threaded, cross-platform testing. After the massive src layout refactor, we subjected omnipkg to its most intense stress test yet, uncovered a core concurrency flaw on Windows, and completely re-engineered the self-healing and sync mechanisms to be rock-solid.

The results are staggering: what previously caused crashes and file corruption now runs flawlessly, with subsequent runs completing up to 58x faster (from 413 seconds down to 7.1 seconds).

🚀 Concurrency & Stability Overhaul (The Real Story)

The "Quantum Multiverse" demo revealed a critical race condition on Windows: the self-heal sync process would modify a managed Python environment at the exact moment another thread was scanning it, causing FileNotFoundError crashes on temporary files (~mnipkg-1.6.1.dist-info). This has been completely resolved.

Key Fixes:

  • Eliminated Race Conditions: Introduced a strict "native-only" sync rule. Managed interpreters running in concurrent threads are now forbidden from initiating a sync, preventing them from modifying each other's filesystems.
  • Bulletproof File Scanning: The Knowledge Base builder now gracefully handles race conditions by ignoring temporary (~) files and skipping any file or directory that is deleted mid-scan, preventing crashes.
  • Conservative Windows Defaults: The self-heal sync is now disabled by default on Windows to guarantee stability in complex environments. It can be enabled for power users via OMNIPKG_ENABLE_SYNC=1.
  • Massive Performance Gains: With the KB builds now stable, subsequent test runs leverage the cache perfectly, dropping execution time from ~7 minutes to ~7 seconds.

🪟 Enhanced Windows Reliability

Building on the concurrency fixes, we've further hardened Windows-specific behavior.

  • Stale DLL Cache Purging: Windows now always performs a full Python context swap to clear "zombie" DLLs left in memory after concurrent operations, preventing Fatal Python error crashes.
  • Universal Safe Printing: All 237 print statements containing emojis have been wrapped in safe_print() to eliminate UnicodeEncodeError crashes in Windows terminals.

🍺 Homebrew Formula Resurrection

After being stuck on v1.5.4 since October 3, 2025, the Homebrew tap is back online with automated updates!

  • Automated CI/CD Pipeline: Formula updates on every release.
  • Resilient PyPI Polling: Now retries up to 15 times to fetch release data.
  • Install/Update:
    brew update && brew upgrade omnipkg

🛠️ Developer Tooling

Two new utilities were created to achieve this level of stability:

  • emoji_print_fixer.py: Automatically converted 237 print() calls to safe_print().
  • embedded_code_checker.py: Scans for and identifies missing imports in dynamically generated code strings.

📝 Upgrade Notes

This is a critical stability patch for all users, especially those on Windows or running omnipkg in complex, multi-threaded applications. The performance improvements on cached runs are a significant bonus.


Full Changelog: v1.6.0...v1.6.1
Homebrew Tap: https://github.com/1minds3t/homebrew-omnipkg