Closed Bug 1553162 Opened 6 years ago Closed 5 years ago

System check the react i18n built .json files

Categories

(developer.mozilla.org Graveyard :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: peterbe, Assigned: peterbe)

Details

(Keywords: in-triage)

Attachments

(1 file)

https://github.com/mozilla/kuma/pull/5420 has landed in master.
This news code mandates that you execute make compile-react-i18n at some point before starting the server. That creates files like {BASE_DIR}/static/jsi18n/{locale}/react.json. If they don't exist or are corrupt you would get runtime errors in Django.

What we should do is assert, using the Django system checks framework, that all these files exist and are in working condition.

This bug is also about making sure that running system checks are in place in the deploy pipeline so that we don't proceed with the deployment if the system checks fail in any way.

Type: defect → enhancement
Status: NEW → ASSIGNED
Keywords: in-triage
Priority: -- → P2

Note-to-self; I think the PR is nearly there but there are some decisions we need to make about how we trigger this in Jenkins. See https://github.com/mozilla/kuma/pull/5425#issuecomment-494419034

Commit merged into master by GitHub Authored by Peter Bengtsson (peterbe)
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: