How to submit a patch

Started by Joshua D. Drakeabout 18 years ago28 messageshackers
Jump to latest
#1Joshua D. Drake
jd@commandprompt.com

Hello,

Could someone break out exactly what the process is "now" for
submitting a patch? Last month I sent a patch for pg_dump which never
got feedback (at least on thread). I just asked and alvaro asked me to
add it to the commitfest page. Which I have done but I think we need to
known all the steps and get it documented.

I have:

post to pgsql-hackers with idea, take feedback, code to consensus
post to pgsql-patches, await feedback
...
?

Joshua D. Drake

--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate

#2Andrew Dunstan
andrew@dunslane.net
In reply to: Joshua D. Drake (#1)
Re: How to submit a patch

Joshua D. Drake wrote:

Hello,

Could someone break out exactly what the process is "now" for
submitting a patch? Last month I sent a patch for pg_dump which never
got feedback (at least on thread). I just asked and alvaro asked me to
add it to the commitfest page. Which I have done but I think we need to
known all the steps and get it documented.

I have:

post to pgsql-hackers with idea, take feedback, code to consensus
post to pgsql-patches, await feedback
...
?

If you posted it last month then it was too late for the commit-fest
that started on March 1, IIRC, so the fact that you didn't get feedback
is hardly surprising - a commit-fest is like a mini-feature-freeze.

As for the rest, we are still feeling our way a bit, as should have been
apparent from the list emails, so formal documentation is probably
premature.

cheers

andrew

#3Joshua D. Drake
jd@commandprompt.com
In reply to: Andrew Dunstan (#2)
Re: How to submit a patch

On Wed, 16 Apr 2008 13:59:50 -0400
Andrew Dunstan <andrew@dunslane.net> wrote:

If you posted it last month then it was too late for the commit-fest
that started on March 1, IIRC, so the fact that you didn't get
feedback is hardly surprising - a commit-fest is like a
mini-feature-freeze.

O.k. then what happens at that point? It wasn't in the queue for May (I
had to add it)

As for the rest, we are still feeling our way a bit, as should have
been apparent from the list emails, so formal documentation is
probably premature.

I assumed the docs would be subject to change but "something" that
gives one off and not often patch submitters a clue is probably useful.
It also allows us to actually discuss a pattern of behavior we are
starting versus bouncing through 50 threads trying to figure out what's
next.

Sincerely,

Joshua D. Drake

--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate

#4Bruce Momjian
bruce@momjian.us
In reply to: Joshua D. Drake (#3)
Re: How to submit a patch

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 13:59:50 -0400
Andrew Dunstan <andrew@dunslane.net> wrote:

If you posted it last month then it was too late for the commit-fest
that started on March 1, IIRC, so the fact that you didn't get
feedback is hardly surprising - a commit-fest is like a
mini-feature-freeze.

O.k. then what happens at that point? It wasn't in the queue for May (I
had to add it)

I review it and apply or reply to the author. The wiki had started
being updated after your submission so this is a transitionary phase.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#5Joshua D. Drake
jd@commandprompt.com
In reply to: Bruce Momjian (#4)
Re: How to submit a patch

On Wed, 16 Apr 2008 14:10:30 -0400 (EDT)
Bruce Momjian <bruce@momjian.us> wrote:

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 13:59:50 -0400
Andrew Dunstan <andrew@dunslane.net> wrote:

If you posted it last month then it was too late for the
commit-fest that started on March 1, IIRC, so the fact that you
didn't get feedback is hardly surprising - a commit-fest is like a
mini-feature-freeze.

O.k. then what happens at that point? It wasn't in the queue for
May (I had to add it)

I review it and apply or reply to the author. The wiki had started
being updated after your submission so this is a transitionary phase.

Wait... apply where? The wiki? or to the tree?

Joshua D. Drake

--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate

#6Bruce Momjian
bruce@momjian.us
In reply to: Joshua D. Drake (#5)
Re: How to submit a patch

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 14:10:30 -0400 (EDT)
Bruce Momjian <bruce@momjian.us> wrote:

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 13:59:50 -0400
Andrew Dunstan <andrew@dunslane.net> wrote:

If you posted it last month then it was too late for the
commit-fest that started on March 1, IIRC, so the fact that you
didn't get feedback is hardly surprising - a commit-fest is like a
mini-feature-freeze.

O.k. then what happens at that point? It wasn't in the queue for
May (I had to add it)

I review it and apply or reply to the author. The wiki had started
being updated after your submission so this is a transitionary phase.

Wait... apply where? The wiki? or to the tree?

Apply to CVS.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#7Andrew Dunstan
andrew@dunslane.net
In reply to: Bruce Momjian (#6)
Re: How to submit a patch

Bruce Momjian wrote:

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 14:10:30 -0400 (EDT)
Bruce Momjian <bruce@momjian.us> wrote:

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 13:59:50 -0400
Andrew Dunstan <andrew@dunslane.net> wrote:

If you posted it last month then it was too late for the
commit-fest that started on March 1, IIRC, so the fact that you
didn't get feedback is hardly surprising - a commit-fest is like a
mini-feature-freeze.

O.k. then what happens at that point? It wasn't in the queue for
May (I had to add it)

I review it and apply or reply to the author. The wiki had started
being updated after your submission so this is a transitionary phase.

Wait... apply where? The wiki? or to the tree?

Apply to CVS.

Bruce, I know you don't mean this, but it reads like you are undertaking
to review and apply all patches.

BTW, I don't see why the wiki can't pick up patches that were submitted
before it started.

cheers

andrew

#8Joshua D. Drake
jd@commandprompt.com
In reply to: Bruce Momjian (#6)
Re: How to submit a patch

On Wed, 16 Apr 2008 14:13:53 -0400 (EDT)
Bruce Momjian <bruce@momjian.us> wrote:

I review it and apply or reply to the author. The wiki had
started being updated after your submission so this is a
transitionary phase.

Wait... apply where? The wiki? or to the tree?

Apply to CVS.

O.k. so patches may be applied through the development cycle but no
patches will be accepted after -X- date for a current commit fest. So
my question is:

If you are going to review the patch and apply or reply to the author,
at one point is it supposed to be on the wiki?

Joshua D. Drake

--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate

#9Bruce Momjian
bruce@momjian.us
In reply to: Andrew Dunstan (#7)
Re: How to submit a patch

Andrew Dunstan wrote:

If you posted it last month then it was too late for the
commit-fest that started on March 1, IIRC, so the fact that you
didn't get feedback is hardly surprising - a commit-fest is like a
mini-feature-freeze.

O.k. then what happens at that point? It wasn't in the queue for
May (I had to add it)

I review it and apply or reply to the author. The wiki had started
being updated after your submission so this is a transitionary phase.

Wait... apply where? The wiki? or to the tree?

Apply to CVS.

Bruce, I know you don't mean this, but it reads like you are undertaking
to review and apply all patches.

Didn't you read "review it and apply or reply to the author".

BTW, I don't see why the wiki can't pick up patches that were submitted
before it started.

True.

Frankly, I am getting pretty tired of people complaining about what I am
doing. Perhaps I should just stop and let everyone else deal with
things. I have lots of things I would rather be doing.

This is one of the reasons I didn't want to add wiki maintenance to my
already full workload. Instead I am having to field complaints.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#10Bruce Momjian
bruce@momjian.us
In reply to: Joshua D. Drake (#8)
Re: How to submit a patch

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 14:13:53 -0400 (EDT)
Bruce Momjian <bruce@momjian.us> wrote:

I review it and apply or reply to the author. The wiki had
started being updated after your submission so this is a
transitionary phase.

Wait... apply where? The wiki? or to the tree?

Apply to CVS.

O.k. so patches may be applied through the development cycle but no
patches will be accepted after -X- date for a current commit fest. So
my question is:

If you are going to review the patch and apply or reply to the author,
at one point is it supposed to be on the wiki?

I have no idea. If not dealt with, it will be on my web page once the
next commit fest starts.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#11Andrew Dunstan
andrew@dunslane.net
In reply to: Bruce Momjian (#9)
Re: How to submit a patch

Bruce Momjian wrote:

Frankly, I am getting pretty tired of people complaining about what I am
doing. Perhaps I should just stop and let everyone else deal with
things. I have lots of things I would rather be doing.

This is one of the reasons I didn't want to add wiki maintenance to my
already full workload. Instead I am having to field complaints.

I didn't mean to complain about anything. Personally, I'm in favor of
reducing your workload.

cheers

andrew

#12Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Joshua D. Drake (#3)
Re: How to submit a patch

Joshua D. Drake wrote:

On Wed, 16 Apr 2008 13:59:50 -0400
Andrew Dunstan <andrew@dunslane.net> wrote:

If you posted it last month then it was too late for the commit-fest
that started on March 1, IIRC, so the fact that you didn't get
feedback is hardly surprising - a commit-fest is like a
mini-feature-freeze.

O.k. then what happens at that point? It wasn't in the queue for May (I
had to add it)

There is different viewpoints on how it should happen. Hopefully the
picture will be clearer after one or two more commit fests.

Based on my observations, there's basically three different workflows a
patch can follow (assuming the patch gets committed in the end):

Workflow A:

1. You post patch to pgsql-patches
2. a committer picks it up immediately, and commits it.

Workflow B:

1. You post a patch to pgsql-patches
2. You add a link to the wiki page of the next commit fest
3. A committer picks up the patch from the wiki page, and commits it

Workflow C:

1. You post a patch to pgsql-patches
2. Bruce adds the patch to the unapplied patches queue after a while
3. At the beginning of the next commit fest, Alvaro (with the help from
others, I hope) goes through the patches queue, and puts a link to the
wiki page of the next commit fest
4. A committer picks up the patch from the wiki page, and commits it

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

#13Joshua D. Drake
jd@commandprompt.com
In reply to: Bruce Momjian (#10)
Re: How to submit a patch

On Wed, 16 Apr 2008 14:24:34 -0400 (EDT)
Bruce Momjian <bruce@momjian.us> wrote:

If you are going to review the patch and apply or reply to the
author, at one point is it supposed to be on the wiki?

I have no idea. If not dealt with, it will be on my web page once the
next commit fest starts.

This is the exact reason I posted the question :).

Joshua D. Drake

--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate

#14Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Andrew Dunstan (#7)
Re: How to submit a patch

Andrew Dunstan wrote:

BTW, I don't see why the wiki can't pick up patches that were submitted
before it started.

Of course it can. This one wasn't added initially because I didn't see it.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

#15Bruce Momjian
bruce@momjian.us
In reply to: Andrew Dunstan (#11)
Re: How to submit a patch

Andrew Dunstan wrote:

Bruce Momjian wrote:

Frankly, I am getting pretty tired of people complaining about what I am
doing. Perhaps I should just stop and let everyone else deal with
things. I have lots of things I would rather be doing.

This is one of the reasons I didn't want to add wiki maintenance to my
already full workload. Instead I am having to field complaints.

I didn't mean to complain about anything. Personally, I'm in favor of
reducing your workload.

OK. FYI, what would be really nice would be for someone to review and
apply the patch or give the author feedback so we could avoid adding it
to the wiki at all.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#16Brendan Jurd
direvus@gmail.com
In reply to: Bruce Momjian (#15)
Re: How to submit a patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Apr 17, 2008 at 5:17 AM, Bruce Momjian
wrote:

Andrew Dunstan wrote:

Bruce Momjian wrote:

This is one of the reasons I didn't want to add wiki maintenance to my
already full workload. Instead I am having to field complaints.

I didn't mean to complain about anything. Personally, I'm in favor of
reducing your workload.

OK. FYI, what would be really nice would be for someone to review and
apply the patch or give the author feedback so we could avoid adding it
to the wiki at all.

Bruce,

Yes, that would be nice! But not likely in practice, unless your
patch happens to immediately catch the interest of a suitably
qualified person with commit privileges.

However, I don't know of any way the maintenance of the wiki is an
addition to your workload. I feel that the onus of adding the patch
to the wiki should be on the submitter, and we've already had some
success getting submitters to add their own patches. And Alvaro has
already offered to pick up the slack in cases where the submitter
fails to add their patch to the queue.

Every patch that somebody else adds to the wiki is another patch you
don't have to add to your queue, so how can this be anything but a
plus for you?

Cheers,
BJ

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: http://getfiregpg.org

iD8DBQFIBlfb5YBsbHkuyV0RAs6tAKDNR3CbqFC4YwROaoiwNMXSWKXWTgCbBaz1
pO90zcotv+/UMJrotfDTg/M=
=IY5R
-----END PGP SIGNATURE-----

#17Merlin Moncure
mmoncure@gmail.com
In reply to: Brendan Jurd (#16)
Re: How to submit a patch

On Wed, Apr 16, 2008 at 3:47 PM, Brendan Jurd <direvus@gmail.com> wrote:

On Thu, Apr 17, 2008 at 5:17 AM, Bruce Momjian

Andrew Dunstan wrote:

Bruce Momjian wrote:

This is one of the reasons I didn't want to add wiki maintenance to my
already full workload. Instead I am having to field complaints.

I didn't mean to complain about anything. Personally, I'm in favor of
reducing your workload.

OK. FYI, what would be really nice would be for someone to review and
apply the patch or give the author feedback so we could avoid adding it
to the wiki at all.

Yes, that would be nice! But not likely in practice, unless your
patch happens to immediately catch the interest of a suitably
qualified person with commit privileges.

However, I don't know of any way the maintenance of the wiki is an
addition to your workload. I feel that the onus of adding the patch
to the wiki should be on the submitter, and we've already had some
success getting submitters to add their own patches. And Alvaro has
already offered to pick up the slack in cases where the submitter
fails to add their patch to the queue.

One small point here. I've been mostly following this discussion on
this particular topic but have absolutely no idea what, if anything,
to do on the wiki in terms of submitting patch. There was a spot
related to the commit fest where we kept an to date version of our
patch which I can't find any more (might be lousy search skills on my
end).

There seems to be information scattered all over the place with
various overlapping lists whose function and location are changing
constantly. This is not a gripe by any means....it just that you
might get a little more help from the grass roots on the wiki as the
process settles down and there are examples of what to do.

merlin

#18Bruce Momjian
bruce@momjian.us
In reply to: Brendan Jurd (#16)
Re: How to submit a patch

Brendan Jurd wrote:

OK. FYI, what would be really nice would be for someone to review and
apply the patch or give the author feedback so we could avoid adding it
to the wiki at all.

Bruce,

Yes, that would be nice! But not likely in practice, unless your
patch happens to immediately catch the interest of a suitably
qualified person with commit privileges.

However, I don't know of any way the maintenance of the wiki is an
addition to your workload. I feel that the onus of adding the patch
to the wiki should be on the submitter, and we've already had some
success getting submitters to add their own patches. And Alvaro has
already offered to pick up the slack in cases where the submitter
fails to add their patch to the queue.

Every patch that somebody else adds to the wiki is another patch you
don't have to add to your queue, so how can this be anything but a
plus for you?

Yes, but unless people actually applies patches from the wiki, it
doesn't help me --- adding patches to my queue is zero cost for me.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#19Bruce Momjian
bruce@momjian.us
In reply to: Heikki Linnakangas (#12)
Re: How to submit a patch

Heikki Linnakangas wrote:

Based on my observations, there's basically three different workflows a
patch can follow (assuming the patch gets committed in the end):

Workflow A:

1. You post patch to pgsql-patches
2. a committer picks it up immediately, and commits it.

Workflow B:

1. You post a patch to pgsql-patches
2. You add a link to the wiki page of the next commit fest
3. A committer picks up the patch from the wiki page, and commits it

Workflow C:

1. You post a patch to pgsql-patches
2. Bruce adds the patch to the unapplied patches queue after a while
3. At the beginning of the next commit fest, Alvaro (with the help from
others, I hope) goes through the patches queue, and puts a link to the
wiki page of the next commit fest
4. A committer picks up the patch from the wiki page, and commits it

Yep, that's pretty accurate.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#20Brendan Jurd
direvus@gmail.com
In reply to: Merlin Moncure (#17)
Re: How to submit a patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Apr 17, 2008 at 6:03 AM, Merlin Moncure wrote:

One small point here. I've been mostly following this discussion on
this particular topic but have absolutely no idea what, if anything,
to do on the wiki in terms of submitting patch. There was a spot
related to the commit fest where we kept an to date version of our
patch which I can't find any more (might be lousy search skills on my
end).

Fair enough. The current commitfest page is at
http://wiki.postgresql.org/wiki/CommitFest:May

I agree that it's not well linked from the front page of the wiki (you
have to follow "Development information" -> "Project management
documentation" -> "Patches for May Commitfest").

I've added a redirect at http://wiki.postgresql.org/wiki/CommitFest
which currently points to May, but should be updated whenever we close
a commitfest against new submissions. That way submitters will always
have one URL to visit to add their stuff.

There seems to be information scattered all over the place with
various overlapping lists whose function and location are changing
constantly. This is not a gripe by any means....it just that you
might get a little more help from the grass roots on the wiki as the
process settles down and there are examples of what to do.

I agree, and in fact I've just recently added some documentation about
how to add your patch to the wiki up the top of the CommitFest:May
page; I invite you to take a look and post back if you have any
comments.

Cheers,
BJ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: http://getfiregpg.org

iD8DBQFIBl9f5YBsbHkuyV0RAoP8AKDAOaXzhsC7ap0/AVf0F6SqxHOZwACfQ4LR
JJQcrRKbxoIzQHRbja6gqBw=
=tLDr
-----END PGP SIGNATURE-----

#21Joshua D. Drake
jd@commandprompt.com
In reply to: Brendan Jurd (#20)
#22Andrew Dunstan
andrew@dunslane.net
In reply to: Merlin Moncure (#17)
#23Greg Smith
gsmith@gregsmith.com
In reply to: Joshua D. Drake (#21)
#24Bruce Momjian
bruce@momjian.us
In reply to: Heikki Linnakangas (#12)
#25Andrew Dunstan
andrew@dunslane.net
In reply to: Bruce Momjian (#24)
#26Greg Smith
gsmith@gregsmith.com
In reply to: Heikki Linnakangas (#12)
#27Joshua D. Drake
jd@commandprompt.com
In reply to: Greg Smith (#26)
#28Greg Smith
gsmith@gregsmith.com
In reply to: Joshua D. Drake (#27)