Skip to content

feat(selfhost): M3 Runtime compile smoke CI/docs integration (#2294) - #2308

Merged
PurHur merged 1 commit into
masterfrom
feat/runtime-m3-compile-smoke-2294
May 26, 2026
Merged

PurHur merged 1 commit into
masterfrom
feat/runtime-m3-compile-smoke-2294

Conversation

@PurHur

@PurHur PurHur commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds M3 Runtime compile smoke probe (bootstrap-selfhost-runtime-compile-smoke.sh) with bundle lint, partial Zend emit fallback, and native AOT run of runtime_trivial_echo.php.
  • Wires CI gates: BOOTSTRAP_RUNTIME_COMPILE_SMOKE_PROBE_GATE=1 (default on) and BOOTSTRAP_RUNTIME_COMPILE_SMOKE_STRICT_GATE=0 (opt-in) in ci-local.sh / ci-common.sh.
  • Adds make bootstrap-selfhost-runtime-compile-smoke, BootstrapRuntimeCompileSmokeTest, docs rows, and runtime_m3_emit_native_entry.php in bin/compile.php M3 emit list.

Closes #2294

Test plan

  • php bin/compile.php -l test/selfhost/runtime_compile_smoke/main.php
  • ./script/bootstrap-selfhost-runtime-compile-smoke.sh (LLVM present → emit_path=zend partial, stdout 1)
  • make bootstrap-selfhost-runtime-compile-smoke
  • ./vendor/bin/phpunit --group aot-lint test/unit/BootstrapRuntimeCompileSmokeTest.php
  • BOOTSTRAP_RUNTIME_COMPILE_SMOKE_PROBE_GATE=1 ./script/ci-local.sh (LLVM tail includes runtime probe)
  • BOOTSTRAP_RUNTIME_COMPILE_SMOKE_STRICT_GATE=1 ./script/ci-local.sh (opt-in; expected fail until native emit lands)

Made with Cursor

Wire bootstrap-selfhost-runtime-compile-smoke probe into ci-local with default-on
BOOTSTRAP_RUNTIME_COMPILE_SMOKE_PROBE_GATE, Makefile target, unit tests, and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit a4a6a77 into master May 26, 2026
@PurHur
PurHur deleted the feat/runtime-m3-compile-smoke-2294 branch May 26, 2026 05: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.

Self-host M3: lib/Runtime.php native compile batch (parser front-door after #2216)

1 participant