You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Vladimir Sitnikov <si...@gmail.com> on 2023/10/19 07:04:37 UTC

Commit headlines and PR rate

Hi,

I see two patterns which I believe could be improved to save everybody's
(!) time.

Two suggestions:
a) Skip creating PRs if you merge them immediately anyway. It just makes no
sense to create a PR and merge it immediately.
Fake PRs trigger notifications that clutter the mailbox.

b) Follow Git recommendation on having a short and concise commit headline.

See https://git-scm.com/docs/git-commit#_discussion
> Begin the commit message with a single short (less than 50 character)
line summarizing the change, followed by a blank line and then a more
thorough description

PostgreSQL is a nice example for writing concise and helpful commit
messages: https://github.com/postgres/postgres/commits/master
The headline nails the problem, and the commit message elaborates quite
well.

c) I would suggest deleting xslt3 branch from xalan-java repository and
using a single long-lived PR instead.
It would allow us to monitor progress, discuss the changes, and unsubscribe
from all xslt3 notifications at once.

---

With the current state of affairs, "closed PRs" become useless quite fast:
https://github.com/apache/xalan-java/pulls?q=is%3Apr+is%3Aclosed

1) mukulga opens a PR and merges it within a couple of seconds.

If a review is expected from someone, then the PR should be open at least
for several days.
If a review is not expected, then, well, just commit to the branch and be
done with it.

2) The commit messages are too chatty, and it is hard to grasp the core of
the changes.
For example: "improving xalanj implementation on this dev repos branch,
where now xpath 3.1 inline function expressions within their function body,
can call stylesheet 'xsl:function' functions. committing few new related
working test cases as well. also doing minor refactoring of xslt 3.0 test
suite on this xalanj dev repos branch, and few other minor codebase
enhancements as well."

It comes from https://github.com/apache/xalan-java/pull/104

As mukulga writes very long descriptions on the first (and the only)
message line, the history becomes hard to read.

I suggest dropping obvious things like "committing few new related working
test cases as well" at least on the first commit line.
"also doing minor refactoring of xslt 3.0 test suite on this xalanj dev
repos branch, and few other minor codebase enhancements as well" does not
add much information either.
Of course, you always perform "minor codebase
enhancements/refactorings/cleanups". There's no reason to append it to
every commit message.

The above 370 char message "improving xalanj implem..." could better be 94
char "Support calling stylesheet 'xsl:function' functions from xpath 3.1
inline function expressions".

3) The history on xalan-j_xslt3.0 is hard to understand. The branch
contains ~100 merge commits and ~100 "merge" commits.
Try opening gitk origin/xalan-j_xslt3.0.
What is the use of all that?

Vladimir

Re: Commit headlines and PR rate

Posted by Vladimir Sitnikov <si...@gmail.com>.
Mukul,

>If anyone has issues, handling volume of mails on this mailing list,
>please configure appropriate filters and rules on your mail client.

Email filters do not help here as your PRs make the following scenarios
harder:
1) It effectively kills "watch pull requests" feature as the PRs on xslt3
branch produce no other value than sending a notification.
There's no such a filter like "ignore all PRs by Mukul".

2) Browsing Pull Requests becomes harder:
https://github.com/apache/xalan-java/pulls
You literally created 100s of them.

The PRs you create help nobody, they make like of others harder, yet you
still create them.
Could you please clarify the reason you want to create PRs and immediately
close them?

----

Mukul,

Even if you create PRs, please format them accordingly.
Please re-read my first mail again if you missed that.

However, I see you still put a lot of noisy words like "committing",
"adding few new working test cases", and so on.
Words like that do not belong to commit subject, so please do not put them
there.

Vladimir

Re: Commit headlines and PR rate

Posted by Mukul Gandhi <mu...@apache.org>.
Hi Joseph & all,

On Thu, Oct 19, 2023 at 10:12 PM Joseph Kesselman <ke...@alum.mit.edu> wrote:
> I've been considering xalan-j_xslt3.0 a semiprivate prototyping branch. As such, I have no problem with it taking a more relaxed approach until/unless a pull request is made against an active branch, and I haven't been reviewing it.

I've thought about this topic a little bit, and following is how I'm
thinking to go about working on further implementation on XalanJ dev
repos branch xalan-j_xslt3.0,

