Gerrit/Come funziona Gerrit

From mediawiki.org
This page is a translated version of the page Gerrit/How Gerrit works and the translation is 52% complete.

Di seguito il processo di invio e di revisione del codice su Gerrit.

  1. Gli utenti che hanno un Wikimedia developer accounts creano un Change (la richiesta di modifica del codice) su Gerrit usando Git o l'interfaccia web.
  2. I revisori vengono aggiunti automaticamente o manualmente al Change per indicare che necessita di essere rivisto.
  3. I test sono eseguiti da un utente attendibile ed il test bot darà il voto sulla base dell'esito del test.
  4. I revisori esaminano il Change, propongono miglioramenti e votano sulla qualità del cambiamento.
  5. Se il Change ottiene dei voti negativi, gli utenti provvedono a migliorarlo con Git o tramite l'interfaccia web e il procedimento ricomincia dal passo 3.
  6. Quando il Change riceve un voto "+2" da parte di un Maintainer, il Change può essere incorporato nel repository.

Dettagli

La revisione del codice è una parte essenziale del nostro flusso di lavoro. Il principio è semplice: ogni patch deve essere esaminata da altri prima di essere incorporata.

Questo significa che il tuo codice avrà bisogno di revisori. Check our advice for getting reviews.

Review before merge

It's important to us to have a review-before-merge workflow for MediaWiki core and also for any extension we deploy. We will also offer that option to any extension author who wants it for their extension. The one exception is localisation and internationalisation commits, which will be able to be pushed without review.

Who can review? Gerrit project owners

After creating a Developer account, anyone can comment on commits and express criticism and approvals. Anyone can give a nonbinding "+1" to any commit. However, for any given repository ("Gerrit project"), only a small group of people will have the ability to approve code within Gerrit and merge it into the repository. This superapproval is a "+2 " even though that's a misleading name, because two +1 approvals DO NOT add up to a +2. These people are "Gerrit project owners".