Linee guida per il rintracciamento di errori o bug#

This document describes the standard process of dealing with new issues in UBports projects. (Not to be confused with the guide on writing a good bugreport.)

Dove vengono tracciati i bug?#

Since quality assurance depends heavily on community effort, issues are tracked where users expect them, instead of separated by repository. This means issues of almost all distributed components (as with the system-image) are tracked in the Ubuntu Touch tracker. An exception to this are click-apps, which can be updated independently through the OpenStore.

Most other repositories track issues locally. You will find out whether a repository uses its own tracker or not in its README.md file. Repositories that don’t track issues locally have their bugtracker turned off.

Questa pagina riguarda principalmente il sistema di tracciamento di Ubuntu Touch, ma la maggior parte dei princìpi si applicano pure ad altri progetti.

Nota

Practical exceptions to purity are to be described in the project’s README.md file.

Progetti su GitHub#

In the interest of transparency and communication, GitHub projects (Kanban-Boards) are used wherever practical. In case of github.com/ubports/ubuntu-touch, a single project is used for all issues. Projects support filtering by labels, so that only issues belonging to a specific team or ones affecting a specific device can be viewed.

Queste sono le colonne standard:

  • None (awaiting triage): Issue approved by a member of the QA team awaiting review from the responsible development team. If a bug, instructions to reproduce are included in the issue description. If a feature request, it has passed a primary sanity check by the QA team, but not yet been accepted by the responsible development-team.

  • Accepted: Issue accepted by the responsible development-team. If a bugreport, the team has decided it should be fixable and accept responsibility. If a feature request, the team thinks it should be implemented as described.

  • In Development: A patch in development. Usually means a developer is assigned to the issue.

  • Quality Assurance: A completed patch passing initial testing. The QA team will review it and provide feedback. If problems are found, the issue is moved back to «Accepted».

  • Release Candidate: A patch passing QA, ready for release. In case of DEB packages included in the system-image, the patch will be included in the next over-the-air update on the rc channel, and (provided everything goes well) in the next release of the stable channel.

  • None (removed from the project): Open issue labeled «help wanted». Community contributions are required to resolve it. If it’s closed, either a patch has been released on the stable channel (a comment on the issue should link to the patch) or the issue is rejected (labeled «wontfix»).

Etichette#

All issues — even closed ones — should be labeled to allow use of GitHub’s global filtering. For example, these are all of the issues labeled “enhancement” inside @ubports. Consult the GitHub help pages to learn more about searching and filtering.

List of labels normally used by all repositories:

  • needs confirmation: The bug needs confirmation and / or further detailing by affected users.

  • bug: This issue is a confirmed bug. If it’s reproducible, reproduction steps are described.

  • opinione: Questo problema ha bisogno di essere approfondito ulteriormente.

  • miglioria: Questo problema è una richiesta di una nuova funzionalità.

  • domanda: Questo problema è una richiesta di supporto o una domanda generale.

  • non valido: Questo problema non può essere confermato o è stato inserito nel sistema di tracciamento sbagliato.

  • duplicate: This has already been reported elsewhere. Please provide a link and close.

  • necessita aiuto: Questo problema è pronto per essere preso in carica da uno sviluppatore della comunità.

  • good first issue: The report contains instructions or hints required to fix it. It is an excellent place for someone new to learn about the project by fixing a real issue.

  • wontfix: A bug it does not make sense to fix, since it will probably resolve itself, be too much work, isn’t fixable, or an underlying component will soon change.

Additional special labels can be defined. As an example, these are the labels used in the Ubuntu Touch tracker:

  • critical (devel): Critical issue only occuring on the devel channel is blocking the release of the next rc image.

  • critical (rc): Critical issue only occuring on the devel and rc channel is blocking the release of the next stable release. Usually, issues that can not simply be moved to a different release and have the power to postpone the release are labeled this way.

  • device: [DEVICE CODENAME]: Issue affecting only the specified device(s).

  • team: [TEAM NAME]: Issue falls under the responsibility of a specific team (HAL, middleware, UI).

Nota

If a repository tracking issues locally defines it’s own labels, they should be documented in the README.md.

Obiettivi stabiliti#

Milestones are used for stable OTA releases only. In general, milestones for the work-in-progress OTA and the next OTA are created. The ETA is set once the work on the release starts (that is 6 weeks from start date), but can be adjusted afterwards. Learn more in release-schedule.

Assegnatari#

Per rendere trasparente chi sta lavorando su un problema, gli si deve assegnare uno sviluppatore. Ciò permette l’uso dei filtri globali di GitHub, a modo di lista di cose da farsi. Ad esempio, questo è tutto ciò che è stato assegnato a mariogrip in @ubports.

Agli sviluppatori è richiesto di mantenere delle liste ridotte e di mantenere aggiornato lo stato dei problemi.

Esempi#

Ciclo di vita dei bachi#

Nota

The same principle applies to feature requests, only they are labeled enhancement instead of bug. needs confirmation is not applicable for feature requests.

  • A user files a new bug using the issue-template.

  • The QA-Team labels it needs confirmation and tries to work with the user to confirm the bug and add potentially missing info to the report.

  • Once the report is complete a team-label is added to the issue, the issue will be put on the awaiting-triage-list of the project and the label needs confirmation will be replaced with bug.

  • The affected Team triages the issue and either rejects (label wontfix, closes and removes from the project) or accepts the issue.

  • The team decides whether to fix the issue in-house (move to «Accepted» and assign a team member) or wait for a community developer to pick it up (by labeling it help wanted, removing it from the project board and providing hints on how to resolve the issue and further details on how the fix should be implemented if necessary). For non-critical issues trivial to fix, the label good first issue can be added as well.

  • Once a developer is assigned and starts working on the issue, it is moved to «In Development».

  • As soon as there is something to show for, the issue is closed and automatically moved to «Quality Assurance» for feedback from the QA team. If necessary, the developer provides hints on how to test the patch in a comment on the issue.

  • The QA-Team tests the fix on all devices and provides feedback to the developer. If problems are found, the issue is re-opened and goes back to «Accepted», otherwise it is moved to «Release Candidate» for inclusion in the next release.

  • If not done already, the issue is added to the next milestone, which once released removes the issue from the project board.