I'll first commit code changes to my git branch (which is fork of git
branch xalan-j_xslt3.0). I'll then create a git PR to merge code
changes to the branch xalan-j_xslt3.0, which I'll then merge to the
branch xalan-j_xslt3.0. I shall ask for a code review and shall wait
for the code review to be completed, for my git PR if I'm not
confident about the correctness of my code.

If anyone has issues, handling volume of mails on this mailing list,
please configure appropriate filters and rules on your mail client.
IMHO, handling such issues, is expected to be solved by the mail
subscribers of this list.


-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: Commit headlines and PR rate

Posted by Joseph Kesselman <ke...@alum.mit.edu>.
I've been considering xalan-j_xslt3.0 a semiprivate prototyping branch. As such, I have no problem with it taking a more relaxed approach until/unless a pull request is made against an active branch, and I haven't been reviewing it.

One could quibble about maybe preferring it to be a fork rather than a branch, as my Maven prototype was until I thought it was stable enough to be approaching pull candidate status. I don't have a strong opinion. If you look at the existing branches there are many which operated in a similar prototyping mode; the biggest problem is that they weren't closed out properly when those efforts ended so we have some leftover clutter to go back and clean up at some point.

I also don't have a strong opinion on the 3.0 effort generally. I think it's potentially useful exploration of what it would take to start incorporating the subset which doesn't require data model alterations... and given the industry trends, it isn't  currently clear to me how much demand there actually is for schema-aware processing.

My own priorities are currently elsewhere. But eventually I do want to see if I can adapt some of what went into xtqhp back into Xalan.

--
   /_  Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
   /   https://www.amazon.com/dp/B09WJ3H657/

() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!
________________________________
From: Mukul Gandhi <mu...@apache.org>
Sent: Thursday, October 19, 2023 12:25:13 PM
To: dev@xalan.apache.org <de...@xalan.apache.org>
Subject: Re: Commit headlines and PR rate

Hi Vladimir,
    Thanks for your comments.

I'll try to answer few of your questions inline below, where you've
referred me within your mail within this mail thread.

On Thu, Oct 19, 2023 at 12:35 PM Vladimir Sitnikov
<si...@gmail.com> wrote:

> I would suggest deleting xslt3 branch from xalan-java repository and using a single long-lived PR instead.
> It would allow us to monitor progress, discuss the changes, and unsubscribe from all xslt3 notifications at once.

The XalanJ dev repos xalan-j_xslt3.0 branch (from XalanJ dev repos
'master' branch) was created many months ago (I guess during april,
may 2023), after few XalanJ committers and pmc members agreed on that.
I remember Gary Gregory (XalanJ's pmc chair) and Joseph Kesselman (at
least Joseph did not object to this. Joseph is currently XalanJ's pmc
member) supporting for that.

At this moment, XalanJ dev repos xalan-j_xslt3.0 branch has lot of new
codebase available within this branch, related to XSLT 3.0 and XPath
3.1 implementations, and we pass large number of XSLT 3.0 and and
XPath 3.1 language test cases. It seems to me that, its probably good
to keep making further progress on XalanJ's XSLT 3.0 and XPath 3.1
implementations, as much as we can.

I'm personally a member of XalanJ mailing lists since more than a
decade I guess, and I've seen various people on these lists (including
me), desiring an XSLT 3.0 implementation from XalanJ.
IHMO I think, the current codebase development work on XalanJ dev
repos xalan-j_xslt3.0 branch, is a result of these wishes and
requirements of XalanJ users.

The current XalanJ's XSLT 3.0 and XPath 3.1 implementations on dev
repos xalan-j_xslt3.0 branch, essentially builds completely over
XalanJ's current XSLT 1.0 processor design and codebase.
I've read earlier on this list (and not long back), Joseph Kesselman
suggesting ideas like he could help introduce within XalanJ concepts
like XCI apis and (XML Schema) type aware XalanJ DTM. If Joseph is
able to help, get these technical concepts implemented within XalanJ
(I believe, the XSLT 3.0 implementation) that'll be great.

> mukulga opens a PR and merges it within a couple of seconds.

> If a review is expected from someone, then the PR should be open at least for several days.

Personally, I currently don't seek reviews of my XalanJ XSLT 3.0 and
XPath 3.1 codebase contributions (on XalanJ dev repos branch
xalan-j_xslt3.0), whenever I make git PRs and myself within few mins
merge my PRs to the XalanJ dev repos branch xalan-j_xslt3.0. Since
IMHO, I'm currently a XalanJ committer, and XalanJ's XSLT 3.0 dev work
on branch xalan-j_xslt3.0 has an approval from current XalanJ PMC, I
feel myself 'empowered' to do these XalanJ implementation development
activities.

