Skip to content

Boot symfony-app in dev, codegen-independent CLI golden, prepare 0.15.0 - #294

Merged
blacktrs merged 14 commits into
mainfrom
release/0.15.0-with-fixes
Oct 16, 2026
Merged

blacktrs merged 14 commits into
mainfrom
release/0.15.0-with-fixes

Conversation

@blacktrs

Copy link
Copy Markdown
Contributor

Summary

Makes examples/symfony-app boot in APP_ENV=dev (including from a cold start with no var/), makes the CLI golden test independent of codegen, and prepares version 0.15.0.

Fixes #287
Fixes #288
Fixes #289
Fixes #290

Reflection and dev boot

dev crashed at boot: the debug container dump hashes every class's reflected signature (ReflectionClassResource -> ReflectionParameter::__toString -> getDefaultValue()), and the compiler had no default-value factory for several kinds of methods.

Test infrastructure

  • tests/cli/behaviour.txt no longer holds checksums of compiler output (IR, MIR, AST, sig). Those went red on every codegen change (twice in one day) and forced a re-capture per branch. The golden now asserts exit code, non-empty output and stable markers per command. Checked with three different compilers.
  • tests/cli/run.sh now runs in CI (inside tools/docker/gate.sh, so every Linux and macOS row).
  • .github/workflows/gate.yml (weekly difftest + strict xfail) is removed: difftest runs the same corpus as the AOT suite, whose cases already carry php-generated expected output, and it has not been run for weeks. tools/difftest.sh and run_tests.sh --gate stay for manual use. It is a separate commit and can be dropped from the PR.
  • tests/cli derives the expected version from COMPILER_VERSION, so a release needs no test edits.

Release 0.15.0 (preparation only)

Release 0.15.0 bumps COMPILER_VERSION to 0.15.0 (Version.php regenerated by bin/build) and the version examples in the docs. BOOTSTRAP_VERSION stays 0.14.0 (the tree builds from the pin). Merging this PR does not publish anything: the release is the v0.15.0 tag, pushed separately after the manual gates.

Checked

macOS arm64: bin/build (clean), analyze src --only undefined.,parse.error, tests/cli, install_smoke, check_version, -k refl 70/70, -k exception, -k reflect, -k clone.
symfony-app rebuilt with the fixed compiler (before the release commit): dev cold boot x3 (rm -rf var) -> 200 and 404, 200 sequential requests each; prod cold -> 200/404 and 3000 concurrent requests, 1500x200 + 1500x404, RSS flat. symfony-console: 14/14 invocations byte-identical to Zend.
Linux container (glibc arm64) via tools/docker/run_tests.sh -k hello: build, install_smoke, libsuperglobal, librefpack and tests/cli green.

Not run: the full AOT suite, tools/difftest.sh, the full Linux gate, amd64/musl rows. CI's bootstrap-from-pin is the proof that the pinned release still builds this tree.

Known gaps filed

#291 (TypeError message when a mixed value is assigned to a typed property), #292 (method calls on values of unknown type can be routed to an unrelated __call; the general form of #290), #293 (bindTo(null) on an erased static closure when a __call class exists). Prelude Exception still lists internal properties and ArrayObject / SplObjectStorage / DateTimeImmutable are not reflectable, so a DeepClone round-trip of them fails.

@blacktrs
blacktrs merged commit 280d4d3 into main Oct 16, 2026
5 of 8 checks passed
@blacktrs
blacktrs deleted the release/0.15.0-with-fixes branch October 16, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment