You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DB system (MySQL, Blazegraph, etc.) and version: any
Issue
The [0] change (using bisect, anything before that change passes those tests) causes two of our move tests [1] to fail.
--
There were 2 failures:
1) SMW\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::testCaseFile with data set "p-0901.json" ('/home/travis/build/SemanticMe...1.json')
Failed "#0 includes move" for StringContains:
==== (actual) ====
<div class="mw-parser-output"><ul class="smw-format ul-format"><li class="smw-row"><span class="smw-field"><span class="smw-value">Page/09/01/1</span></span></li><li class="smw-row"><span class="smw-field"><span class="smw-value">Page/09/01/2</span></span></li></ul>
</div>
==== (expected) ====
[ <li class="smw-row"><span class="smw-field"><span class="smw-value">Move/09/01/4</span></span></li> ]
Failed asserting that 2 matches expected 3.
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/Utils/Validators/StringValidator.php:81
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/Utils/Validators/StringValidator.php:30
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/ParserTestCaseProcessor.php:185
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/ParserTestCaseProcessor.php:96
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/JsonTestCaseScriptRunnerTest.php:371
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/JsonTestCaseScriptRunnerTest.php:207
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/JsonTestCaseScriptRunner.php:215
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/DatabaseTestCase.php:133
/home/travis/build/SemanticMediaWiki/mw/maintenance/doMaintenance.php:94
2) SMW\Tests\Integration\MediaWiki\Hooks\TitleMoveCompleteIntegrationTest::testPageMoveWithRemovalOfOldPage
Failed asserting that actual size 0 matches expected size 1.
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/Integration/MediaWiki/Hooks/TitleMoveCompleteIntegrationTest.php:160
/home/travis/build/SemanticMediaWiki/mw/extensions/SemanticMediaWiki/tests/phpunit/DatabaseTestCase.php:133
/home/travis/build/SemanticMediaWiki/mw/maintenance/doMaintenance.php:94
Steps to reproduce
Run the tests before and after the change
Cause
I spend 2h to investigate the cause and I can see that the ParserOutput::getExtensionData holds an old record (in our case I compared the Title objects) where the moved Title doesn't align with the referenced Title from the ParserOutput and with that tests fail as a consequence because the data we retrieve from ParserOutput::getExtensionData are suddenly (starting with [0]) inconsistent.
Setup and configuration
Issue
The [0] change (using bisect, anything before that change passes those tests) causes two of our move tests [1] to fail.
Steps to reproduce
Run the tests before and after the change
Cause
I spend 2h to investigate the cause and I can see that the
ParserOutput::getExtensionData
holds an old record (in our case I compared the Title objects) where the moved Title doesn't align with the referenced Title from theParserOutput
and with that tests fail as a consequence because the data we retrieve fromParserOutput::getExtensionData
are suddenly (starting with [0]) inconsistent.refs #2905
[0] wikimedia/mediawiki@a335774
[1] https://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/jobs/423454960
The text was updated successfully, but these errors were encountered: