Launchpad doesn't generate translation templates

Bug #817398 reported by Данило Шеган
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Данило Шеган

Bug Description

Checking a random number of entries from the builddmanager logs, I could not identify one project which has its template generated from source code. The projects were either 1) not using LP for translations at all, 2) importing a commited template from the branch, 3) using a very old template.

It seems that something is fundamentally broken with the template generation.

Related branches

description: updated
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
tags: added: template-generation
Revision history for this message
Henning Eggers (henninge) wrote :

It seems that LightDM has the same problem.

Changed in launchpad:
assignee: nobody → Henning Eggers (henninge)
Revision history for this message
Henning Eggers (henninge) wrote : Re: Launchpad doesn't generate a translation templates

As far as I can tell, no translation templates are being generated at all. This either broke or never worked.

If anybody knows of any project using this feature successfully, please let us know!

summary: - Launchpad doesn't generate a translation template for lp:eog
+ Launchpad doesn't generate a translation templates
Changed in launchpad:
importance: High → Critical
description: updated
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → In Progress
tags: added: qa-untestable
removed: qa-needstesting
Revision history for this message
Данило Шеган (danilo) wrote :

It has definitely worked in the past. However, I wonder if the sanitization of the logging/job types was ever completed for template generation jobs? The last I heard no logs were being linked to the appropriate records with them.

summary: - Launchpad doesn't generate a translation templates
+ Launchpad doesn't generate translation templates
Revision history for this message
Henning Eggers (henninge) wrote :

Yes, no logs are being stored. I tried to find their librarian ids in production but found only NULLs. :(

It seems that the jobs are never getting to the WAITING state because even after making sure that the end of a job gets logged (see the better-logging branch) there is no output in buildd-manager.log. It looks like the jobs are being started but never finish. A job start is never recorded, either. The buildfarmjob table looks like this: https://pastebin.canonical.com/52308/

Revision history for this message
Henning Eggers (henninge) wrote :

When this gets fixed, bug 644464 should get fixed along with it. (I thought that was long done but nm, isn't that a beautiful bug number?)

Revision history for this message
Henning Eggers (henninge) wrote :

I have not been able to get to the bottom of this. I tried to run the buildd slave locally (like I did when I developed this feature) but I failed. Due to lack of time I cannot pursue this any more.

If you pick this up, please feel free to contact me about further information.

Changed in launchpad:
status: In Progress → Triaged
assignee: Henning Eggers (henninge) → nobody
Changed in launchpad:
assignee: nobody → Данило Шеган (danilo)
status: Triaged → In Progress
Revision history for this message
Данило Шеган (danilo) wrote :

FWIW, this was broken with the release from 2010-10-14 (that's when we started getting unprocessed translation builds).

Revision history for this message
Данило Шеган (danilo) wrote :

So, everything up to build job execution is fine: build-master picks them up correctly, but usually less then 3 minutes later, a PACKAGEFAIL error is returned (well, all but 1 job in October failed with PACKAGEFAIL; that one failed with CHROOTFAIL instead). Something's going fishy on the slaves, so need to focus the effort there.

For reference:
 * log files devpad:/srv/launchpad.net-logs/soyuz/cesium/build-manager.log*
 * look for "Starting templates" and "Template generation job" to find relevant messages, eg.

2011-10-11 20:44:46+0000 [QueryProtocol,client] Starting templates build trunk-4883603 for lp:eog.
...
2011-10-11 20:47:31+0000 [QueryProtocol,client] Templates generation job trunk-4883603 for lp:eog finished with status PACKAGEFAIL.

Revision history for this message
Данило Шеган (danilo) wrote :

Ok, with help from William I was able to set up a local instance. The problem is that natty chroot switches default Python to 2.7 and generate-translation-templates hard-codes 2.6 in PYMODULES. That's easy to fix, but since we should have caught this problem much earlier, I am also adding buildlog storage finally (I thought that was supposed to happen by the generic build machinery, but it doesn't if you don't do it yourself, especially if you are not using PackageBuildDerived as the base to derive from).

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-untestable
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Данило Шеган (danilo) wrote :

Launchpad side is good to roll out (tested on staging which had to be brought up to speed for buildd stuff again), thus marking qa-ok. Actual slave code still needs to be tested, but that gets rolled out independently.

tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.