Wikimedia

Tracker: Add an option to ignore errors when compiling messages to the deployment script

Problem

As of now, compiling messages is broken due to T240081. When a system administrator deploys new version of Tracker using support/deploy script, it normally aborts on failure, regardless where that failure happens.

Given compiling messages (you can read more at Wikipedia, if interested) fails now, it might be useful to ignore errors in that phase of deployment. Errors in other parts of the deployment process are often fatal, but i18n can be safely skipped - its only effect is that i18n messages aren't updated.  

Proposed solution

Add a switch to the support/deploy script that will ignore errors that happened when python manage.py compilemessages is run. The switch should not ignore errors happening during any other part of the script.   Student is expected to send a patch for wikimedia-cz/tracker repository, hosted at Wikimedia Gerrit. When claiming task on GCI website, student should claim a respective Phabricator task as well.  

Materials

 

Task tags

  • python
  • django

Students who completed this task

alcarazzam

Task type

  • code Code
close

2019