Page MenuHomePhabricator

l10n-update on beta breaks due to: ExtensionDependencyError TranslationNotifications requires Translate to be installed.
Closed, ResolvedPublic

Description

https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/TranslationNotifications/+/503504/ breaks l10n update on Beta-Cluster-Infrastructure. The patch adds some dependencies in extension.json for T201794 :

extension.json
	"requires": {
		"MediaWiki": ">= 1.32.0",
		"extensions": {
			"Translate": "*"
		}
	},

Then when building l10n:

TranslationNotifications requires Translate to be installed.

So I guess the load order is wrong somewhere in operatons/mediawiki-config

11:10:31 Started l10n-update
11:10:31 Updating ExtensionMessages-master.php
11:10:31 Last output:
Loading data from /srv/mediawiki-staging/php-master/extensions/3D/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/AbuseFilter/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/AdvancedSearch/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/AntiSpoof/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ApiFeatureUsage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ArticleCreationWorkflow/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ArticlePlaceholder/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Babel/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/BetaFeatures/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/BounceHandler/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Calendar/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Campaigns/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Capiunto/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CategoryTree/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CentralAuth/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CentralNotice/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CharInsert/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CheckUser/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CirrusSearch/CirrusSearch.php
Loading data from /srv/mediawiki-staging/php-master/extensions/Cite/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CiteThisPage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Citoid/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/cldr/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CodeEditor/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CodeMirror/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CodeReview/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Cognate/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CollaborationKit/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Collection/Collection.php
Loading data from /srv/mediawiki-staging/php-master/extensions/CommonsMetadata/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ConfirmEdit/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ConfirmEdit/FancyCaptcha/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CongressLookup/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ContactPage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ContentTranslation/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ContributionTracking/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/CreditsSource/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Dashiki/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Disambiguator/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/DismissableSiteNotice/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/DonationInterface/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/DoubleWiki/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/DynamicSidebar/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/EUCopyrightCampaign/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Echo/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Elastica/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ElectronPdfService/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/EventBus/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/EventLogging/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ExtensionDistributor/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ExternalGuidance/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/FeaturedFeeds/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/FileExporter/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/FileImporter/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/FlaggedRevs/FlaggedRevs.php
Loading data from /srv/mediawiki-staging/php-master/extensions/Flow/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/FundraiserLandingPage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/FundraisingTranslateWorkflow/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Gadgets/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GeoCrumbs/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GeoData/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GettingStarted/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GlobalBlocking/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GlobalCssJs/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GlobalPreferences/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GlobalUsage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GlobalUserPage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GoogleNewsSitemap/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Graph/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GrowthExperiments/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GuidedTour/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/GWToolset/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ImageMap/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/InputBox/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Insider/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/intersection/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Interwiki/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/InterwikiSorting/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/JADE/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Josa/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/JsonConfig/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Kartographer/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/LabeledSectionTransclusion/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/LandingCheck/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/LdapAuthentication/LdapAuthentication.php
Loading data from /srv/mediawiki-staging/php-master/extensions/Linter/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/LiquidThreads/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Listings/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/LocalisationUpdate/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/LoginNotify/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/MapSources/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/MassMessage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Math/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/MobileApp/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/MobileFrontend/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/MultimediaViewer/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/NavigationTiming/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Newsletter/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/NewUserMessage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Nuke/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/OATHAuth/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/OAuth/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ORES/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/OpenStackManager/OpenStackManager.php
Loading data from /srv/mediawiki-staging/php-master/extensions/PageAssessments/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PagedTiffHandler/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PageImages/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PageTriage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PageViewInfo/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ParserFunctions/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ParsoidBatchAPI/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PdfHandler/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PerformanceInspector/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Poem/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Popups/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ProofreadPage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PropertySuggester/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/PoolCounter/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/QuickSurveys/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Quiz/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ReadingLists/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/RelatedArticles/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Renameuser/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/RevisionSlider/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/RSS/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SandboxLink/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Score/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Scribunto/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SearchExtraNS/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SecurePoll/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Sentry/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ShortUrl/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SiteMatrix/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SkinPerPage/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SpamBlacklist/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SubPageList3/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SubpageSortkey/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/SyntaxHighlight_GeSHi/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TemplateData/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TemplateSandbox/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TemplateStyles/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TemplateWizard/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TextExtracts/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Thanks/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TimedMediaHandler/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/timeline/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TitleBlacklist/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TocTree/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TorBlock/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Translate/Translate.php
Loading data from /srv/mediawiki-staging/php-master/extensions/TranslationNotifications/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TrustedXFF/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/TwoColConflict/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/UniversalLanguageSelector/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/UploadsLink/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/UploadWizard/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/UrlShortener/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/UserMerge/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/VipsScaler/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/VisualEditor/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Wikibase/client/WikibaseClient.php
Loading data from /srv/mediawiki-staging/php-master/extensions/Wikibase/repo/Wikibase.php
Loading data from /srv/mediawiki-staging/php-master/extensions/WikibaseCirrusSearch/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikibaseLexeme/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikibaseLexemeCirrusSearch/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikibaseMediaInfo/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikibaseQualityConstraints/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/Wikidata.org/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikidataPageBanner/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikiEditor/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/wikihiero/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikiLove/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikimediaBadges/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikimediaEvents/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikimediaEditorTasks/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikimediaIncubator/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/WikimediaMessages/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/XAnalytics/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ZeroBanner/extension.json
Loading data from /srv/mediawiki-staging/php-master/extensions/ZeroPortal/extension.json
Loading data from /srv/mediawiki-staging/php-master/skins/CologneBlue/skin.json
Loading data from /srv/mediawiki-staging/php-master/skins/EUCopyrightCampaignSkin/skin.json
Loading data from /srv/mediawiki-staging/php-master/skins/MinervaNeue/skin.json
Loading data from /srv/mediawiki-staging/php-master/skins/Modern/skin.json
Loading data from /srv/mediawiki-staging/php-master/skins/MonoBook/skin.json
Loading data from /srv/mediawiki-staging/php-master/skins/Nostalgia/skin.json
Loading data from /srv/mediawiki-staging/php-master/skins/Timeless/skin.json
Loading data from /srv/mediawiki-staging/php-master/skins/Vector/skin.json
[5bf7148f4cb7809a7a047e7f] [no req]   ExtensionDependencyError from line 323 of /srv/mediawiki-staging/php-master/includes/registration/ExtensionRegistry.php: TranslationNotifications requires Translate to be installed.
Backtrace:
#0 /srv/mediawiki-staging/php-master/maintenance/mergeMessageFileList.php(177): ExtensionRegistry->readFromQueue(array)
#1 /srv/mediawiki-staging/multiversion/MWScript.php(100): require_once(string)
#2 {main}
11:10:31 Finished l10n-update (duration: 00m 00s)

Event Timeline

hashar created this task.Apr 18 2019, 11:24 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 18 2019, 11:24 AM
Reedy added a subscriber: Reedy.Apr 18 2019, 12:46 PM

So I guess the load order is wrong somewhere in operatons/mediawiki-config

No, Translate hasn't been converted to extension registration, so the require won't work with it

Change 504869 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/TranslationNotifications@master] Partial Revert "Transfer composer.json dependency to extension.json"

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

Change 504869 merged by jenkins-bot:
[mediawiki/extensions/TranslationNotifications@master] Partial Revert "Transfer composer.json dependency to extension.json"

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

Reedy closed this task as Resolved.Apr 18 2019, 1:11 PM
Reedy claimed this task.

Is it worth updating https://www.mediawiki.org/wiki/Manual:Extension.json/Schema#requires with the special case for non-extension registered extensions?