Skip to content

Testing: Enable examples-aot-smoke.sh 003-MiniWebApp slice (#676 step 3) #738

@PurHur

Description

@PurHur

Problem

Native user-class AOT link for phpc build --project closed in #568 ✅, but script/examples-aot-smoke.sh still always skips 003 with a stderr stub pointing at #568:

smoke_003_miniwebapp() {
  echo "examples-aot-smoke: 003-MiniWebApp: skip (AOT link blocked #568; see #485)" >&2
  return 0
}

Operators cannot validate MiniWebApp AOT execute in the same shell gate used for 000–004 without editing the script.

Goal

Uncomment / implement the 003 block so make examples-aot-smoke (and EXAMPLES_AOT_SMOKE_ONLY=003) builds the project binary and asserts route output under CGI env (PATH_INFO=/home, REQUEST_METHOD=GET).

Scope

Implementation hints

Piece File Notes
Smoke script/examples-aot-smoke.sh Block ~L122–144 commented template exists
Env run_binary helper Set PATH_INFO, SCRIPT_NAME, DOCUMENT_ROOT like #491
Probe script/miniwebapp-gates.sh stage 4c Should flip mark to ✅ when this lands
PHPUnit #454 test003MiniWebAppEventuallyRuns Land step 2 before or with this issue

Acceptance criteria

make docker-build-22
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
  EXAMPLES_AOT_SMOKE_ONLY=003 ./script/examples-aot-smoke.sh
# exit 0, stderr contains: examples-aot-smoke: 003-MiniWebApp: ok

Dependencies

Verification

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