-
Notifications
You must be signed in to change notification settings - Fork 12
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
Install semantic-result-formats dev-master for MW 1.42 #85
base: master
Are you sure you want to change the base?
Conversation
Good idea to add SRF to the CI matrix |
Might be required for Maps, too |
Not sure why this happens:
I didn't get it for the other extensions. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #85 +/- ##
=========================================
Coverage 74.87% 74.87%
Complexity 716 716
=========================================
Files 36 36
Lines 2289 2289
=========================================
Hits 1714 1714
Misses 575 575 ☔ View full report in Codecov by Sentry. |
@paladox can you try to run |
@gesinn-it-gea seems it’s caused by vimeo/psalm. I guess updating it to version 5 may fix it but idk. |
@gesinn-it-gea now this happens:
|
I'm not sure if SemanticMediaWiki/SemanticMediaWiki#5870 would fix it. but it at least fixes
I'm wondering if you'll be able to have a look @gesinn-it-gea ? not sure if the error is caused by something else. Dunno why the table isn't created. |
@gesinn-it-ilm I think you discovered "table 'wiki.unittest_semantic_drilldown_values' doesn't exist" too. Can you please give @paladox some feedback and align where to fix (either here or in a separate PR) |
Doesn't look like it fixed it. But it did fix the deprecated notice. Not sure why or how to fix the table not being created. |
How’d you resolve it @gesinn-it-ilm ? (only seems to happen on mw 1.42, passes in 1.40? Not sure why 1.39 tests fail tho (they aren’t failing with the same error, the table not found/not created)) |
@paladox not sure I know how to fix it. Need to investigate a bit further. I think that some changes on SMW cause this problem here. Few weeks ago MW 1.42 worked perfect. Need more time to check. |
@paladox yes, those changes were made in order to make integration tests use MediaWikiIntegrationTestCase. After that we have make SemanticDrilldown tests run again. |
I had a look to see but I couldn't figure it out :( |
@paladox I fully understand you. The codebase is huge, a lot of things need to be checked. So it is time cosuming for sure. |
The difference between https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/DatabaseTestCase.php#L174 and https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/SMWIntegrationTestCase.php#L182 is that in the later it sets use-normal-table and that's not in the former. Dunno if it's that. I dunno where it's getting the table name from because I see code that does CREATE TEMPORARY x table... but then it should exist? |
It also uses MediaWikiIntegrationTestCase... compared to the former one which uses phpunit test case directly. Guess that could possibly be why (not sure). |
Hmm, wait https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/Utils/Connection/TestDatabaseTableBuilder.php#L71 erased the MW db prefix. It states MediaWikiTestCase adds it. But in the test failure it says "Error 1146: Table 'wiki.unittest_semantic_drilldown_values' doesn't exist" Although https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/Utils/Connection/TestDatabaseTableBuilder.php#L65C10-L65C21 makes it sunittest_. So I wonder if the table wiki.semantic_drilldown_values table exist or wiki.sunittest_semantic_drilldown_values. Dunno if I went down a rabbit hole with this. |
Not sure if the class can extend MediaWikiIntegrationTestCase because you can't change the dbprefix. Unless we change TestDatabaseTableBuilder.php idk. Could be wrong. |
@paladox first of all, thanks for this investigation. I am not sure as well for the TestDatabaseTableBuilder.php. My idea is to check the commits from the last week. Probably something was changed in SMW that affected the SemanticDrilldown CI 1.42. Not sure why it suddenly stop working. Some reason must be somewhere there. Changing the SMW to use MediaWikiIntegrationTestCase instead of phpunit test case in integration tests was very tricky task for all of us. So I think this task will be similar. But let's check everything. |
Looks like CI last passed before SemanticMediaWiki/SemanticMediaWiki#5792, on Nov 25th. |
@paladox yes, that is correct. I am checking the commits after that, because some change after that period probably cause this issue with SD MW 1.42. |
Oh, that's awesome! Thanks for looking into it!!! |
No description provided.