Page MenuHomePhabricator

Error compiling message catalogs following TWN import
Closed, ResolvedPublicBUG REPORT

Description

The 2021-11-22 export from TWN is causing post-merge build failures when the container build attempts to compile the .po message catalogs:

Execution of msgfmt failed: /srv/app/toolhub/locale/qqq/LC_MESSAGES/django.po:1088: a format specification for argument 'message' doesn't exist in 'msgstr'
msgfmt: found 1 fatal error
CommandError: compilemessages generated one or more errors.

Event Timeline

bd808 triaged this task as Unbreak Now! priority.
bd808 changed the subtype of this task from "Task" to "Bug Report".
bd808 added a project: translatewiki.net.
bd808 changed the task status from Open to In Progress.EditedNov 23 2021, 2:22 PM
bd808 moved this task from Backlog to In Progress on the Toolhub board.

I think we probably should be using --exclude qqq in our makemessages invocation. The qqq pseudo-locale is only meant to provide translation unit documentation for the users at https://translatewiki.net. We do not care if the PO file exported by TWN compiles cleanly into a MO binary.

https://docs.djangoproject.com/en/2.2/ref/django-admin/#django-admin-makemessages

If you don't maintain the documentation file in the repository (only through translatewiki.net), then we could skip exporting it.

If you don't maintain the documentation file in the repository (only through translatewiki.net), then we could skip exporting it.

That seems like a reasonable thing as well. Following a "belt and suspenders" model I think we could do both.

Change 740844 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] build: Exclude qqq pseudo-locale from compilation

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

Change 740844 merged by jenkins-bot:

[wikimedia/toolhub@main] build: Exclude qqq pseudo-locale from compilation

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

bd808 lowered the priority of this task from Unbreak Now! to Medium.Nov 23 2021, 5:04 PM

Resetting from UBN! status. The merged patch has restored post-merge container builds as hoped.

Change 740896 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[translatewiki@master] Toolhub: Exclude qqq from export

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

Change 740896 merged by jenkins-bot:

[translatewiki@master] Toolhub: Exclude qqq from export

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

Change 740910 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] build: Remove legacy qqq Django locale

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

Change 740910 merged by jenkins-bot:

[wikimedia/toolhub@main] build: Remove legacy qqq Django locale

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

Change 749220 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/deployment-charts@master] toolhub: Bump container version to 2021-12-20-122341-production

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

Change 749220 merged by jenkins-bot:

[operations/deployment-charts@master] toolhub: Bump container version to 2021-12-23-121200-production

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