Commit 5ae9d2b
committed
feat: fix uv-ffi per-interpreter .so loading and daemon IPC for managed workers
- _vendor/uv_ffi/__init__.py: replace static import with _load_native() that
globs the running interpreter's own site-packages for the correct .so,
falling back to vendored only for the native interpreter; exposes
_loaded_so_path for identity logging
- worker_daemon.py: pass OMNIPKG_ENV_ID_OVERRIDE to all managed worker
subprocesses so DaemonClient resolves the native daemon's socket path
instead of computing a dead per-interpreter hash — fixes start_omnipkg_op
and end_omnipkg_op IPC being silently dropped for all non-native interpreters
- fs_watcher.py: MtimeFallbackWatcher now takes a fresh snapshot baseline at
op START and diffs against post-op state in end_omnipkg_op; surgical
patch_site_packages_cache with parsed name+version instead of full
invalidate; per-interpreter [pyX.Y] labels on all log lines; skip ~temp
rename artifacts in culprit scan
- core.py: import uv_ffi module instead of bare run function so each managed
worker loads its own interpreter's .so; OMNIPKG_DEBUG-gated _dbg_print;
socket path and start_op result logged for IPC diagnosis
All adopted interpreters (3.9, 3.10, 3.12, 3.13, 3.14) now correctly signal
op START/END to the native daemon, get their cache patched in the right Rust
worker, and show zero external culprits on install verification.
Modified:
• src/omnipkg/_vendor/uv_ffi/__init__.py (+53/-28 lines)
• src/omnipkg/core.py (+20/-5 lines)
• src/omnipkg/isolation/fs_watcher.py (+202/-67 lines)
• src/omnipkg/isolation/worker_daemon.py (+1/-0 lines)
• pyproject.toml (+1/-1 lines)
[gitship-generated]1 parent 4f31d52 commit 5ae9d2b
5 files changed
Lines changed: 271 additions & 95 deletions
File tree
- src/omnipkg
- _vendor/uv_ffi
- isolation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 3 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
27 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
28 | 56 | | |
29 | 57 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 58 | + | |
33 | 59 | | |
34 | 60 | | |
35 | 61 | | |
| |||
43 | 69 | | |
44 | 70 | | |
45 | 71 | | |
46 | | - | |
47 | | - | |
| 72 | + | |
48 | 73 | | |
49 | 74 | | |
50 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16052 | 16052 | | |
16053 | 16053 | | |
16054 | 16054 | | |
| 16055 | + | |
| 16056 | + | |
| 16057 | + | |
16055 | 16058 | | |
16056 | 16059 | | |
16057 | 16060 | | |
| |||
16082 | 16085 | | |
16083 | 16086 | | |
16084 | 16087 | | |
| 16088 | + | |
| 16089 | + | |
| 16090 | + | |
| 16091 | + | |
16085 | 16092 | | |
16086 | 16093 | | |
16087 | 16094 | | |
| |||
16107 | 16114 | | |
16108 | 16115 | | |
16109 | 16116 | | |
16110 | | - | |
16111 | | - | |
| 16117 | + | |
| 16118 | + | |
| 16119 | + | |
| 16120 | + | |
| 16121 | + | |
16112 | 16122 | | |
16113 | 16123 | | |
16114 | 16124 | | |
| |||
16168 | 16178 | | |
16169 | 16179 | | |
16170 | 16180 | | |
16171 | | - | |
| 16181 | + | |
16172 | 16182 | | |
16173 | 16183 | | |
16174 | 16184 | | |
| |||
16190 | 16200 | | |
16191 | 16201 | | |
16192 | 16202 | | |
16193 | | - | |
| 16203 | + | |
| 16204 | + | |
| 16205 | + | |
16194 | 16206 | | |
16195 | | - | |
| 16207 | + | |
16196 | 16208 | | |
16197 | 16209 | | |
16198 | 16210 | | |
| |||
16202 | 16214 | | |
16203 | 16215 | | |
16204 | 16216 | | |
| 16217 | + | |
16205 | 16218 | | |
| 16219 | + | |
16206 | 16220 | | |
16207 | 16221 | | |
16208 | 16222 | | |
| |||
16289 | 16303 | | |
16290 | 16304 | | |
16291 | 16305 | | |
| 16306 | + | |
16292 | 16307 | | |
16293 | 16308 | | |
16294 | 16309 | | |
| |||
0 commit comments