Skip to content

CI: examples-aot-smoke 003 — probe link then execute bytes (#764, not #568 skip) #809

@PurHur

Description

@PurHur

Problem

script/examples-aot-smoke.sh still short-circuits the 003 block with a #568 link skip message even though #752 ✅ closed native user-class link.

Operators running make examples-aot-smoke or EXAMPLES_AOT_SMOKE_ONLY=003 get no signal about execute health (empty stdout — #764). #738 tracks full unskip when execute is green; this issue covers the intermediate behavior: attempt build + run, report accurate blocker.

Goal

When LLVM is ready:

  1. phpc build --project examples/003-MiniWebApp — fail with stderr on link error (exit 1)
  2. Run .phpc/bin/app with QUERY_STRING=route=home CGI env
  3. If stdout length 0: print blocked #764 (empty stdout) and skip (exit 0) or fail when MINIWEBAPP_AOT_EXECUTE_GATE=1
  4. If stdout contains app_name: print 003-MiniWebApp: ok

Remove hard-coded skip (AOT link blocked #568) stub.

Scope

Implementation hints

Piece Notes
Env Reuse needles from #491 / #747 (app_name)
Helper Share with #790 MiniWebAppCgiEnv when landed
Byte probe Same as #773 stage 4b2
make docker-build-22
EXAMPLES_AOT_SMOKE_ONLY=003 ./script/examples-aot-smoke.sh
# expect: stderr mentions #764 while execute broken, not #568

Acceptance criteria

Dependencies

Verification

docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
  EXAMPLES_AOT_SMOKE_ONLY=003 ./script/examples-aot-smoke.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