Bug #15186

Evaluate moving to GitLab for merge requests

Added by intrigeri 2018-01-17 15:35:45 . Updated 2019-11-30 18:29:02 .

Target version:
Start date:
Due date:
% Done:


Feature Branch:
Type of work:
Affected tool:
Deliverable for:


We’ve added Bug #14516 to our 2018 roadmap. I think this ticket is strongly related but it’s too premature to be part of that roadmap item, so let’s track it separately.

A few observations lead me to create this ticket:

  • My experience welcoming new Tails contributors: we spend lots of time teaching new contributors how we use Redmine for submitting proposed changes. Symmetrically, given the amount of questions they ask and mistakes they do, it’s clear that new contributors spend lots of time learning our workflow. I suspect this requirement raises the bar to a point that discourages some potential contributors who would be happy to fix a small bug or a couple typos, but are not ready to learn a workflow that they will have no use for anywhere else.
  • My experience as a drive-by contributor elsewhere: as a free software user, pretty often I notice a small bug or typo that I could very easily fix. The chances that I actually submit a fix depends in great part on whether the affected project uses a well-known workflow. If it does, then generally I’ll bother clicking a “Fork” button and submitting a merge request, e.g. https://github.com/ModernPGP/modernpgp.github.io/pull/9. If it doesn’t, then generally I’ll be lazy and give up. I suspect many people act similarly but I have no data to back this guess. Nowadays, a “well-known workflow” basically means a GitHub or GitLab web interface; using github.com or gitlab.com eases things even more for people who already have an account there, but IMO the need for creating an account is not that much of a problem as long as one knows they’ll be at ease in the interface once logged in.
  • Modern web-based merge request workflows provide a better UX for reviewers and contributors. I’ve been using GitLab more and more for other projects and some features are life changers in my experience:
    • inline commenting on the specific piece of code one is reviewing and direct access to the submitted code from the same interface where the merge request is tracked, regardless of the status of the submitter (in our Redmine we have a list of commits but that only works if the submitter flagged them appropriately and has commit access to our official repo)
    • a concept of having N open “discussions” on a merge request, that can be “resolved”: compared to the linear list of comments without metadata that we have on Redmine, it makes it much easier to know what’s left to address, because whatever has already reached a conclusion is hidden by default
    • A great lot of people still prefer using a Terminal as much as they can but I’m also convinced that this set of people is getting more and more marginal, so probably we should not optimize our contributors workflow for them: our future new contributors are much more likely to be at ease with GitLab or GitHub than with our current workflow. Anyway, one can talk with GitLab using email.

So far so good. I’ll ignore GitHub as I’m sure a proposal to move there would never reach consensus in our community so I’ll focus on GitLab.

The problem is, these tools perform optimally when one uses them for issue tracking as well as merge requests. There are some options to integrate Redmine issue tracking with GitLab merge requests, but I don’t think this combination would give us the advantages we’re looking for in terms of improving new and current contributors experience: current contributors would have to learn GitLab, new contributors would have to learn Redmine, and everyone would still have to gain and maintain knowledge about a weird workflow nobody else uses.

