? ? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
26 Apr 2019

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.

avatar Hackwar Hackwar - open - 26 Apr 2019
avatar Hackwar Hackwar - change - 26 Apr 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2019
Category Unit Tests
avatar Hackwar Hackwar - change - 26 Apr 2019
Labels Added: ? ?
avatar Hackwar Hackwar - change - 26 Apr 2019
The description was changed
avatar Hackwar Hackwar - edited - 26 Apr 2019
avatar wilsonge
wilsonge - comment - 27 Apr 2019

@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

avatar puneet0191
puneet0191 - comment - 28 Apr 2019

@wilsonge I think it should be fine, as long as the version of PHPUnit we use is the same in both the images and all required extensions are enabled.

avatar Hackwar
Hackwar - comment - 28 Apr 2019

The version of PHPUnit depends on our composer.json and not on the image.

avatar puneet0191
puneet0191 - comment - 28 Apr 2019

Wooooooah!

avatar Hackwar
Hackwar - comment - 28 Apr 2019

The bigger question for me would be about the supported PHP modules. I stumbled upon images where no postgres support was available.

avatar mbabker
mbabker - comment - 28 Apr 2019

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.

avatar wilsonge
wilsonge - comment - 28 Apr 2019

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.

avatar mbabker
mbabker - comment - 28 Apr 2019

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
.

--

  • Michael Please pardon any errors, this message was sent from my iPhone.
avatar puneet0191
puneet0191 - comment - 28 Apr 2019

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

avatar wilsonge
wilsonge - comment - 30 Apr 2019

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.

avatar Hackwar
Hackwar - comment - 30 Apr 2019

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.

avatar wilsonge
wilsonge - comment - 1 May 2019

OK Im happy with that. I'll close for now. But with the intention of re-opening when we're ready

avatar wilsonge wilsonge - close - 1 May 2019
avatar wilsonge wilsonge - change - 1 May 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-05-01 10:10:42
Closed_By wilsonge

Add a Comment

Login with GitHub to post a comment