Skip to content

CI: examples-aot-smoke.sh 003 — link probe + execute bytes (#809, #764) #881

@PurHur

Description

@PurHur

Problem

script/examples-aot-smoke.sh still skips examples/003-MiniWebApp with stderr citing closed #568 (native user-class link). #752 ✅ and #754 prove link is green; the real blocker is #764 (0 stdout bytes on execute).

Misleading skip text hides progress and blocks enabling #738 / #676 step 3.

Goal

Retarget the 003 slice:

  1. Link probephpc build --project must succeed (fail loud if not)
  2. Execute probe — run .phpc/bin/app with MiniWebApp CGI env; require wc -c > 0
  3. While AOT: MiniWebApp native binary CLI execute emits empty stdout (post-link) #764 open: exit 0 with stderr skip execute (#764) only when link passes but bytes=0 (opt-in strict mode later)

Remove all #568 strings from this script (see also #766, #802).

Scope

Implementation hints

File Change
script/examples-aot-smoke.sh Replace skip block ~L130 with link+execute probe
script/ci-local.sh Already runs smoke when EXAMPLES_AOT_SMOKE_GATE=1
CGI env Reuse vars from test/unit/MiniWebAppAotExecuteTest.php / #790 trait
Related #809 (duplicate title OK — this is implementation); #766 PhpcBuild copy

Verify

make examples-aot-smoke
EXAMPLES_AOT_SMOKE_GATE=1 ./script/ci-local.sh
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev make examples-aot-smoke

Acceptance criteria

Dependencies

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