Last modified: 2008-08-01 00:27:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16991, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14991 - parserTests not correctly using temporary tables.
parserTests not correctly using temporary tables.
Status: RESOLVED DUPLICATE of bug 14990
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.14.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-31 01:04 UTC by OverlordQ
Modified: 2008-08-01 00:27 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description OverlordQ 2008-07-31 01:04:50 UTC
I found this when trying to fix bug #14990.

The tables get created, however once it gets to the actual testing, it runs into a problem.

==
# php parserTests.php
This is MediaWiki version 1.14alpha (r38260).

Reading tests from "maintenance/parserTests.txt"...
duplicate article at line 34
==

I (think) I've managed to find the source of the problem: 

$this->addArticle gets called on line 186 (maintenance/parserTests.inc) 
which calls
$aid = $title->getArticleID( GAID_FOR_UPDATE ) on line 844 (maintenance/parserTests.inc)
which calls
$this->mArticleID = $linkCache->addLinkObj( $this ) on line 1877 (includes/Title.php)
which calls 
$s = $db->selectRow( 'page', ...

which queries not our temporary page table parsertest_page, but the normal table page.

==
2008-07-30 19:46:11 CDT LOG:  statement: SELECT /* LinkCache::addLinkObj 127.0.0.1 */  page_id,page_len,page_is_redirect  FROM page  WHERE page_namespace = '0' AND page_title = 'Main_Page'  LIMIT 1   FOR UPDATE
==

And since Main Page exists for even default installs, that will return a page_id of 1 back up the call chain which dies on:

==
                if ($aid != 0) {
                        wfDie( "duplicate article at line $line\n" );
                }
==

in parserTests.inc line 845
Comment 1 OverlordQ 2008-08-01 00:27:37 UTC
Effectively the same thing now. Don't know why I made two bug reports.

*** This bug has been marked as a duplicate of bug 14990 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links