Re: PRs should always include tests

2018-01-08 Thread Alexander Murmann
Thank you Kirk for the amazing write-up! I want to highlight that the problem of only having one kind of test goes both ways. Frequently we might think that changing something on the unit level is going to resolve a bug, but in reality the real world use case now fails a little later. I think that

Re: PRs should always include tests

2018-01-03 Thread Kirk Lund
This is a very important question and it really showcases the biggest problem facing Apache Geode in my opinion. If existing tests don't fail when you change the code, then that's a sign of a serious problem with our tests. Most likely the test isn't actually covering the code and all of its branc

Re: PRs should always include tests

2017-12-29 Thread Alexander Murmann
Xiaojian, are you describing a situation where we change implementation because we already have a failing test that somehow got merged in? On Fri, Dec 29, 2017 at 2:20 PM, Xiaojian Zhou wrote: > How about the code change is already covered by existing tests? > > Not to reduce test coverage seems

Re: PRs should always include tests

2017-12-29 Thread Xiaojian Zhou
How about the code change is already covered by existing tests? Not to reduce test coverage seems a more reasonable standard. On Fri, Dec 29, 2017 at 2:07 PM, Udo Kohlmeyer wrote: > +1 > > > > On 12/29/17 12:05, Kirk Lund wrote: > >> I think we all need to be very consistent in requiring tests

Re: PRs should always include tests

2017-12-29 Thread Udo Kohlmeyer
+1 On 12/29/17 12:05, Kirk Lund wrote: I think we all need to be very consistent in requiring tests with all PRs. This goes for committer as well as non-committer contributions. A test would both confirm the existence of the bug in the first place and then confirm the fix. Without such a test,

Re: PRs should always include tests

2017-12-29 Thread Alexander Murmann
👍🏻 On Fri, Dec 29, 2017 at 12:51 PM, Jacob Barrett wrote: > +1 > > > On Dec 29, 2017, at 12:05 PM, Kirk Lund wrote: > > > > I think we all need to be very consistent in requiring tests with all > PRs. > > This goes for committer as well as non-committer contributions. > > > > A test would both

Re: PRs should always include tests

2017-12-29 Thread Jacob Barrett
+1 > On Dec 29, 2017, at 12:05 PM, Kirk Lund wrote: > > I think we all need to be very consistent in requiring tests with all PRs. > This goes for committer as well as non-committer contributions. > > A test would both confirm the existence of the bug in the first place and > then confirm the f

PRs should always include tests

2017-12-29 Thread Kirk Lund
I think we all need to be very consistent in requiring tests with all PRs. This goes for committer as well as non-committer contributions. A test would both confirm the existence of the bug in the first place and then confirm the fix. Without such a test, any developer could come along later, modi