Spotted in production immediately upon rolling out wmf.10:
Fatal error: Class undefined: \Wikibase\Lib\JsonUnitStorage in /srv/mediawiki/php-1.30.0-wmf.10/includes/libs/ObjectFactory.php on line 143
Definitely blocks train.
Spotted in production immediately upon rolling out wmf.10:
Fatal error: Class undefined: \Wikibase\Lib\JsonUnitStorage in /srv/mediawiki/php-1.30.0-wmf.10/includes/libs/ObjectFactory.php on line 143
Definitely blocks train.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Release | demon | T168050 MW 1.30.0-wmf.10 deployment blockers | ||
Resolved | PRODUCTION ERROR | Smalyshev | T171107 Class undefined: \Wikibase\Lib\JsonUnitStorage |
Change 366467 had a related patch set uploaded (by Chad; owner: Chad):
[operations/mediawiki-config@master] wikidatawiki back to wmf.9 for now
Change 366467 merged by jenkins-bot:
[operations/mediawiki-config@master] wikidatawiki back to wmf.9 for now
Change 366480 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[operations/mediawiki-config@master] Use correct class name for JsonUnitStorage
wmf.9 had this class name as Wikibase\Lib\JsonUnitStorage, in wmf.10 it's Wikibase\Lib\Units\JsonUnitStorage. Not sure what is the recommended way to handle such things? Should it use ::class?
Change 366480 merged by jenkins-bot:
[operations/mediawiki-config@master] Use correct class name for JsonUnitStorage
Mentioned in SAL (#wikimedia-operations) [2017-07-19T23:29:02Z] <dereckson@tin> Synchronized wmf-config/Wikibase-production.php: Use correct class name for JsonUnitStorage (T171107) (duration: 00m 48s)
Change 366488 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[operations/mediawiki-config@master] Cleanup old BC config for JsonUnitStorage
Change 366532 had a related patch set uploaded (by Thiemo Mättig (WMDE); owner: Thiemo Mättig (WMDE)):
[mediawiki/extensions/Wikibase@master] Allow "unitStorage" configuration without referencing class names
Change 366533 had a related patch set uploaded (by Thiemo Mättig (WMDE); owner: Thiemo Mättig (WMDE)):
[operations/mediawiki-config@master] Simplify Wikibase "unitStorage" configuration
Change 366534 had a related patch set uploaded (by Thiemo Mättig (WMDE); owner: Thiemo Mättig (WMDE)):
[mediawiki/extensions/Wikibase@master] Remove obsolete backwards compatibility code for "unitStorage" config
Thanks for all the work on this yesterday folks. We're resolved, so I'm guessing ok to move forward on wmf.10 for wikidatawiki?
Change 366589 had a related patch set uploaded (by Chad; owner: Chad):
[operations/mediawiki-config@master] wikidatawiki back to wmf.10
Change 366589 merged by jenkins-bot:
[operations/mediawiki-config@master] wikidatawiki back to wmf.10
Change 366488 merged by jenkins-bot:
[operations/mediawiki-config@master] Cleanup old BC config for JsonUnitStorage
Mentioned in SAL (#wikimedia-operations) [2017-07-31T23:11:10Z] <thcipriani@tin> Synchronized wmf-config/Wikibase-production.php: SWAT: [[gerrit:366488|Cleanup old BC config for JsonUnitStorage]] T171107 (duration: 00m 42s)
Change 366533 abandoned by Thiemo Mättig (WMDE):
Simplify Wikibase "unitStorage" configuration
Reason:
I need to redo the patch this depends-on, and will upload a new config patch when this is done.
Change 366532 abandoned by Thiemo Kreuz (WMDE):
Allow "unitStorage" configuration without referencing class names
Reason:
It makes me sad to see experienced developers not realizing the problem with hard-coded snippets of executable code in configuration strings (a full qualified class name effectively is code). This is guaranteed to break (and already did several times) any time a class is refactored or moved to an other namespace (e.g. to make a codebase PSR-4 compatible). But this is not going to be my problem any more.
Change 366534 abandoned by Thiemo Kreuz (WMDE):
Remove obsolete backwards compatibility code for "unitStorage" config