But when I've committed any of my codebase changes to XalanJ dev repos
xalan-j_xslt3.0, I desire constructive comments from members of this
list to solve any defects or to improve anything within the code that
I've committed.

> If a review is not expected, then, well, just commit to the branch and be done with it.

I think, this is a nice idea. I'll think about this, and shall act
accordingly (until I've made up my mind on this, I'll continue working
as before). I also seek Gary's and Joseph's feedback on this point
that you've made.

Having written, all of the above mentioned points about XalanJ's XSLT
3.0 and XPath 3.1 current dev implementations, I wish to say that, I
like very much (and consider useful as well) XSLT 1.0 and XalanJ's
implementation of that.


--
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: Commit headlines and PR rate

Posted by Mukul Gandhi <mu...@apache.org>.
Hi Vladimir,
    Thanks for your comments.

I'll try to answer few of your questions inline below, where you've
referred me within your mail within this mail thread.

On Thu, Oct 19, 2023 at 12:35 PM Vladimir Sitnikov
<si...@gmail.com> wrote:

> I would suggest deleting xslt3 branch from xalan-java repository and using a single long-lived PR instead.
> It would allow us to monitor progress, discuss the changes, and unsubscribe from all xslt3 notifications at once.

The XalanJ dev repos xalan-j_xslt3.0 branch (from XalanJ dev repos
'master' branch) was created many months ago (I guess during april,
may 2023), after few XalanJ committers and pmc members agreed on that.
I remember Gary Gregory (XalanJ's pmc chair) and Joseph Kesselman (at
least Joseph did not object to this. Joseph is currently XalanJ's pmc
member) supporting for that.

At this moment, XalanJ dev repos xalan-j_xslt3.0 branch has lot of new
codebase available within this branch, related to XSLT 3.0 and XPath
3.1 implementations, and we pass large number of XSLT 3.0 and and
XPath 3.1 language test cases. It seems to me that, its probably good
to keep making further progress on XalanJ's XSLT 3.0 and XPath 3.1
implementations, as much as we can.

I'm personally a member of XalanJ mailing lists since more than a
decade I guess, and I've seen various people on these lists (including
me), desiring an XSLT 3.0 implementation from XalanJ.
IHMO I think, the current codebase development work on XalanJ dev
repos xalan-j_xslt3.0 branch, is a result of these wishes and
requirements of XalanJ users.

The current XalanJ's XSLT 3.0 and XPath 3.1 implementations on dev
repos xalan-j_xslt3.0 branch, essentially builds completely over
XalanJ's current XSLT 1.0 processor design and codebase.
I've read earlier on this list (and not long back), Joseph Kesselman
suggesting ideas like he could help introduce within XalanJ concepts
like XCI apis and (XML Schema) type aware XalanJ DTM. If Joseph is
able to help, get these technical concepts implemented within XalanJ
(I believe, the XSLT 3.0 implementation) that'll be great.

> mukulga opens a PR and merges it within a couple of seconds.

> If a review is expected from someone, then the PR should be open at least for several days.

Personally, I currently don't seek reviews of my XalanJ XSLT 3.0 and
XPath 3.1 codebase contributions (on XalanJ dev repos branch
xalan-j_xslt3.0), whenever I make git PRs and myself within few mins
merge my PRs to the XalanJ dev repos branch xalan-j_xslt3.0. Since
IMHO, I'm currently a XalanJ committer, and XalanJ's XSLT 3.0 dev work
on branch xalan-j_xslt3.0 has an approval from current XalanJ PMC, I
feel myself 'empowered' to do these XalanJ implementation development
activities.

But when I've committed any of my codebase changes to XalanJ dev repos
xalan-j_xslt3.0, I desire constructive comments from members of this
list to solve any defects or to improve anything within the code that
I've committed.

> If a review is not expected, then, well, just commit to the branch and be done with it.

I think, this is a nice idea. I'll think about this, and shall act
accordingly (until I've made up my mind on this, I'll continue working
as before). I also seek Gary's and Joseph's feedback on this point
that you've made.

Having written, all of the above mentioned points about XalanJ's XSLT
3.0 and XPath 3.1 current dev implementations, I wish to say that, I
like very much (and consider useful as well) XSLT 1.0 and XalanJ's
implementation of that.


-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org