Re: [log4j] log4j-core test speed breakdown

2018-01-25 Thread Gary Gregory
On Thu, Jan 25, 2018 at 2:05 PM, Mikael Ståldal wrote: > I the delay is there for the "testClose" test cast, but it slows down the > other test methods as well, which is unintended. > > I have fixed it now by breaking out the "testClose" test case to its own > class. Great! And thank you. Gary

Re: [log4j] log4j-core test speed breakdown

2018-01-25 Thread Mikael Ståldal
I the delay is there for the "testClose" test cast, but it slows down the other test methods as well, which is unintended. I have fixed it now by breaking out the "testClose" test case to its own class. On 2018-01-23 14:39, Gary Gregory wrote: It would be nice to heard from Mike his thought

Re: [log4j] log4j-core test speed breakdown

2018-01-23 Thread Gary Gregory
It would be nice to heard from Mike his thoughts on my change since he added the delay in the first place. I am worried about any 'bite you later ' factor :-p On Jan 22, 2018 11:31 PM, "Remko Popma" wrote: > Nice!! > > (Shameless plug) Every java main() method deserves http://picocli.info > > >

Re: [log4j] log4j-core test speed breakdown

2018-01-22 Thread Remko Popma
Nice!! (Shameless plug) Every java main() method deserves http://picocli.info > On Jan 23, 2018, at 14:25, Gary Gregory wrote: > > On Mon, Jan 22, 2018 at 9:45 PM, Gary Gregory > wrote: > >> Hm, it already uses the mock stuff! >> >> I reduced test delays in the MockProducer introduced in com

Re: [log4j] log4j-core test speed breakdown

2018-01-22 Thread Gary Gregory
On Mon, Jan 22, 2018 at 9:45 PM, Gary Gregory wrote: > Hm, it already uses the mock stuff! > > I reduced test delays in the MockProducer introduced in commit > 96436fb958ce1f1a3d4f0c951f556f0709c91b15 (by Mike) from 3 seconds to 50 > milliseconds. This reduces running this test case from 43 to 3

Re: [log4j] log4j-core test speed breakdown

2018-01-22 Thread Gary Gregory
Hm, it already uses the mock stuff! I reduced test delays in the MockProducer introduced in commit 96436fb958ce1f1a3d4f0c951f556f0709c91b15 (by Mike) from 3 seconds to 50 milliseconds. This reduces running this test case from 43 to 3 seconds. Let's watch this test in Jenkins to make sure it still

Re: [log4j] log4j-core test speed breakdown

2018-01-22 Thread Gary Gregory
On Mon, Jan 22, 2018 at 1:11 PM, Matt Sicker wrote: > The Kafka test could probably be rewritten to use the > MockProducer/MockConsumer classes instead of presumably embedding Kafka. > For my money, using mocks here does not guarantee anything :-( Gary > > On 22 January 2018 at 14:08, Gary Gr

Re: [log4j] log4j-core test speed breakdown

2018-01-22 Thread Ralph Goers
Maybe, but is that as reliable as what is currently done. FWIW, Kafka is another one that should be moved. The issue with a lot of these tests is that the smallest granularity that can be counted on for a file last modified time is 1 second. That means the unit test often has to wait for longer

Re: [log4j] log4j-core test speed breakdown

2018-01-22 Thread Gary Gregory
Lame formatting, I put these results here as well: https://pastebin.com/grKtxPTq Gary On Mon, Jan 22, 2018 at 1:08 PM, Gary Gregory wrote: > Hi All: > > Here are some number based on https://builds.apache.org/ > user/ggregory/my-views/view/Logging/job/Log4j 2.x/3315. There are some > obvious lo

Re: [log4j] log4j-core test speed breakdown

2018-01-22 Thread Matt Sicker
The Kafka test could probably be rewritten to use the MockProducer/MockConsumer classes instead of presumably embedding Kafka. On 22 January 2018 at 14:08, Gary Gregory wrote: > Hi All: > > Here are some number based on > https://builds.apache.org/user/ggregory/my-views/view/Logging/job/Log4j >

[log4j] log4j-core test speed breakdown

2018-01-22 Thread Gary Gregory
Hi All: Here are some number based on https://builds.apache.org/user/ggregory/my-views/view/Logging/job/Log4j 2.x/3315. There are some obvious low-hanging fruits. 43.078 org.apache.logging.log4j.core.appender.mom.kafka.KafkaAppenderTest 33.799 org.apache.logging.log4j.core.appender.routing.Rout