Skip to content

Fix php-llvm-structgep-assert.patch drift blocking CI (#36209) - #36233

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-36209-structgep-patch-drift
Sep 1, 2026
Merged

Fix php-llvm-structgep-assert.patch drift blocking CI (#36209)#36233
PurHur merged 1 commit into
masterfrom
agent/issue-36209-structgep-patch-drift

Conversation

@PurHur

@PurHur PurHur commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Re-diffed php-llvm-structgep-assert.patch against pristine php-llvm Builder.php — removed fictional null === $struct->value context that never existed in vendor and blocked git apply on fresh composer install.
  • Added script/apply-patches.sh --verify-pristine (checks structgep + icmp patches against committed patches/pristine-snapshots/) and wired it into all workflows + check-generated-docs.sh.
  • Structgep skip now requires patch_is_fully_applied (reverse-apply proof), not grep-only marker.
  • Fixed php-cfg-loop-exit-tick Do anchor (parseStmt_Echo follows parseStmt_Do, not parseStmt_Enum) so apply-patches.sh completes on pristine vendor.
  • Removed || true from ci-common.sh composer install (surfaces setup failures in CI).

Test plan

  • script/apply-patches.sh --verify-pristine → OK structgep + icmp
  • rm -rf vendor && composer install && script/apply-patches.sh → exit 0
  • ./script/aot-smoke.sh8/8
  • make dev-verify-fast → OK (59s)
  • make north-star5-verify-fast — not run this session (dev-verify-fast green)
  • script/differential-sweep.sh --aot --repeat 3 — not re-run (142/142 on master at session start)

Closes #36209

Made with Cursor

Re-diff structgep patch against pristine php-llvm Builder (removed fictional
null-check context), add --verify-pristine gate with committed snapshot, require
reverse-apply proof for structgep skip, fix loop-exit-tick Do anchor (Echo not
Enum), and run verify-pristine in workflows before apply-patches.

Verified:
  script/apply-patches.sh --verify-pristine
  rm -rf vendor && composer install && script/apply-patches.sh
  ./script/aot-smoke.sh → 8/8
  make dev-verify-fast → OK (59s)

Closes #36209

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant