Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Enable Continuous Integration on MYSQLI #4233

Closed
mattab opened this Issue · 9 comments

2 participants

@mattab
Owner

We do support MYSQLI but none of the team members actually use it. It may be broken and we wouldn't know it... However a lot of Piwik users are definitely using it in production...

The goal is to make our release process more agile and enjoy a more stable piwik for all.

Tasks:

  • Run tests suites (Core, Unit, Integration) on MYSQLI
    • on PHP 5.5 (we do not need to run it on all PHP versions as this may be too slow)
    • could we simply add mysqli to the current travis matrix build?
  • Investigate any bug that will be found once tests are running on MYSQLI on travis

Note:

  • it is out of scope to run the UI/screenshot tests on mysqli
@tsteur
Owner

In 3ad167a: refs #4233 for each env set testsuite and mysql_adapter

@tsteur
Owner

In 130be30: refs #4233 moving tests that require a database to integration as those are integration tests per se

@tsteur
Owner

In b2f0936: refs #4233 setting group on class level to make sure all tests within this class have this group

@tsteur
Owner

In 1839649: refs #4233 fix class name

@tsteur
Owner

In 5c8ba40: refs #4233 fix log tests

@tsteur
Owner

I ran tests locally with PHPUnit and configured travis to run Integration tests (which make use of DB) to use MYSQLI beside PDO

@mattab
Owner
  • The whole build depends on the "sed" command to work OK. TO be sure we always run the build correctly, can you add following test:

    read $MYSQL_ADAPTER
    if PDO, test the current adapter is PDO
    if mysqli, test the current adapter is Mysqli
    else: test should fail

This way we make sure the travis really runs the right adapter and we will remember to change the build setting if we change the setting name or adapter name etc.

@tsteur
Owner

In b89bed1: refs #4233 make sure value is either pdo or mysqli

@tsteur
Owner

In 3755bfa: refs #4233 check if it creates the correct instance

@mattab mattab added this to the 2.0 - Piwik 2.0 milestone
@tsteur tsteur was assigned by mattab
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4233 for each env set testsuite and mysql_adapter 3ad167a
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4233 moving tests that require a database to integration as tho…
…se are integration tests per se
130be30
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4233 setting group on class level to make sure all tests within…
… this class have this group
b2f0936
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4233 fix class name 1839649
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4233 fix log tests 5c8ba40
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4233 make sure value is either pdo or mysqli b89bed1
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4233 check if it creates the correct instance 3755bfa
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.