Skip to contentSkip to conversation

patchwork service.

Qemu-devel Jean-Christophe Dubois 4 participants 7 messages Sep 14, 2009 – Oct 6, 2009

lore
Share & tools
lore
#1 lore raw
Quoted 8 lines · Jean-Christophe Dubois

I know there is some discussion on how to get earlier feeback to people submitting patches.

It seems there already is a "patchwork" service available.

http://patchwork.ozlabs.org/project/qemu-devel/list/

But it is not used as the patch status is not updated for quite a few of them (even if they have been accepted/merged since then).

I looked at the patchwork tooling and it didn't seem to easily integrate into my work flow. It seems to be designed with the idea that you use their tools to pull and manage patches. I don't think those tools will scale to the volume of patches qemu-devel sees though. Plus, there's no easy way to deal with the fact that other maintainers may not use it. Now there are a few thousand patches and trolling through would take ages.

Not really sure how to best proceed. I'm open to suggestions.

Regards,

Anthony Liguori

Quoted 4 lines
#2 lore raw
Quoted 6 lines · Anthony Liguori
Quoted 4 lines · Jean-Christophe Dubois

http://patchwork.ozlabs.org/project/qemu-devel/list/

But it is not used as the patch status is not updated for quite a few of them (even if they have been accepted/merged since then).

Quoted 7 lines

I looked at the patchwork tooling and it didn't seem to easily integrate into my work flow. It seems to be designed with the idea that you use their tools to pull and manage patches. I don't think those tools will scale to the volume of patches qemu-devel sees though. Plus, there's no easy way to deal with the fact that other maintainers may not use it. Now there are a few thousand patches and trolling through would take ages.

Note that there are scripts which can be placed in commit hooks and automatically mark patches as applied if they were not changed between submission and applying.
There are also scripts which walk the commit history between commit A and commit B and run the commit hook script for every commit in between.

Quoted 1 line

Not really sure how to best proceed. I'm open to suggestions.

flashrom and coreboot are doing pretty well with the patchwork commit hooks. Patches which were changed between sending and applying need manual care, and patch versioning (improved new editions of a patch) is not handled automatically yet. Still, having people invest a few minutes daily to check if some patches look like they've been superseded by new versions helps us keep the patchwork database clean.

All of this is done without incorporating patchwork into the workflow, so patchwork is essentially just a public patch management/tracking tool which can help us remember those patches which slipped though the cracks.

Regards,
Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/
#3 lore raw
Quoted 18 lines · Carl-Daniel Hailfinger
Quoted 7 lines · Anthony Liguori
Quoted 5 lines · Jean-Christophe Dubois

http://patchwork.ozlabs.org/project/qemu-devel/list/

But it is not used as the patch status is not updated for quite a few of them (even if they have been accepted/merged since then).

Quoted 8 lines

I looked at the patchwork tooling and it didn't seem to easily integrate into my work flow. It seems to be designed with the idea that you use their tools to pull and manage patches. I don't think those tools will scale to the volume of patches qemu-devel sees though. Plus, there's no easy way to deal with the fact that other maintainers may not use it. Now there are a few thousand patches and trolling through would take ages.

Quoted 4 lines

Note that there are scripts which can be placed in commit hooks and automatically mark patches as applied if they were not changed between submission and applying.

Can you point me in their direction? I'll take a look

Regards,

Anthony Liguori

#4 lore raw
In reply to Carl-Daniel Hailfinger
Quoted 15 lines · Carl-Daniel Hailfinger
Quoted 6 lines · Anthony Liguori
Quoted 4 lines · Jean-Christophe Dubois

http://patchwork.ozlabs.org/project/qemu-devel/list/

But it is not used as the patch status is not updated for quite a few of them (even if they have been accepted/merged since then).

Quoted 7 lines

I looked at the patchwork tooling and it didn't seem to easily integrate into my work flow. It seems to be designed with the idea that you use their tools to pull and manage patches. I don't think those tools will scale to the volume of patches qemu-devel sees though. Plus, there's no easy way to deal with the fact that other maintainers may not use it. Now there are a few thousand patches and trolling through would take ages.

Quoted 5 lines

Note that there are scripts which can be placed in commit hooks and automatically mark patches as applied if they were not changed between submission and applying.
There are also scripts which walk the commit history between commit A and commit B and run the commit hook script for every commit in between.

