Currently our AllTests suite is silently failing on TravisCI. See https://travis-ci.com/github/matomo-org/matomo/jobs/520002593#L792
The test that silently aborts is this one:
Already saw the same behavior while trying to fix the tests for PHP 8 in #16897
When running the UpdateTests locally on PHP 7.2, 7.4 or 8.0 it works without problems for me.
@matomo-org/core-reviewers is anyone able to reproduce the test failure locally?
Target of this issue should be to
Looks like an error occurs on mysqli (in travis at least):
Array ( [warnings] => Array ( ) [errors] => Array (  => Mysqli prepare error: Table 'piwik_tests.archive_blob_2015_01' doesn't exist ) [coreError] => 1 [deactivatedPlugins] => Array ( ) )
This gets thrown as a runtime exception which I guess stops the test entirely.
This error is caused by the test on purpose. Not sure why it's a runtime exception in this case and why it works locally with MYSQLI 🤔
Haven't figured out the cause, but:
I've narrowed down the problem to something in the Application.php class in symfony console. The
run() method has a try-catch, the catch is never entered, the process seems to just exit. However, in doRun() if I surround doRunCommand() and catch the exception, the tests continue. So I suspect the issue is Console::doRun()'s safemode logic.