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 subscribed.
Anomie set Security to None.
Anomie subscribed.

The fact that the unit testing framework doesn't set a title on the main RequestContext has nothing to do with MediaWiki-Action-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 claimed this task.