Page MenuHomePhabricator

LocalisationUpdate GitHub backend fails if it cannot find a i18n dir
Closed, ResolvedPublic

Description

When LocalisationUpdate is run I get the following error:

[92b5ad9c1eec7433c835aa4d] [no req] Exception from line 27 of /var/www/extensions/LocalisationUpdate/fetcher/GitHubFetcher.php: Unable to get directory listing for wikimedia/mediawiki-skins-foreground Backtrace:

0 /var/www/extensions/LocalisationUpdate/Updater.php(117): LocalisationUpdate\GitHubFetcher->fetchDirectory(string)
1 /var/www/extensions/LocalisationUpdate/Updater.php(139): LocalisationUpdate\Updater->fetchFiles(LocalisationUpdate\FetcherFactory, string)
2 /var/www/extensions/LocalisationUpdate/update.php(62): LocalisationUpdate\Updater->execute(LocalisationUpdate\Finder, LocalisationUpdate\ReaderFactory, LocalisationUpdate\FetcherFactory, array)
3 /var/www/maintenance/doMaintenance.php(111): LU->execute()
4 /var/www/extensions/LocalisationUpdate/update.php(80): require_once(string)
5 {main}

The whole update should not fail in case some of the equivalent files cannot be found.

Event Timeline

An option to exclude certain skins or better error handling would be nice.

The updater not crapping out with a fatal exception.

Nikerabbit renamed this task from LocalisationUpdate fails if foreground skin is installed to LocalisationUpdate fails if non-gerrit skin or extension is installed.Dec 4 2017, 4:28 PM
Nikerabbit triaged this task as High priority.
Nikerabbit added a project: User-Nikerabbit.
Nikerabbit renamed this task from LocalisationUpdate fails if non-gerrit skin or extension is installed to LocalisationUpdate GitHub backend fails if it cannot find a i18n dir.Oct 11 2018, 8:14 AM

Test plan:

  • Use a stable version of MediaWiki
  • Add wfLoadExtension( 'LocalisationUpdate' ); to LocalSettings.php
  • Execute php extensions/LocalisationUpdate/update.php

Change 469386 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/LocalisationUpdate@master] Handle exceptions from GitHubFetcher

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

Change 469386 merged by jenkins-bot:
[mediawiki/extensions/LocalisationUpdate@master] Handle exceptions from GitHubFetcher

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

Change 469674 had a related patch set uploaded (by Paladox; owner: Nikerabbit):
[mediawiki/extensions/LocalisationUpdate@REL1_32] Handle exceptions from GitHubFetcher

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

Change 469675 had a related patch set uploaded (by Paladox; owner: Nikerabbit):
[mediawiki/extensions/LocalisationUpdate@REL1_31] Handle exceptions from GitHubFetcher

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

Change 469674 merged by jenkins-bot:
[mediawiki/extensions/LocalisationUpdate@REL1_32] Handle exceptions from GitHubFetcher

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

Change 469675 merged by jenkins-bot:
[mediawiki/extensions/LocalisationUpdate@REL1_31] Handle exceptions from GitHubFetcher

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