Page MenuHomePhabricator

GooglePlaces tests failing due to missing files located in sub repo
Closed, ResolvedPublicPRODUCTION ERROR

Description

GooglePlaces has a sub repo google-places, which is not known by the test framework and such this gives error when tests are running:

15:15:47 There was 1 failure:
15:15:47 
15:15:47 1) AutoLoaderTest::testAutoLoadConfig
15:15:47 Failed asserting that two arrays are equal.
15:15:47 --- Expected
15:15:47 +++ Actual
15:15:47 @@ @@
15:15:47      'GooglePlacesCache' => '/srv/jenkins-workspace/worksp...he.php'
15:15:47 -    'Mills\GooglePlaces\googlePlaces' => '/srv/jenkins-workspace/workspace/mwext-testextension-hhvm-composer@2/src/extensions/GooglePlaces/lib/google-places/src/mills/google-places/googlePlaces.php'
15:15:47 +    'Mills\GooglePlaces\googlePlaces' => '[file '/srv/jenkins-workspace/workspace/mwext-testextension-hhvm-composer@2/src/extensions/GooglePlaces/lib/google-places/src/mills/google-places/googlePlaces.php' does not exist]'
15:15:47      'TestAutoloadedClass' => '/srv/jenkins-workspace/worksp...ss.php'
15:15:47  )
15:15:47 
15:15:47 /srv/jenkins-workspace/workspace/mwext-testextension-hhvm-composer@2/src/tests/phpunit/structure/AutoLoaderTest.php:35
15:15:47 /srv/jenkins-workspace/workspace/mwext-testextension-hhvm-composer@2/src/tests/phpunit/MediaWikiTestCase.php:399
15:15:47 /srv/jenkins-workspace/workspace/mwext-testextension-hhvm-composer@2/src/maintenance/doMaintenance.php:111

Event Timeline

One solution is to bundle the files with the extension, makes install easier. See T154806 for a discussion about this problem on another repo

Submodules are now process (T130966). It now fails with

13:59:21 1) AutoLoaderTest::testAutoLoadConfig
13:59:21 Failed asserting that two arrays are equal.
13:59:21 --- Expected
13:59:21 +++ Actual
13:59:21 @@ @@
13:59:21 'TestAutoloadedClass' => '/home/jenkins/workspace/mwext...ss.php'
13:59:21 + 'Mills\GooglePlaces\googlePlacesCallType' => '/home/jenkins/workspace/mwext...es.php'
13:59:21 )
13:59:21

Change 369655 had a related patch set uploaded (by Paladox; owner: Paladox):
[mediawiki/extensions/GooglePlaces@master] Add missing class to the autoloader

https://gerrit.wikimedia.org/r/369655

Change 369655 merged by jenkins-bot:
[mediawiki/extensions/GooglePlaces@master] Add missing class to the autoloader

https://gerrit.wikimedia.org/r/369655

Paladox claimed this task.

Change 369659 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] Make some extension voting

https://gerrit.wikimedia.org/r/369659

Change 369659 merged by jenkins-bot:
[integration/config@master] Make some extension voting

https://gerrit.wikimedia.org/r/369659

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:10 PM