-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add runtime type inference verification #12930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bb8507f
to
e759ef5
Compare
Do you see any existing failures now? |
No, I didn't see any more failures the last time I checked.
Hmm, I did not think about this. That makes the flag less useful for the COMMUNTIY build. Do you think it would be possible to add some hook to the JIT? |
Do you mean COMMUNIT tests? We may run them with
No :) |
@dstogov Right. Running community build twice is certainly an option. It significantly increases nightly runtime which I'm generally trying to avoid. But if verification in JIT is not an option then let's do that. |
It may be better to have a single nightly task for PHP master with |
Btw, my PR at #12406 can help with greatly reducing execution time for nightly tests by parallelizing them :) |
I'm not too concerned about execution time (by the time I wake up nightly is usually done), but CI time as a whole (i.e. load on the planet). The community build is very slow partly because it's run with a debug build and ASAN. This isn't necessary for type inference at all, so another strategy might be to use a release build for this. |
c964452
to
f2168e0
Compare
Co-authored-by: Dmitry Stogov <dmitry@zend.com> Closes phpGH-12930
f2168e0
to
a9fb8ce
Compare
Co-authored-by: Dmitry Stogov <dmitry@zend.com> Closes phpGH-12930
a9fb8ce
to
a670153
Compare
Co-authored-by: Dmitry Stogov <dmitry@zend.com> Closes phpGH-12930
a670153
to
9860fda
Compare
@iluuu1994 you think you could also add my Psalm/phpstan entries for the community tests? (at least to test them temporarily in this PR) |
@dstogov I changed this PR to use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any serious problems.
It would be great to separate ""debug info"" from zend_op, but this will complicate and slow down the patch.
Another related idea - it's possible to support ZEND_VERIFY_TYPE_INFERENCE
only for CALL VM. This should significantly reduce the amount of the debugging code.
Anyway, I think this may be merged as is.
env: | ||
CC: ccache gcc | ||
CXX: ccache g++ | ||
# env: | ||
# CC: ccache gcc | ||
# CXX: ccache g++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a problem with ccache
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just for debugging. All changes from push.yml
will be reverted before merging.
Co-authored-by: Dmitry Stogov <dmitry@zend.com> Closes phpGH-12930
9860fda
to
fdbb850
Compare
TODO: