Opened 8 months ago

Closed 4 months ago

#32746 closed enhancement (fixed)

translations repo and jenkins: reduce builds

Reported by: emmapeel Owned by: emmapeel
Priority: Medium Milestone:
Component: Internal Services/Service - jenkins Version:
Severity: Normal Keywords: lektor, l10n, jenkins
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by emmapeel)

i have been thinking on how to use our resources more wisely regarding the translations and the websites.


  • At this moment we are building our websites many branches anew each time we push changes to our translations repository, even with languages still not enabled on production.

This results on a situation when, if there is people translating the support portal for example to Malayalam, which is still not published, and therefore making changes to the translation repository, the website is rebuild several times when there have been no actual changes to it (the pages for the actual website show still no Malayalam translations)

On the other hand, the quick updates are very useful for translators, and they use the staging version of the site a lot, learning to test their translations and thus fixing problems by themselves.

  • The translations configuration gets on the way with the development process

It makes work on staging hard, because there are a lot of changes in the configuration files (databags/alternatives.ini, $website.lektorproject, .htaccess, configs/i18n.ini) that should not get in the production website.

The local and jenkins builds get longer, as people using staging will have to compile all this languages too.

  • The content of the staging site gets outdated, and translators are translating newer content that is not updated on staging

As it is so hard to merge master changes to staging, the staging website gets outdated on other code and is not useful anymore as a quick preview site.


So I propose to:

  • new branches for translators, called translations, that get updated when the dedicated branch at is updated, and follow master closely, differing from it only in changes to the configuration files (databags/alternatives.ini, $website.lektorproject, .htaccess, configs/i18n.ini).
  • the following scheduling in lektor-jenkins-translation branches:
    • master/staging/develop: when there is a change on this branches, we pull the new translations from the translation repo, and update all together
    • translations: we rebuild when there are changes on the website repo, AND changes on the translation repo branch as well

If we want to update the translations in branches master/staging/develop, we should be able to do it simply by triggering a build from the web interface.

This way we can reduce the builds and make development less cumbersome, while also providing a quick preview of their changes to active translators.

We can also prevent accidentally publishing incomplete languages, or removing languages from the 'preview' website.

So, for this to be implemented we need to:

Please let me know what you think

Child Tickets

#32996taskclosedweaseltrigger lektor/translations build when translation.git/[website] updates
#33146defectclosedhirotranslations branches are not translating.

Change History (6)

comment:1 Changed 8 months ago by emmapeel

Description: modified (diff)

comment:2 Changed 8 months ago by emmapeel

Description: modified (diff)

comment:3 Changed 8 months ago by emmapeel

Description: modified (diff)
Owner: changed from weasel to hiro
Status: newassigned

Assigning to hiro cause we talked about this last weeks. Also tried to improve description clarity

comment:4 Changed 7 months ago by emmapeel

Owner: changed from hiro to emmapeel
Status: assignedaccepted

comment:5 Changed 4 months ago by emmapeel

yeah! fixed! 'translations' branches can be accessed at

comment:6 Changed 4 months ago by emmapeel

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.