Page MenuHomePhabricator

PrefixSearchTest::testSearch fails on PostgreSQL
Open, LowPublic

Description

From my newest PHPUnit run:

fix', 'Ex', array('Example', 'Example/Baz', 'Example Bar')))
Main namespace with title prefix
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => 'Example'
-    1 => 'Example/Baz'
-    2 => 'Example Bar'
+    1 => 'Example Bar'
+    2 => 'Example/Baz'
 )

phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/Constraint/IsEqual.php:170
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/Assert.php:2134
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/Assert.php:475
/usr/home/saper/public_html/pg/w/tests/phpunit/includes/PrefixSearchTest.php:138
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestCase.php:976
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestCase.php:831
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestResult.php:648
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestCase.php:776
/usr/home/saper/public_html/pg/w/tests/phpunit/MediaWikiTestCase.php:141
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestSuite.php:775
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestSuite.php:745
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestSuite.php:705
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestSuite.php:705
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/Framework/TestSuite.php:705
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/TextUI/TestRunner.php:349
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/TextUI/Command.php:176
phar:///usr/share/php/phpunit/phpunit.phar/PHPUnit/TextUI/Command.php:129
/usr/share/php/phpunit/phpunit.phar:531

Freshly installed empty wiki via the commandline installer


Version: 1.25-git
Severity: normal

Details

Reference
bz73289

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:50 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz73289.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 73288 has been marked as a duplicate of this bug. ***
Aklapper subscribed.

This isn't something that the discovery team supports.

Jdforrester-WMF subscribed.

Migrating from the old tracking task to a tag for PostgreSQL-related tasks.

aaron subscribed.

I still have this probably locally and have for years. There is probably some bad assumption that some postgres sort/collation default will have a certain value.