Problem
#675 ✅ added stage 4a (phpc build --project --dry-run) to script/miniwebapp-gates.sh. Stage 4b documents link (#568). Contributors running make miniwebapp-gates or phpc doctor --gates cannot see whether script/examples-aot-smoke.sh would pass the 003-MiniWebApp block without running full CI.
Goal
Stage 4c in the ladder:
Stage 4c: examples-aot-smoke 003 slice (LLVM required; skip until #568)
When LLVM is present, gates script runs the 003 section of examples-aot-smoke.sh (or phpc build --project + CLI execute with CGI env) and prints pass/skip/fail with stderr tail — same UX as stage 4a.
Implementation hints
| Piece |
File |
Notes |
| Script |
script/miniwebapp-gates.sh |
Call examples-aot-smoke.sh with env EXAMPLES_AOT_SMOKE_ONLY=003 or extract function |
| Smoke |
script/examples-aot-smoke.sh |
Today skips 003 with message — stage 4c should detect skip vs fail |
| Doctor |
lib/Doctor.php |
Inherits via miniwebapp-gates.sh delegation |
| Docs |
examples/003-MiniWebApp/README.md |
Stage table 4a/4b/4c |
Acceptance criteria
./script/miniwebapp-gates.sh
# When #568 green: stage 4c shows green without manual make examples-aot-smoke
Dependencies
Verification
make miniwebapp-gates
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev ./script/miniwebapp-gates.sh
Local/Docker only — not GitHub Actions.
Links
Problem
#675 ✅ added stage 4a (
phpc build --project --dry-run) toscript/miniwebapp-gates.sh. Stage 4b documents link (#568). Contributors runningmake miniwebapp-gatesorphpc doctor --gatescannot see whetherscript/examples-aot-smoke.shwould pass the 003-MiniWebApp block without running full CI.Goal
Stage 4c in the ladder:
When LLVM is present, gates script runs the 003 section of
examples-aot-smoke.sh(orphpc build --project+ CLI execute with CGI env) and prints pass/skip/fail with stderr tail — same UX as stage 4a.Implementation hints
script/miniwebapp-gates.shexamples-aot-smoke.shwith envEXAMPLES_AOT_SMOKE_ONLY=003or extract functionscript/examples-aot-smoke.shlib/Doctor.phpminiwebapp-gates.shdelegationexamples/003-MiniWebApp/README.mdAcceptance criteria
./script/miniwebapp-gates.sh # When #568 green: stage 4c shows green without manual make examples-aot-smokeDependencies
examples-aot-smoke.sh003 blockVerification
make miniwebapp-gates docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev ./script/miniwebapp-gates.shLocal/Docker only — not GitHub Actions.
Links