GitLab’s issue tracking has a very different set of features from Redmine’s. It may be too limited for our needs even if it’s improving (e.g. GNOME successfully got some features released in the “community” open souce version of GitLab, that were previously available only in the “enterprise” proprietary version). E.g. relationships between issues is not in the free software version (upstream bug, the set of metadata available for issues + the lack of complex search queries may prevent us from doing the kind of fancy stuff we’ve got used to on Redmine. So likely our most involved contributors would need to adapt a lot to the new set of features and concepts, in particular when working on, or managing, a large project. See for example how GNOME uses it.

Next steps:

  • List user stories that Redmine currently satisfies and try to find how it could work with GitLab.
  • Consider installing Redmine plugins that enable a GitLab-like workflow: free-form tagging (labels in GitLab-speak) instead of hard-coded custom fields / “blocks: core work XYZ: YYYYQN”, checklists (“task list” in GitLab-speak) instead of subtasks. This would allow some of our teams to experiment with this workflow.
  • Wait a bit. Moving won’t happen in 2018 anyway and it would be good to see how GitLab fares for other projects like GNOME and Debian (although Debian won’t use issue tracking).



Related issues

Related to Tails - Bug #14516: Lower technical requirements for new contributors Confirmed 2017-08-30
Related to Tails - Feature #6905: Look for a suitable code review tool Rejected 2014-03-11
Related to Tails - Bug #7735: Investigate calendar modules and plugins for Redmine Rejected 2014-08-03
Related to Tails - Feature #8358: Automatically check PO files in all our repositories Rejected 2014-12-02
Related to Tails - Bug #17172: Clarify usage of Salsa/Gitlab reviews for Tails Rejected
Blocks Tails - Feature #16209: Core work: Foundations Team Confirmed


#1 Updated by intrigeri 2018-01-17 15:36:02

  • related to Bug #14516: Lower technical requirements for new contributors added

#2 Updated by intrigeri 2018-01-17 15:40:33

  • Description updated

#3 Updated by intrigeri 2018-01-19 16:31:26

  • related to Feature #6905: Look for a suitable code review tool added

#4 Updated by intrigeri 2018-03-06 15:53:56

  • Description updated

#5 Updated by intrigeri 2018-03-31 07:38:04

  • Description updated

#6 Updated by intrigeri 2018-03-31 07:46:41

  • Description updated

#7 Updated by Anonymous 2018-08-16 12:31:05

I’m starting to find Redmine more and more unusable. I want tags and merge requests and a readable layout that does not hurt my eyes.

#8 Updated by segfault 2018-08-16 19:07:12

My two cents:

  • Merge requests and GitLab CI are awesome, I think it’s crazy we don’t use them yet
  • I do miss subtasks in GitLab, it makes it harder to split an issue into smaller tasks and there is no good overview for them
  • I also miss the “blocked by” relationship, although less than the subtasks

=> I think we should start using GitLab merge requests and CI ASAP, but maybe still use redmine for the tickets.

#9 Updated by intrigeri 2018-08-16 20:04:30

> => I think we should start using GitLab merge requests and CI ASAP, but maybe still use redmine for the tickets.

Works for me. Next step: identify what prevents us from doing so and find realistic solutions :)

#10 Updated by Anonymous 2018-08-18 13:20:33

  • related to Bug #7735: Investigate calendar modules and plugins for Redmine added

#11 Updated by intrigeri 2018-08-19 07:52:25

  • related to Feature #8358: Automatically check PO files in all our repositories added

#12 Updated by intrigeri 2018-09-14 08:43:02

  • Subject changed from Evaluate moving to GitLab to Evaluate moving to GitLab for merge requests
  • Parent task set to Feature #15878

Repurposing this to track only the MR & reviews aspect. Moving issues will be tracked on the parent ticket or a sibbling one.

#13 Updated by intrigeri 2018-09-14 08:44:11

  • Target version changed from Tails_3.11 to 2019

#14 Updated by lamby 2019-02-06 22:58:05

Where’s the +1 button!

#15 Updated by intrigeri 2019-04-04 09:49:52

  • Status changed from Confirmed to In Progress

Applied in changeset commit:tails|fa3288083b2feae3ae19a7af414ced89e9533eb5.

#16 Updated by intrigeri 2019-04-07 08:29:56

  • Type of work changed from Research to Test

Status update:

  • Our doc for “code” contributions suggests using MRs on Debian’s GitLab (aka. Salsa). The FT is experimenting with this workflow internally as well.
  • Our other contribution docs don’t mention Salsa at all and still suggest the previous workflow (fork on gitlab.com and point the Redmine ticket to your branch); we can change this once we’ve dealt with any critical issue raised by the ongoing experiments and taught all Tails committers how to handle MRs on GitLab.
  • The tails project on Salsa is minimally integrated with Redmine: a #NNN link on Salsa points to the relevant Redmine ticket.

#17 Updated by intrigeri 2019-04-13 08:27:34

#18 Updated by intrigeri 2019-04-13 12:12:09

  • Blueprint set to https://tails.boum.org/blueprint/GitLab/

