-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Test all extensions with PHP8 #4361
Test all extensions with PHP8 #4361
Conversation
The releases page for |
Also, let's remove all the successful jobs. |
It looks like |
The solution for |
This is fine. |
Link to the faulty call: dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php Lines 405 to 408 in b407f8b
Note the error suppression operator lol |
Love how it tells you the name of the argument to avoid confusion because 0 vs 1 numbering 🤩 |
It's not a problem per se if the API always returns false in the case of an error and we implement proper handling. Although it is a problem in cases like this (PHP-level error). Not having the error suppressed makes it reported twice (warning and exception) and harder to test (PHPUnit will handle the error before catching the exception). |
Yeah, it would be great to have an exception instead of an error… |
I tried fooling |
I'd rather have this test refactored. IIRC, that's the one that had to be reworked many times just because of how creepy it is. |
I just looked at the comment and that part of the test is irrelevant anyway, asserting the type of the exception is not relevant anyway. |
See where it ended up: #3820. |
86d3aa6
to
50585e2
Compare
Oh right, RIP
I pushed a commit, but I don't think that's what you mean by "refactored" :P |
No, just skip it on PHP 8. |
50585e2
to
90c35d7
Compare
It has support for PHP8.
That test will get remove in next major release, and requires too much maintenance.
90c35d7
to
921f04b
Compare
The OCI8 job seems stuck :/ |
Ok so now we have 78 checks 😅 |
This is overkill. We just need to test each driver with the latest platform version on PHP 8 and other non-primary PHP versions. There's no much point in testing all platform versions with any PHP version than the primary (currently 7.4). |
Just in case, I'm not concerned about the number of jobs as such (as long as GA is fine with it). But I am concerned about the build stability: there's a higher chance that one of the 78 jobs will decide to fail for no reason, and right now (unlike Travis and AppVeyor), GA only allows to restart all jobs (not just the failed ones.) |
Jobs that use other versions of PHP are temporarily removed so that it's easier to focus and iterate.
921f04b
to
94c02cc
Compare
Oh I forgot that there were already tests defined under |
Down to 59, we can apply your ideas on 2.11.x to reduce that number even further. |
Release [2.12.0](https://github.com/doctrine/dbal/milestone/82) 2.12.0 ====== - Total issues resolved: **1** - Total pull requests resolved: **7** - Total contributors: **5** Documentation,Static Analysis ----------------------------- - [4376: Configuration should not be internal](doctrine#4376) thanks to @BenMorel CI -- - [4374: Reduce number of build jobs](doctrine#4374) thanks to @greg0ire - [4365: Fail on extension / tool installation failure](doctrine#4365) thanks to @greg0ire Bug,Static Analysis ------------------- - [4373: Psalm fails on release commits](doctrine#4373) thanks to @morozov Documentation,Error Handling ---------------------------- - [4362: Adds exception thrown by execute() method](doctrine#4362) thanks to @toby-griffiths CI,PHP ------ - [4361: Test all extensions with PHP8](doctrine#4361) thanks to @greg0ire PHP --- - [4347: &doctrine#91;2.12&doctrine#93; PHP 8 compatibility](doctrine#4347) thanks to @derrabus # gpg: Signature made Thu Oct 22 20:29:24 2020 # gpg: using DSA key 1BEDEE0A820BC30D858F9F0C2C3A645671828132 # gpg: Can't check signature: No public key
Jobs that use other versions of PHP are temporarily removed so that it's
easier to focus and iterate.
Failures: