Commit ffe596d
committed
fix: replace OMNIPKG_ENV_ID_OVERRIDE with OMNIPKG_DAEMON_TEMP_ID to prevent KB key corruption
_get_venv_temp_dir() was using sha1(sys.prefix + optional project_root) producing
a hash divergent from ConfigManager's md5(_canonical_path_str(sys.prefix))[:8].
The resulting wrong hash was being injected into workers via OMNIPKG_ENV_ID_OVERRIDE,
which package_meta_builder and core.py consumed as the authoritative env_id, causing
all bubble installs to write KB entries under the daemon's incorrect env_id instead of
the environment's canonical one. Post-install verification then recomputed the correct
env_id, found no matching KB entry, and raised "Installation reported success but not found".
Fix: rename env var to OMNIPKG_DAEMON_TEMP_ID (log/socket/pid path only) and align
hash logic to match ConfigManager exactly.
Modified:
• src/omnipkg/isolation/worker_daemon.py (+9/-12 lines)
[gitship-generated]1 parent 4f7a0d9 commit ffe596d
1 file changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
339 | | - | |
| 340 | + | |
340 | 341 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
349 | 346 | | |
350 | 347 | | |
351 | 348 | | |
| |||
2199 | 2196 | | |
2200 | 2197 | | |
2201 | 2198 | | |
2202 | | - | |
| 2199 | + | |
2203 | 2200 | | |
2204 | 2201 | | |
2205 | 2202 | | |
| |||
0 commit comments