Skip to content

Self-host M3: inventory compile_driver native emit execute (#2843) - #2861

Merged
PurHur merged 2 commits into
masterfrom
fix/2843-inventory-emit-driver-execute
May 27, 2026
Merged

PurHur merged 2 commits into
masterfrom
fix/2843-inventory-emit-driver-execute

Conversation

@PurHur

@PurHur PurHur commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Route BOOTSTRAP_M3_USE_INVENTORY_EMIT_DRIVER=1 through the emit-TU main bridge (compileM3EmitTuMainNative) instead of compileM3CompileDriverMainNative, matching the stable helloworld_m3_emit_native_entry.php path.
  • Use the lighter M3 sidecar set for inventory emit and skip host-compiling compile_driver.php as its own sidecar.
  • Extend BootstrapSelfhostHelloWorldTest::testInventoryCompileDriverLinksWithRealLowering to assert native HelloWorld emit at runtime.

Bootstrap verification

./script/docker-exec.sh -- make bootstrap-selfhost-link          # OK
./script/docker-exec.sh -- make bootstrap-selfhost-helloworld      # OK (default helper TU)
./script/docker-exec.sh -- bash -lc 'BOOTSTRAP_M3_USE_INVENTORY_EMIT_DRIVER=1 \
  BOOTSTRAP_M3_HELLOWORLD_STRICT=1 ./script/bootstrap-selfhost-helloworld-probe.sh'  # OK emit_path=native

Test plan

  • vendor/bin/phpunit test/unit/BootstrapSelfhostHelloWorldTest.php --filter testInventoryCompileDriverLinksWithRealLowering
  • Inventory strict helloworld probe (above)

Made with Cursor

PurHur and others added 2 commits May 27, 2026 23:30
Route inventory emit through the emit-TU main bridge (same as helloworld_m3_emit),
skip compile_driver self-sidecar registration, and use the lighter M3 sidecar set so
BOOTSTRAP_M3_USE_INVENTORY_EMIT_DRIVER=1 strict HelloWorld emit no longer segfaults at startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur force-pushed the fix/2843-inventory-emit-driver-execute branch from e837ba1 to 0c9e695 Compare May 27, 2026 23:30
@PurHur
PurHur merged commit 54b5d51 into master May 27, 2026
@PurHur
PurHur deleted the fix/2843-inventory-emit-driver-execute branch May 27, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant