| Addshore added a comment. |
In T198192#4526749, @hashar wrote:A wild guess is that it might be related to PHPUnit data providers. https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/WikibaseLexeme/+/450044/ / T200693
@Addshore would you have time to look into that WikibaseMediaInfo weird failure please ? :]
Looks like it could be something similar to the thing you linked.
CreatePagePropsTest::provideDBUpdatesData
Runs the following:
protected function newPageId() {
static $pageId;
if ( $pageId === null ) {
$db = wfGetDB( DB_REPLICA );
$pageId = (int)$db->selectField( 'page', 'MAX(page_id) + 1' );
} else {
$pageId++;
}return $pageId; }
Doing this in the provider / doing any db interaction in the provider is evil
TASK DETAIL
EMAIL PREFERENCES
To: Addshore
Cc: Addshore, MarkTraceur, matthiasmullie, Aklapper, hashar, stebsco, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Ricordisamoa, Mbch331
Cc: Addshore, MarkTraceur, matthiasmullie, Aklapper, hashar, stebsco, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Ricordisamoa, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
