Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Oct 30, 2025

This PR proposes an alternative PR template that is much shorter, and removes all the redundant claims.

It also links to the contribution guidelines for further guidance.

Checklist

  • 🛡️ Don't disclose security issues! (contact [email protected])
  • 🔗 Related issue(s): Fixes #
  • 🧪 Added/updated tests with good coverage
  • 💡 Added comments for complex logic
  • ⚙️ Tested my changes with ./gradlew clean spotlessApply build
  • 🧾 Updated CHANGELOG.md
  • 📚 Updated documentation (in site/content/in-dev/unreleased)

This PR proposes an alternative PR template that is much shorter, and removes all the redundant claims.

It also links to the contribution guidelines for further guidance.
dimas-b
dimas-b previously approved these changes Oct 30, 2025
Copy link
Contributor

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @adutra ! I personally prefer the new template over the current one.

- [ ] 🧪 Added/updated tests with good coverage
- [ ] 💡 Added comments for complex logic
- [ ] ⚙️ Tested my changes with `./gradlew clean spotlessApply build`
- [ ] 🧾 Updated `CHANGELOG.md`
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "Updated CHANGELOG.md if the change significantly affects users".... I believe internal changes / refactorings do not need to be mentioned in CHANGELOG.md

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Oct 30, 2025
- [ ] 🔗 Related issue(s): Fixes #
- [ ] 🧪 Added/updated tests with good coverage
- [ ] 💡 Added comments for complex logic
- [ ] ⚙️ Tested my changes with `./gradlew clean spotlessApply build`
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be preferable to mention this in the contribution guide (if not there already). CI will take care of that.... and I personally often prefer CI over complete local tests for small changes 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe suggest spotlessApply check in this case? We all often forget things like formatting or license headers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My point being: when someone opens a PR, several people get notified. It's a bit frustrating to be notified on a PR that doesn't even compile or pass the rat tests. I hope this TODO item could save us a few premature notifications :-)

Copy link
Contributor

Choose a reason for hiding this comment

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

Contributors with than one PR get automated CI runs. First-time contributors do not get CI automatically, but I guess we need to balance the overhead of reviewing first-time contributions against the main stream of PRs from regular contributors. IMHO, having this checkbox is more of an irritation to regular contributors and I'm not convinced it is going to be effective in making first-timers actually run full tests 😅

In any case, I'm ok both the the current checkbox and with spotlessApply check.

Copy link
Member

Choose a reason for hiding this comment

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

A relatively quick sanity check is ./gradlew spotlessApply compileAll jar, maybe with the --continue option.
But I'm open to other solution and don't wanna hold this PR. It's often quite opinionated. We can certainly nit-pick on this item for a long time ;)

dimas-b
dimas-b previously approved these changes Oct 30, 2025
- [ ] 🔗 Related issue(s): Fixes #
- [ ] 🧪 Added/updated tests with good coverage
- [ ] 💡 Added comments for complex logic
- [ ] ⚙️ Tested my changes with `./gradlew spotlessApply check`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- [ ] ⚙️ Tested my changes with `./gradlew spotlessApply check`
- [ ] ⚙️ Tested my changes with `./gradlew build --continue`

build exercises the whole build and all checks, including spotless checks (a failed spotless check says: "run spotlessApply").
--continue means to not stop after the first error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

a failed spotless check says: "run spotlessApply"

So, isn't it better to proactively run spotlessApply?

Copy link
Member

Choose a reason for hiding this comment

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

It will fail on the CI anyway.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed with @jbonofre, the style issue failed with CI anyway. I'm OK without it.


## Checklist
- [ ] 🛡️ Don't disclose security issues! (contact [email protected])
- [ ] 🔗 Related issue(s): Fixes #
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- [ ] 🔗 Related issue(s): Fixes #
- [ ] 🔗 Related issue(s): Add `Fixes #` as a separate line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does it have to be on a separate line? I thought GitHub could find occurrences of Fixes # everywhere in the PR description.

Copy link
Member

Choose a reason for hiding this comment

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

That's right, it could be in any place, including in the PR title.

Copy link
Member

Choose a reason for hiding this comment

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

TIL

jbonofre
jbonofre previously approved these changes Oct 31, 2025
Copy link
Contributor

@flyrain flyrain left a comment

Choose a reason for hiding this comment

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

Thanks a lot @adutra for working on the simplification!

I think it's quite valuable to ask for "Why are the changes needed?".

This item cover some cases: 🔗 Related issue(s): Fixes #

Maybe we should do something like

  • Clearly explained why the changes are needed, or linked the related issues: Fixes #


## Checklist
- [ ] 🛡️ Don't disclose security issues! (contact [email protected])
- [ ] 🔗 Related issue(s): Fixes #
Copy link
Contributor

@singhpk234 singhpk234 Oct 31, 2025

Choose a reason for hiding this comment

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

This means every PR needs an issue ? The issue would contain motivation etc ?

## Checklist
- [ ] 🛡️ Don't disclose security issues! (contact [email protected])
- [ ] 🔗 Related issue(s): Fixes #
- [ ] 🧪 Added/updated tests with good coverage
Copy link
Contributor

@singhpk234 singhpk234 Oct 31, 2025

Choose a reason for hiding this comment

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

[doubt] what does good means ? how is the user gonna describe manual testing done ?

- [ ] 🔗 Related issue(s): Fixes #
- [ ] 🧪 Added/updated tests with good coverage
- [ ] 💡 Added comments for complex logic
- [ ] ⚙️ Tested my changes with `./gradlew spotlessApply check`
Copy link
Contributor

@singhpk234 singhpk234 Oct 31, 2025

Choose a reason for hiding this comment

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

[doubt] is this adding any additional value ? wouldn't the CI fail without this ?

@adutra adutra dismissed stale reviews from jbonofre and dimas-b via 35a35cb November 3, 2025 09:29
Copy link
Contributor

@flyrain flyrain left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @adutra !

Copy link
Contributor

@singhpk234 singhpk234 left a comment

Choose a reason for hiding this comment

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

LGTM too, thanks @adutra !

@adutra adutra merged commit 5fa86c9 into apache:main Nov 4, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Nov 4, 2025
@adutra
Copy link
Contributor Author

adutra commented Nov 4, 2025

Thank you all for your the reviews!

@adutra adutra deleted the short-template branch November 4, 2025 14:46
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.

6 participants