Could you post a link to these scripts please?

Signature · 1 line
MST
#5 lore raw

[Adding the patchwork mailing list to CC:]

Quoted 19 lines · Michael S. Tsirkin
Quoted 17 lines · Carl-Daniel Hailfinger
Quoted 15 lines · Anthony Liguori
Quoted 5 lines · Jean-Christophe Dubois

http://patchwork.ozlabs.org/project/qemu-devel/list/

But it is not used as the patch status is not updated for quite a few of them (even if they have been accepted/merged since then).

I looked at the patchwork tooling and it didn't seem to easily integrate into my work flow. It seems to be designed with the idea that you use their tools to pull and manage patches. I don't think those tools will scale to the volume of patches qemu-devel sees though. Plus, there's no easy way to deal with the fact that other maintainers may not use it. Now there are a few thousand patches and trolling through would take ages.

Quoted 9 lines
Quoted 6 lines

Note that there are scripts which can be placed in commit hooks and automatically mark patches as applied if they were not changed between submission and applying.
There are also scripts which walk the commit history between commit A and commit B and run the commit hook script for every commit in between.

Could you post a link to these scripts please?

The scripts I saw were git-based, but I can't remember where I found them. Maybe someone on the patchwork list knows.

I have attached my personal script which is centered around flashrom and its svn repo.
Please note that the two svn invocations are intentional. The first one retrieves a patch designed to be applied with patch -p0, the second one retrieves the same patch, but from a higher directory so you have to apply with -p1. AFAIK patchwork generates a hash which normalizes the first component of the path if it is a directory, so the hash will be identical for manual diffs from a level above the base directory and git diffs, but manual diffs inside the base directory will have a different hash. Generating both styles of patches from the repo increases matching reliability.
You will have to change the lines which calculate hashcand to retrieve the patches from git instead.
The script expects a correct ~/.pwclientrc with your password.

For flashrom, I just run

# update-patchwork 743
if I want to mark revision 743 as committed. You can look at the
corresponding patchwork page here:
http://patchwork.coreboot.org/patch/323/ . Note "State Accepted" and
"Commit r743" at the beginning of the page.

Regards,
Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/

#!/bin/bash
test -z "$1" && { echo "No revision provided."; exit 1; }
revision="$1"
hashcand=$(svn diff -c $revision svn://coreboot.org/flashrom/trunk/|python /sources/tmptrees/patchwork/apps/patchwork/parser.py --hash) /sources/tmptrees/patchwork/apps/patchwork/bin/pwclient update -s Accepted -c r$revision -h $hashcand && { echo "done"; exit 0; } echo
hashcand=$(svn diff -c $revision svn://coreboot.org/flashrom/|python /sources/tmptrees/patchwork/apps/patchwork/parser.py --hash) /sources/tmptrees/patchwork/apps/patchwork/bin/pwclient update -s Accepted -c r$revision -h $hashcand && { echo "done"; exit 0; } echo "No matching patch in patchwork found."
exit 1

#6 lore raw
In reply to Anthony Liguori
Quoted 8 lines · On Tuesday 15 September 2009 00:50:52 Anthony Liguori wrote:
Quoted 7 lines · Jean-Christophe Dubois

I know there is some discussion on how to get earlier feeback to people submitting patches.

It seems there already is a "patchwork" service available.

http://patchwork.ozlabs.org/project/qemu-devel/list/

Quoted 7 lines
Quoted 2 lines

But it is not used as the patch status is not updated for quite a few of them (even if they have been accepted/merged since then).

I looked at the patchwork tooling and it didn't seem to easily integrate into my work flow. It seems to be designed with the idea that you use their tools to pull and manage patches. I don't think those tools will scale to the volume of patches qemu-devel sees though.

The linux netdev project is using it and this is also a high traffic mailing list. So if it works for them it might also work here.

http://patchwork.ozlabs.org/project/netdev/list/

Quoted 2 lines

Plus, there's no
easy way to deal with the fact that other maintainers may not use it.

Well, I don't know about this. It certainly need to be an agreement between the qemu maintainers on using this tool.

Quoted 1 line

Now there are a few thousand patches and trolling through would take ages.

Well I guess there is an initial cost to it, but hopefully it might help in the long term.

Quoted 6 lines

Not really sure how to best proceed. I'm open to suggestions.

Regards,

Anthony Liguori