[adelie-infra] [Bug 104] BTS should integrate with GitLab

From: <bugs_at_adelielinux.org>
Date: Tue, 09 Jul 2019 09:47:16 +0000


--- Comment #2 from Max Rees (sroracle) <maxcrees(a)me.com> ---
While Bugzilla is great, this is the problem that inevitably arises as
everyone moves to GitHub / GitLab / SourceHut issues: the actual bug
tracking software ecosystem starts to rot.

I did some investigating based on knowing that both Gentoo and FreeBSD
automatically post relevant commits to Bugzilla.

While Gentoo does not use GitZilla directly, it uses a bespoke git
hook[1] that utilizes pybugz, the library underlying GitZilla. However,
pybugz[2] is seemingly unmaintained as well (last activity February
2017). You can see an example of this hook in action at [3].

FreeBSD does not use git directly of course - their source of truth is
still svn based. They use a bespoke svn hook[4] that emails Bugzilla
directly. The hook itself looks for lines containing only "PR: XXXX" to
grab the bug ID. Bugzilla then grabs the bug ID from the Subject: if it
starts with "[Bug XXXX]". The corresponding part of BugZilla's source is
[5] I believe. You can see an example of this hook in action at [6].

In light of this research it seems that just emailing BugZilla directly
as FreeBSD does would seem to be much easier, but it presents two new

    1. It must be determined what the hook should be looking for in
       commit messages (ideally this should match what GitLab is looking

  2. Our Bugzilla instance currently does not support emails:

       Hi. This is the qmail-send program at mail.wilcox-tech.com.
       I'm afraid I wasn't able to deliver your message to the following
       This is a permanent error; I've given up. Sorry it didn't work

       Sorry, no mailbox here by that name. (#5.1.1)

Of course, there is also the API[7] that can be used. This is much
better documented than the email interface as far as I can tell and
would allow things such as closing a bug[8].

[2] https://github.com/williamh/pybugz
[3] https://bugs.gentoo.org/656022#c4
[5] https://github.com/bugzilla/bugzilla/blob/preview/5.0.4/email_in.pl
[6] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=165622#c14
[8] https://bugzilla.readthedocs.io/en/5.0/api/core/v1/bug.html#update-bug

You are receiving this mail because:
You are the assignee for the bug.
Received on Tue Jul 09 2019 - 09:47:23 UTC

This archive was generated by hypermail 2.4.0 : Sat May 08 2021 - 22:54:40 UTC