Page MenuHomePhabricator

Document the process of setting up L10n-bot integration for repositories
Closed, ResolvedPublic

Description

  1. Please add the following repos to mediawiki-i18n-check-docker and l10n-bot-watcher gerrit group
    • labs/tools/map-of-monuments
    • labs/tools/weapon-of-mass-description
    • labs/tools/commons-mass-description
  1. Can someone decide and document what is the best process for doing this, so that I can link that from https://translatewiki.net/wiki/Setup_of_a_new_project#Access_for_delivering_translation_updates

Event Timeline

https://gerrit.wikimedia.org/r/c/labs/tools/map-of-monuments/+/467273

It says "Starting gate-and-submit-l10n jobs" but nothing happened after that.

In Gerrit, the three mentioned repositories all inherit rights from labs/tools https://gerrit.wikimedia.org/r/#/admin/projects/labs/tools,access

We don't add a repository to a group, it is the other way around: a group is added to a permission to the repository. What kind of permissions do you need for the Gerrit groups mediawiki-i18n-check-docker and l10n-bot-watcher?

For repository creations, there is no formal process I know off. Beside the creation of MediaWiki extensions and skins which is handled by the wiki. Then with Gerrit repositories inheriting rights from the parent repository, it is usually not a problem.

We don't add a repository to a group, it is the other way around: a group is added to a permission to the repository. What kind of permissions do you need for the Gerrit groups mediawiki-i18n-check-docker and l10n-bot-watcher?

l10n-bot-watcher should have the same rights as elsewhere, V+2, Submit, Abandon I think.

mediawiki-i18n-check-docker is not a gerrit group but a zuul pipeline, as far as I know. I am not sure how repos are assigned to it.

For repository creations, there is no formal process I know off. Beside the creation of MediaWiki extensions and skins which is handled by the wiki. Then with Gerrit repositories inheriting rights from the parent repository, it is usually not a problem.

I just need a written guide which I can point people to so that they know what they need to do or request in Phabricator to get things set up for l10n-bot integration.

Nikerabbit renamed this task from Document the process of adding new repositories for L10n-bot to Document the process of setting up L10n-bot integration for repositories.Oct 15 2018, 11:46 AM

Change 467329 had a related patch set uploaded (by Urbanecm; owner: Urbanecm):
[integration/config@master] Add gate-and-submit-l10n to several Urbanecm's tools

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

This problem is not related to rights. @thcipriani just forgot to add mediawiki-i18n-check-docker job to other my tools than Wikinity. Merging this patch should fix the problem for my tools and similar change should be done for all tools that uses TWN and are on Wikimedia Gerrit. Is it enough for you @Nikerabbit or do you need more info?

@Urbanecm Yes, I need something written down (in mediawiki.org for example) in a way that a random volunteer developer understands what they need to do enable L10n-bot for their repository.

I am getting pieces of information, but I still don't have the full picture:

  • Do people usually have rights to change access on their repository to add rights to l10n-bot-watcher and L10n-bot? If not, how do they get it done? Do they make a patch or request in Phab (which tag?) or in wiki (which page)
  • To get mediawiki-i18n-check-docker installed, do they need a submit a patch (what do they need to change, who to add as reviewers?), or do they request in Phab (which tag?)
  • Anything else that needs to be done.

@Urbanecm Yes, I need something written down (in mediawiki.org for example) in a way that a random volunteer developer understands what they need to do enable L10n-bot for their repository.

I am getting pieces of information, but I still don't have the full picture:

  • Do people usually have rights to change access on their repository to add rights to l10n-bot-watcher and L10n-bot? If not, how do they get it done? Do they make a patch or request in Phab (which tag?) or in wiki (which page)
  • To get mediawiki-i18n-check-docker installed, do they need a submit a patch (what do they need to change, who to add as reviewers?), or do they request in Phab (which tag?)
  • They need to change section for their repo in /zuul/layout.yaml in integration/config and add those rows
gate-and-submit-l10n:
    - mediawiki-i18n-check-docker

In case there is no section for their gerrit repository (which means there is no CI yet), they should add something like this.

- name: some/repository
  gate-and-submit-l10n:
      - mediawiki-i18n-check-docker

Another way how to get this done is to create a task in Continuous-Integration-Config.

  • Anything else that needs to be done.

I think this is all.

Urbanecm claimed this task.