Skip to content

Self-host M5: gen-0 prefers compiled driver + docker-exec sync (#2894)#3217

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-2894-gen0-compiled-driver
May 30, 2026
Merged

Self-host M5: gen-0 prefers compiled driver + docker-exec sync (#2894)#3217
PurHur merged 1 commit into
masterfrom
agent/issue-2894-gen0-compiled-driver

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 29, 2026

Summary

Closes #2894.

  • Document and enforce gen-0 native driver resolution order in bootstrap-resolve-compile-invoke.sh (inventory → bin-compile-aot → emit-helper → helloworld → selfhost-compile-driver).
  • Log (gen-0 compiled) vs (gen-0 Zend) explicitly; add BOOTSTRAP_ALLOW_GEN0_ZEND and BOOTSTRAP_USE_INVENTORY_DRIVER.
  • Extend docker-exec.sh tar-fallback sync-back for bootstrap-selfhost-link and build/bin-compile-aot-inventory (+ M3 sidecar blobs) so a second harness invocation reuses host drivers without Zend.
  • Align bootstrapVendorPrelinkResolveCompileInvoker() with the same native order.

php-src / harness reference

Bootstrap gen-0 path mirrors committed prelinked/bootstrap-gen0/ seed (not Zend php bin/compile.php) per M5 ladder in docs/bootstrap-generations.md.

Verification

rm -rf build/
./script/docker-exec.sh -- bash -lc 'make bootstrap-selfhost-link' 2>&1 | grep bootstrap-compile-invoke
# → (gen-0 compiled) via prelinked seed

./script/docker-exec.sh -- bash -lc 'make bootstrap-selfhost-link' 2>&1 | grep bootstrap-compile-invoke
# → (gen-0 compiled) reusing host build/bin-compile-aot (no bootstrap-gen0-install)

./script/docker-exec.sh -- vendor/bin/phpunit test/unit/BootstrapSelfhostLinkTest.php

Made with Cursor

Prefer native gen-0 drivers with explicit (gen-0 compiled) vs (gen-0 Zend)
logging, align vendor prelink invoker order, and persist build/bin-compile-aot*
across tar-copy docker-exec runs so repeat bootstrap-selfhost-link skips Zend.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur force-pushed the agent/issue-2894-gen0-compiled-driver branch from 5b4a6a2 to 31ea518 Compare May 30, 2026 15:24
@PurHur PurHur merged commit ebd1753 into master May 30, 2026
@PurHur PurHur deleted the agent/issue-2894-gen0-compiled-driver branch May 30, 2026 15:25
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.

Self-host M5: bootstrap gen-0 link prefers compiled driver when build/bin-compile-aot exists

1 participant