Page MenuHomePhabricator

Wikibase EntityDataRequestHandlerTest::testCacheHeaderIsSetWithRevision fails on Travis CI
Closed, ResolvedPublic

Description

EntityDataRequestHandlerTest::testCacheHeaderIsSetWithRevision seems to fail consistently on Travis CI build.

Example failed test output

There was 1 failure:

1) Wikibase\Repo\Tests\LinkedData\EntityDataRequestHandlerTest::testCacheHeaderIsSetWithRevision

Failed asserting that 'private, no-cache, s-maxage=0' contains "public".

/home/travis/build/wikimedia/phase3/extensions/Wikibase/repo/tests/phpunit/includes/LinkedData/EntityDataRequestHandlerTest.php:376
/home/travis/build/wikimedia/phase3/tests/phpunit/MediaWikiIntegrationTestCase.php:437
/home/travis/build/wikimedia/phase3/maintenance/doMaintenance.php:107

This has started with https://travis-ci.org/github/wikimedia/mediawiki-extensions-Wikibase/builds/729185727 triggered by merging https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/621757

Possibly relevant, possibly not, the failed tests happen in environments where wiki language is not English.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Possibly relevant, possibly not, the failed tests happen in environments where wiki language is not English.

Oh yeah, there might be some confusion about whether the Special:EntityData name is localized or not. I think in non-test code we want it not to be localized, because both the query service updater and the JS UI will always use the English name – but it’s possible that the tests are localizing it.

Change 629075 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/Wikibase@master] Fix EntityDataRequestHandlerTest for non-English wikis

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

Change 629075 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Fix EntityDataRequestHandlerTest for non-English wikis

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