User tests: Successful: Unsuccessful:
We are currently using our own Docker images to run the PHP unittests. Those images currently only support PHP 7.0, 7.1 and 7.2, but there are also 7.3, 7.4 and 8.0. I think we don't need to reinvent the wheel again and again and instead should simply use images from another project. A short and non-exhaustive research lead me to https://github.com/phpdaily/php, which seems to have all the new necessary images that we need.
Status | New | ⇒ | Pending |
Category | ⇒ | Unit Tests |
Labels |
Added:
?
?
|
The version of PHPUnit depends on our composer.json and not on the image.
Wooooooah!
The bigger question for me would be about the supported PHP modules. I stumbled upon images where no postgres support was available.
I stumbled upon images where no postgres support was available.
Is the CMS even running any tests on a PostgreSQL environment? I think this recent "can't even install using PostgreSQL" issue would've been identified and resolved sooner if the system tests had both a MySQL and PostgreSQL run.
in j3 we're running unit tests on the jdatabasepostgres classes (which is obviously done in the database framework package in j4 so effectively we're not testing anything in the cms repo in j4). We're not running system tests in postgres anywhere.
There are also some DB specific adapters it’d be good to have integration
tests for (Smart Search and Schema library for the DB update logic). But a
general system test run on PostgreSQL would be my suggested priority since
those tests are already written and it should only be a new pass setting a
different DB driver for config (hopefully there isn’t too much MySQL
specific code in those).
On Sun, Apr 28, 2019 at 12:03 PM George Wilson notifications@github.com
wrote:
in j3 we're running unit tests on the jdatabasepostgres classes (which is
obviously done in the database framework package in j4 so effectively we're
not testing anything in the cms repo in j4). We're not running system tests
in postgres anywhere.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#24734 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACZ7IKJWOD3G2WHOTRCHIDPSXKH7ANCNFSM4HI2VQBA
.
--
yes, it should be just a few changes to Joomla Browser and Docker Setup to install Postgresql, I will make the changes sometime next week. thanks
So the only thing i'm nervy about here is us using nightly builds and the stability of them on stable PHP Versions (obviously for things like php 8 it's no big deal). If all pull requests fail for a few days because of a bad nightly then we're going to be in a bit of trouble.
Lets postpone this PR and see to update Drone first. We also want to have PHP8 and 7.4 to be able to fail at this stage without failing the whole pipeline and that is not possible in Drone 0.8. I would then invest a bit more time into this.
OK Im happy with that. I'll close for now. But with the intention of re-opening when we're ready
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-05-01 10:10:42 |
Closed_By | ⇒ | wilsonge |
@rdeutz @yvesh @puneet0191 can you guys take a look please. This looks good to me. But unsure if there was anything specific about our image that made us build our own