Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented May 20, 2025

This change updates the PR guidelines on the "Contributing" web page after this discussion.

CONTRIBUTING.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a best practice? When reviewing, I really dislike when people have done this because it makes it harder to see the changes since I last reviewed, or even the difference between two states of the change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is about "Opening" a PR, no?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My question stands, not sure how critical this step is. Smaller incremental commits is generally a good thing IMO.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eric-maynard this is to get to better messages. If you do it in another way but provide good PR + Git-merge-commit summary/description that's fine, too.
Also I don't understand your argument about reviews - again - this paragraph is about opening the PR - there's nothing else you could review before, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is to get better messages, then I'll just point to the other comment chain about using the PR description.

If this is about reviewability, I maintain that more commits is usually a good thing.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to update the sentence from

"Before opening a pull request, squash all commits in your branch into a single commit"

to

"Before opening a pull request, squash commits in your branch into a few (or single) meaningful commits"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also not sure why we would want to require a single commit. I'd probably just drop this line and just require that folks add a meaningful summary in the PR summary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's meant as a "tip" - moved the controversial one to a separated "Tips" section.

@adnanhemani
Copy link
Contributor

Question here: should we be doing Squash-and-Merges when merging code in? I'm assuming that would help with some of these issues like the changelogs - but in that case, the PR title and description still needs to be set correctly by the PR author.

@snazy
Copy link
Member Author

snazy commented May 21, 2025

Question here: should we be doing Squash-and-Merges when merging code in? I'm assuming that would help with some of these issues like the changelogs - but in that case, the PR title and description still needs to be set correctly by the PR author.

We've decided very early on that we want to have no merge-commits.

Copy link
Contributor

@eric-maynard eric-maynard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most changes LGTM, but some of the ideas here were not discussed in the mailing list and it seems that we may be able to reconfigure the repo to loosen some of the requirements around commit messages

@snazy
Copy link
Member Author

snazy commented May 21, 2025

Most changes LGTM, but some of the ideas here were not discussed in the mailing list and it seems that we may be able to reconfigure the repo to loosen some of the requirements around commit messages

The justification is missing concrete pointers. Also requesting another change pushed into this change, which is clearly out of scope of this PR.

CONTRIBUTING.md Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this rule? I'm not sure we discussed it on the thread and I'd like to minimize the number of rules a newcomer to the project has to follow.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also rather a tip. We had a few occurrences where PRs were in "ready for review" but were actually "work in progress" or "superseded" or "paused". Moved this to a separate "Tips" section.

snazy added 2 commits May 23, 2025 11:32
This change updates the PR guidelines on the "Contributing" web page after [this discussion](https://lists.apache.org/thread/kfxo3cqmw3pgrpgtgqvqpwvn46yw8q7h).
* Phrasing / spelling
* Move controversial bullet points to "Tips"
* Adopt `gradlew test` to `gradlew check` in README, following the intent (all tests, incl ITs)
@snazy snazy force-pushed the contributing-commit-msg branch from 7a610bd to 0c28152 Compare May 23, 2025 10:14
@snazy snazy requested a review from ajantha-bhat as a code owner May 23, 2025 10:14
@snazy
Copy link
Member Author

snazy commented May 28, 2025

Hi @eric-maynard, the controversial sections in this PR have been addressed. Can you please take a look at them, review the changes, and reassess your -1

Copy link
Contributor

@eric-maynard eric-maynard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now, thanks for improving the CONTRIBUTING guide like this

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board May 28, 2025
@snazy snazy merged commit f16f50b into apache:main May 28, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board May 28, 2025
@snazy snazy deleted the contributing-commit-msg branch May 28, 2025 18:22
@snazy
Copy link
Member Author

snazy commented May 28, 2025

Thx! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants