Commit d5b0642
committed
fix: resolve translation shadowing, standardize safe_print, and refactor tests
- Replaced tuple unpacking dummy variables (`_`) with `unused` globally to prevent shadowing the `_` gettext translation function.
- Swapped standard `print()` calls for `safe_print()` in the core, dispatcher, and tests to prevent UnicodeEncodeErrors on strict terminals and Windows.
- Refactored `test_verify_bubble_deps.py` into an OOP `KBSyncVerifier` class with bi-directional (DB ↔ Disk) symmetry checks.
- Relocated FFI and diagnostic tests (`diag_uv_ffi.py`, `test_uv_ffi_contracts.py`) to the root `tests/` directory and fixed linter-induced AttributeErrors.
- Added the "Daemon IPC Showcase" (Option 11) to the interactive `8pkg demo` CLI menu.
- Enhanced the daemon worker pre-warm logic to accurately detect and strip framework (torch/tensorflow) site-packages from the bubble path.
- Registered the `integration` pytest marker in `pytest.ini`.
New files:
• tests/diag_uv_ffi.py (425 lines)
• tests/test_uv_ffi_contracts.py (793 lines)
Modified:
• build_hooks.py (+1/-1 lines)
• src/omnipkg/cli.py (+4/-2 lines)
• src/omnipkg/core.py (+2/-2 lines)
• src/omnipkg/dispatcher.py (+34/-34 lines)
• src/omnipkg/installation/installers.py (+4/-4 lines)
• src/omnipkg/installation/smart_install.py (+3/-3 lines)
• src/omnipkg/integration/reproducible.py (+44/-40 lines)
• src/omnipkg/isolation/fs_lock_queue.py (+1/-1 lines)
• src/omnipkg/isolation/fs_watcher.py (+7/-7 lines)
• src/omnipkg/isolation/resource_monitor.py (+7/-7 lines)
• src/omnipkg/isolation/worker_daemon.py (+17/-4 lines)
• src/omnipkg/package_meta_builder.py (+10/-10 lines)
• src/omnipkg/windows_bootstrap/launcher.py (+1/-1 lines)
• setup.py (+4/-4 lines)
• pytest.ini (+1/-0 lines)
• src/omnipkg/tests/omnipkg_ipc_showcase.py (+22/-17 lines)
• src/omnipkg/tests/test_concurrent_install.py (+2/-2 lines)
• src/omnipkg/tests/test_daemon_tags.py (+22/-18 lines)
• src/omnipkg/tests/test_loader_stress_test.py (+1/-1 lines)
• src/omnipkg/tests/test_old_rich.py (+1/-1 lines)
• src/omnipkg/tests/test_rich_switching.py (+3/-3 lines)
• src/omnipkg/tests/test_tensorflow_switching.py (+1/-1 lines)
• tests/test_dispatcher_contracts.py (+1/-1 lines)
• tests/test_ffi_verify.py (+13/-9 lines)
• tests/test_flask_port_finder.py (+9/-9 lines)
• tests/test_omnipkg_contracts.py (+11/-11 lines)
• tests/test_verify_bubble_deps.py (+117/-179 lines)
[gitship-generated]1 parent 8ef5cf2 commit d5b0642
30 files changed
Lines changed: 357 additions & 519 deletions
File tree
- src/omnipkg
- installation
- integration
- isolation
- tests
- windows_bootstrap
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2470 | 2470 | | |
2471 | 2471 | | |
2472 | 2472 | | |
| 2473 | + | |
2473 | 2474 | | |
2474 | 2475 | | |
2475 | 2476 | | |
| |||
2478 | 2479 | | |
2479 | 2480 | | |
2480 | 2481 | | |
2481 | | - | |
| 2482 | + | |
2482 | 2483 | | |
2483 | 2484 | | |
2484 | 2485 | | |
| |||
2487 | 2488 | | |
2488 | 2489 | | |
2489 | 2490 | | |
2490 | | - | |
| 2491 | + | |
2491 | 2492 | | |
2492 | 2493 | | |
2493 | 2494 | | |
| |||
2503 | 2504 | | |
2504 | 2505 | | |
2505 | 2506 | | |
| 2507 | + | |
2506 | 2508 | | |
2507 | 2509 | | |
2508 | 2510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3295 | 3295 | | |
3296 | 3296 | | |
3297 | 3297 | | |
3298 | | - | |
| 3298 | + | |
3299 | 3299 | | |
3300 | 3300 | | |
3301 | 3301 | | |
| |||
6639 | 6639 | | |
6640 | 6640 | | |
6641 | 6641 | | |
6642 | | - | |
| 6642 | + | |
6643 | 6643 | | |
6644 | 6644 | | |
6645 | 6645 | | |
| |||
0 commit comments