Addshore added a comment.

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
https://phabricator.wikimedia.org/T198192

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
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

Reply via email to