Commit 6396bcf
committed
feat: stabilize multi-env sync, bubble verification, and FFI cache observability
- Add OMNIPKG_DEBUG gated _dbg() helper for zero-cost structured debugging
- Introduce per-version .omnipkg_synced_* markers to prevent redundant interpreter syncs
- Ensure sync markers are written + old markers cleaned across native and threaded sync paths
- Fix uv_ffi version healing:
- Resolve min version dynamically from pyproject.toml
- Replace uv CLI calls with python -m pip for reliability
- Improve version comparison + fallback handling
- Strengthen bubble install verification:
- Discover all staging dists (no pre-filter) to handle hyphen/underscore mismatches
- Verify actual installed contents instead of name-locked assumptions
- Fix Redis index consistency:
- Canonicalize package names before adding to index to prevent duplicate keys
- Improve KB rebuild + repair correctness:
- Re-fetch index after gatherer.run() to avoid stale reads
- Add detailed debug visibility for instance discovery, ghost cleanup, and version mismatches
- Add deep FFI cache instrumentation:
- Snapshot site-packages cache before/after installs
- Detect and log target install leakage into main cache
- Propagate is_target flag through FFI results
- Remove unsafe --target subprocess bypass:
- Route all installs through FFI path with proper isolation guarantees
- Improve tool version detection fallback (subprocess-based when metadata missing)
- Update vendored uv submodule
Modified:
• src/omnipkg/core.py (+146/-33 lines)
• src/omnipkg/installation/verification_strategy.py (+6/-1 lines)
• src/omnipkg/package_meta_builder.py (+1/-1 lines)
• pyproject.toml (+1/-1 lines)
[gitship-generated]1 parent a4ad2c6 commit 6396bcf
5 files changed
Lines changed: 155 additions & 37 deletions
File tree
- src/omnipkg
- _vendor
- installation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments