Page MenuHomePhabricator

[GlobalTitleFail] RequestContext::getTitle called by ApiDocumentationTest->checkMessage/ApiBase::makeMessage/Message->setContext/DerivativeContext->getTitle/RequestContext->getTitle with no title set
Closed, ResolvedPublic

Description

While debugging a phpunit test failure, I noticed that mw-debug-cli.log contains hundreds of kilobytes of this repeated message:
[GlobalTitleFail] RequestContext::getTitle called by ApiDocumentationTest->checkMessage/ApiBase::makeMessage/Message->setContext/DerivativeContext->getTitle/RequestContext->getTitle with no title set

Example: https://integration.wikimedia.org/ci/job/mwext-testextension-php55/8/artifact/log/mw-debug-cli.log

Event Timeline

Nikerabbit raised the priority of this task from to Needs Triage.
Nikerabbit updated the task description. (Show Details)
Nikerabbit added a subscriber: Nikerabbit.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptFeb 2 2016, 8:48 AM
Anomie set Security to None.
Anomie added a subscriber: Anomie.

The fact that the unit testing framework doesn't set a title on the main RequestContext has nothing to do with MediaWiki-API.

Change 267883 had a related patch set uploaded (by Anomie):
Set title on context in ApiDocumentationTest

https://gerrit.wikimedia.org/r/267883

Change 267883 merged by jenkins-bot:
Set title on context in ApiDocumentationTest

https://gerrit.wikimedia.org/r/267883

Anomie closed this task as Resolved.Feb 3 2016, 2:20 PM
Anomie claimed this task.