Page MenuHomePhabricator

Jenkins: should run tests/AutoLoaderTest.php
Closed, ResolvedPublic


I suspect that CI is not running this test, because it has been failing on master for a while. I had to make these changes to successfully run the tests:

Version: wmf-deployment
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:44 AM
bzimport set Reference to bz47750.

The AutoLoaderTest.php is not registered in phpunit. I have created which registered it in suite.xml under the 'structure' test suite and that fails accordingly.

I have added the missing autoloader entries.

Related URL: (Gerrit Change I285fa7ed24a6fc45a4dc475b54d80cf3816436fb) fix the missing AutoLoader entries move the AutoLoaderTest.php StructureTest.php files under /tests/phpunit/structures and register that directory in PHPUnit suite.

Both changes fix the issue. The later probably need a backport in release branches with their own autoloading fixes.

We should test it out one last time to make sure it is working properly.

Ideally I would want that to be backported in the release branches as well, though we usually do not introduce new classes in release branches post release.

Change 80981 had a related patch set uploaded by Hashar:
test: run autoloader suite

REL1_19 and REL1_20 do not have an autoloading test. Change 80981 tweak REL1_21.

Change 80981 merged by jenkins-bot:
test: run autoloader suite