Introduction + Importing git mailing list archives

Konstantin Ryabitsev konstantin at
Thu Jun 17 23:38:51 AEST 2021

On Wed, Jun 16, 2021 at 05:14:23PM -0400, Raxel Gutierrez wrote:
> I set up my development environment for Patchwork through the manual
> installation steps. Since I am focusing on the Git project, I am
> trying to set up a test instance using the Git mailing list archive. I
> was able to successfully import the Patchwork mailing list archives as
> outlined [1]. The Patchwork mailing list uses a mailman instance but
> the Git mailing list doesn't, so the instructions wouldn’t work [2].
> My host (jrnieder) helped me locate a file [3] that Konstantin wrote
> which seems to already solve this issue, so I am interested in any
> pointers you have about the setup.

It's easy to use public-inbox archives as your patchwork sources, after some
initial configuration (primarily, so you properly import GitGitGadget series).

Here's how to go about it:

1. Read the following post and configure grokmirror with grok-pi-piper. Do NOT
   set shallow=yes, as you'll want to import the entirety of archives.

2. Adapt the following procmail rules here to properly import 
   GitGitGadget-created patch series: 3. 

3. Find the file git/git/0.git/pi-piper.latest and change it to contain the
   following hash: dabc1bccbf7b767275a4a46d3f11ef50151027db (this is the first
   commit in the public-inbox repository archive).

4. Now you can run:
   grok-pi-piper -c path/to/pi-piper.conf /path/to/git/git/0.git

This should import the entirety of git archives (15 years worth) into
patchwork. Once it's done, you can continuously import new messages by setting
up the grok-pull service as described in the post I linked

Please let me know if you run into any troubles.


More information about the Patchwork mailing list