#19 Updated by intrigeri 2019-11-11 12:43:04

  • Target version changed from 2019 to Tails_4.1

I’ll sum up how the experiment went next week.

#20 Updated by intrigeri 2019-11-12 14:56:07

  • related to Bug #17172: Clarify usage of Salsa/Gitlab reviews for Tails added

#21 Updated by intrigeri 2019-11-12 15:12:51

Here’s a first batch:

  • 35 MRs were merged since we started this experiment ~7 months ago.
  • On 2019-09-01, I asked feedback to the FT about this by the end of October. No reply so far. I’ve pinged the thread, with an updated deadline (end of this week). I’ll report back here if I receive such feedback.
  • I’ve heard enthusiastic feedback about the ability to comment on specific lines while reviewing.
  • I’ve heard feedback about not seeing much benefit compared to the Redmine way of doing reviews. For context, this was about a rather small documentation branch.
  • It’s now clear to me that we need at least pointers to the relevant GitLab MR documentation: we should not take for granted that everyone is already used to GitHub/GitLab PR/MR workflows and web UIs. I’ve filed Feature #17226 to ensure this is not forgotten by the folks who’ll implement the migration.
  • There’s been some confusion caused by the current non-standard setup where the repo hosted on Salsa is not the canonical one, but a mirror one should not push to. These problems will not exist as long as the canonical copy of our repositories live on GitLab, so IMO these are strong points in favor of doing that.
    • One aspect that was initially unclear to one person (i.e. where should follow-up commits be pushed) was promptly clarified, but further misunderstandings arose later in the conversation. For details, see the full discussion.
    • There’s been lots of confusion, for several people, caused by the fact that Salsa shows all pushes as made by yours truly, regardless of who actually pushed. That’s because I’m the one who has set up the deployment key that’s used to do the mirror synchronization.
  • Through this experiment, I’ve learnt that one can comment on a commit on GitLab (I had no idea). But somehow the resulting discussion seems to have a different behavior wrt. notifications than a discussion happening on a MR: it looks like there’s no concept of “participant”. This resulted in someone missing a reply to a comment of theirs. I have no idea what’s the deal here. I hope that documentation about MRs will help folks comment on the MR instead of on commits (especially commits that are not part of the MR, like in this case), which will avoid this kind of trouble. For details, see the full discussion.
  • The FT has not used GitLab MRs much after the initial excitement, apart of for a few branches that were bigger than average and could truly benefit from GitLab’s inline review facilities. I guess this can be explained by a combination of three factors:
    • Most of our branches are tiny, simple, and get merged with no comment whatsoever by the reviewer. So most of the time, inline comments during code review would not be used. The only benefit we would get is the web UI to inspect the diffs and commits, but since at the end of the day one currently needs to merge via the command line, oh well, one can as well review on the command line.
    • Most of our branches are about a Redmine ticket, so to use a MR, one needs to do extra paperwork. So unless the benefit of doing so is clear (not the case most of the time as said above), understandably we don’t bother. The need for extra paperwork will vanish once our issues are tracked in GitLab.
    • The FT already has a hard time to keep track of Redmine issues that need validation. Having to also monitor the MRs on Salsa requires more busywork, which is not exactly motivating.
  • The feature of having N open “discussions” on a merge request, that can be “resolved” (as opposed to the linear list of comments without metadata that we have on Redmine, which makes long discussions harder to follow than they could be), was not used consistently: the default being to simply add a comment to the pile, folks who were not already used to GitLab tended to do that, including in cases where they should really have started a discussion. I trust this can be solved by a combination of documentation, learning by example, and gentle mentoring as folks get started with GitLab. Note that if that does not get solved, the end result is just as bad, and no worse, than what we have on Redmine.

I’ll translate the take aways of this experiment into clear requirements/specifications for the folks who will implement our migration to GitLab.

#22 Updated by intrigeri 2019-11-30 18:29:02

  • Status changed from In Progress to Resolved
  • Assignee deleted (intrigeri)

intrigeri wrote:
> I’ll translate the take aways of this experiment into clear requirements/specifications for the folks who will implement our migration to GitLab.