Skip to content

DevEx: miniwebapp-gates stage 4c — probe examples-aot-smoke 003 block #683

@PurHur

Description

@PurHur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions