Page MenuHomePhabricator

Class 'Wikibase\DataModel\Entity\ItemId' not found in various CI-related dockers
Open, Needs TriagePublic

Description

Receiving the following exception:

14:00:24 [fbbabae76a18a58ae7657b6e] [no req]   Error from line 35 of /workspace/src/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found
14:00:24 Backtrace:
14:00:24 #0 /workspace/src/extensions/Wikibase/repo/includes/WikibaseRepo.php(595): require()
14:00:24 #1 /workspace/src/extensions/Wikibase/repo/includes/WikibaseRepo.php(345): Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes()
14:00:24 #2 /workspace/src/extensions/Wikibase/repo/includes/WikibaseRepo.php(401): Wikibase\Repo\WikibaseRepo::newInstance()
14:00:24 #3 /workspace/src/extensions/Wikibase/repo/RepoHooks.php(101): Wikibase\Repo\WikibaseRepo::getDefaultInstance()
14:00:24 #4 /workspace/src/includes/Hooks.php(174): Wikibase\RepoHooks::onSetupAfterCache()
14:00:24 #5 /workspace/src/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
14:00:24 #6 /workspace/src/includes/Setup.php(801): Hooks::run(string)
14:00:24 #7 /workspace/src/maintenance/doMaintenance.php(81): require_once(string)
14:00:24 #8 /workspace/src/maintenance/update.php(248): require_once(string)

Noticed for the following dockers:

  1. mwext-php72-phan-seccheck-docker (example)
  2. mwext-php72-phan-docker (example)

when working with a completely unrelated security backport for REL1_31, REL1_32 and REL1_33. I manually merged these since the patch for master tested fine (and the patch was one line of unrelated code for an entirely separate extension.)

It looks like this issue may have appeared within other contexts before? See: T201615, T209216.