Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when not installed into $IP/vendor/, but in $IP/extensions/<Ext>/vendor/ #1

Open
osnard opened this issue Nov 10, 2022 · 2 comments

Comments

@osnard
Copy link
Member

osnard commented Nov 10, 2022

16:55:35 There were 3 errors:
16:55:35 
16:55:35 1) Error
16:55:35 The data provider specified for RestStructureTest::testPathParameters is invalid.
16:55:35 InvalidArgumentException: Passed variable is not an array or object
16:55:35 /workspace/src/includes/Rest/Router.php:221
16:55:35 /workspace/src/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php:98
16:55:35 /workspace/src/tests/phpunit/structure/RestStructureTest.php:90
16:55:35 
16:55:35 2) Error
16:55:35 The data provider specified for RestStructureTest::testParameters is invalid.
16:55:35 InvalidArgumentException: Passed variable is not an array or object
16:55:35 /workspace/src/includes/Rest/Router.php:221
16:55:35 /workspace/src/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php:98
16:55:35 /workspace/src/tests/phpunit/structure/RestStructureTest.php:155
16:55:35 
16:55:35 3) RestStructureTest::testRoutePathAndMethodForDuplicates
16:55:35 filemtime(): stat failed for /vendor/mwstake/mediawiki-component-commonwebapis/route-files/group-store.json
16:55:35 
16:55:35 /workspace/src/includes/Rest/Router.php:186
16:55:35 /workspace/src/includes/Rest/Router.php:221
16:55:35 /workspace/src/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php:98
16:55:35 /workspace/src/tests/phpunit/structure/RestStructureTest.php:171
16:55:35 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:518
16:55:35 === Logs generated by test case
16:55:35 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
16:55:35 [localisation] [debug] LocalisationCache using store LCStoreNull []
16:55:35 ===
16:55:35 
16:55:35 ERRORS!
16:55:35 Tests: 6514, Assertions: 25262, Errors: 3, Skipped: 1.
16:55:35 
16:55:35 Warning: filemtime(): stat failed for /vendor/mwstake/mediawiki-component-commonwebapis/route-files/group-store.json in /workspace/src/includes/Rest/Router.php on line 186
16:55:35 
16:55:35 Warning: file_get_contents(/vendor/mwstake/mediawiki-component-commonwebapis/route-files/group-store.json): failed to open stream: No such file or directory in /workspace/src/includes/Rest/Router.php on line 187
16:55:35 
16:55:35 Warning: array_merge(): Expected parameter 2 to be an array, null given in /workspace/src/includes/Rest/Router.php on line 191
16:55:35 
16:55:35 Warning: filemtime(): stat failed for /vendor/mwstake/mediawiki-component-commonwebapis/route-files/user-query-store.json in /workspace/src/includes/Rest/Router.php on line 186
16:55:35 
16:55:35 Warning: file_get_contents(/vendor/mwstake/mediawiki-component-commonwebapis/route-files/user-query-store.json): failed to open stream: No such file or directory in /workspace/src/includes/Rest/Router.php on line 187
16:55:35 
16:55:35 Warning: filemtime(): stat failed for /vendor/mwstake/mediawiki-component-commonwebapis/route-files/group-store.json in /workspace/src/includes/Rest/Router.php on line 186
16:55:35 
16:55:35 Warning: file_get_contents(/vendor/mwstake/mediawiki-component-commonwebapis/route-files/group-store.json): failed to open stream: No such file or directory in /workspace/src/includes/Rest/Router.php on line 187
16:55:35 
16:55:35 Warning: array_merge(): Expected parameter 2 to be an array, null given in /workspace/src/includes/Rest/Router.php on line 191
16:55:35 
16:55:35 Warning: filemtime(): stat failed for /vendor/mwstake/mediawiki-component-commonwebapis/route-files/user-query-store.json in /workspace/src/includes/Rest/Router.php on line 186
16:55:35 
16:55:35 Warning: file_get_contents(/vendor/mwstake/mediawiki-component-commonwebapis/route-files/user-query-store.json): failed to open stream: No such file or directory in /workspace/src/includes/Rest/Router.php on line 187
@osnard
Copy link
Member Author

osnard commented Nov 10, 2022

@osnard
Copy link
Member Author

osnard commented Nov 28, 2022

Also

11:14:12 There was 1 error:
11:14:12 
11:14:12 1) RestStructureTest::testRoutePathAndMethodForDuplicates
11:14:12 filemtime(): stat failed for /vendor/mwstake/mediawiki-component-commonwebapis/route-files/group-store.json
11:14:12 
11:14:12 /workspace/src/includes/Rest/Router.php:186
11:14:12 /workspace/src/includes/Rest/Router.php:221
11:14:12 /workspace/src/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php:98
11:14:12 /workspace/src/tests/phpunit/structure/RestStructureTest.php:247
11:14:12 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:518
11:14:12 === Logs generated by test case
11:14:12 [objectcache] [debug] MainWANObjectCache using store {class} {"class":"EmptyBagOStuff"}
11:14:12 [localisation] [debug] LocalisationCache using store LCStoreNull []
11:14:12 ===
11:14:12 
11:14:12 ERRORS!
11:14:12 Tests: 7407, Assertions: 30144, Errors: 1, Skipped: 55.

osnard pushed a commit that referenced this issue Dec 20, 2022
it-spiderman added a commit that referenced this issue Dec 8, 2023
it-spiderman added a commit that referenced this issue Feb 2, 2024
* Title tree store #1

* Title tree store #2

* Allow non-existing pages into the title tree result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant