You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Piotr P. Karwasz" <pi...@gmail.com> on 2023/10/15 19:32:02 UTC

Failing tests (was: [VOTE] Release Apache Log4j 2.21.0)

Hi Ralph,

On Sun, 15 Oct 2023 at 00:49, Ralph Goers <ra...@dslextreme.com> wrote:
> My first attempt at building from the source failed with
>
> [ERROR]   SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testUDPAppender:80->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:75->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:113 The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
>
> My second attempt failed with
>
> [ERROR] Failures:
> [ERROR]   SystemClockTest.testAfterWaitStillLessThan2Millis:43 diff too large: 12 ==> expected: <true> but was: <false>
>
> On the third try the build succeeded.
>
> On the positive side, log4j-core-tests only takes a little over 4 minutes now on my new MacBook Pro and the entire build completed in 13 minutes.

I am afraid we will continuously need to improve the parallelisation
of tests, but I am assuming you are not complaining? Scalability is
never linear, but I would expect that a `-Psequential-tests` run would
take something like 20-25 minutes on your computer?

Piotr

Re: Failing tests (was: [VOTE] Release Apache Log4j 2.21.0)

Posted by "Piotr P. Karwasz" <pi...@gmail.com>.
Hi Matt,

On Mon, 16 Oct 2023 at 19:10, Matt Sicker <ma...@musigma.org> wrote:
>
> I’ve seen that test fail in CI before as well. I wonder if there’s any firewall issues that can interfere with it, or if it relies on some potentially unusable state like a common port number.

I switched to ephemeral ports recently, but I might have introduced
some race condition. Besides, it's UDP, so a non-reliable transport.

Piotr

Re: Failing tests (was: [VOTE] Release Apache Log4j 2.21.0)

Posted by Matt Sicker <ma...@musigma.org>.
I’ve seen that test fail in CI before as well. I wonder if there’s any firewall issues that can interfere with it, or if it relies on some potentially unusable state like a common port number.

> On Oct 16, 2023, at 8:06 AM, Ralph Goers <ra...@dslextreme.com> wrote:
> 
> I enabled that profile. Log4j-core-test failed after just over 23 minutes.
> 
> [INFO] 
> [INFO] Results:
> [INFO] 
> [ERROR] Failures: 
> [ERROR]   TlsSyslogAppenderTest>SyslogAppenderTest.testUDPAppender:80->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:75->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:113 The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
> [INFO] 
> [ERROR] Tests run: 2782, Failures: 1, Errors: 0, Skipped: 38
> 
> Ralph
> 
>> On Oct 15, 2023, at 12:32 PM, Piotr P. Karwasz <pi...@gmail.com> wrote:
>> 
>> Hi Ralph,
>> 
>> On Sun, 15 Oct 2023 at 00:49, Ralph Goers <ra...@dslextreme.com> wrote:
>>> My first attempt at building from the source failed with
>>> 
>>> [ERROR]   SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testUDPAppender:80->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:75->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:113 The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
>>> 
>>> My second attempt failed with
>>> 
>>> [ERROR] Failures:
>>> [ERROR]   SystemClockTest.testAfterWaitStillLessThan2Millis:43 diff too large: 12 ==> expected: <true> but was: <false>
>>> 
>>> On the third try the build succeeded.
>>> 
>>> On the positive side, log4j-core-tests only takes a little over 4 minutes now on my new MacBook Pro and the entire build completed in 13 minutes.
>> 
>> I am afraid we will continuously need to improve the parallelisation
>> of tests, but I am assuming you are not complaining? Scalability is
>> never linear, but I would expect that a `-Psequential-tests` run would
>> take something like 20-25 minutes on your computer?
>> 
>> Piotr
> 


Re: Failing tests (was: [VOTE] Release Apache Log4j 2.21.0)

Posted by Ralph Goers <ra...@dslextreme.com>.
I enabled that profile. Log4j-core-test failed after just over 23 minutes.

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   TlsSyslogAppenderTest>SyslogAppenderTest.testUDPAppender:80->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:75->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:113 The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
[INFO] 
[ERROR] Tests run: 2782, Failures: 1, Errors: 0, Skipped: 38

Ralph

> On Oct 15, 2023, at 12:32 PM, Piotr P. Karwasz <pi...@gmail.com> wrote:
> 
> Hi Ralph,
> 
> On Sun, 15 Oct 2023 at 00:49, Ralph Goers <ra...@dslextreme.com> wrote:
>> My first attempt at building from the source failed with
>> 
>> [ERROR]   SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testUDPAppender:80->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:75->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:113 The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
>> 
>> My second attempt failed with
>> 
>> [ERROR] Failures:
>> [ERROR]   SystemClockTest.testAfterWaitStillLessThan2Millis:43 diff too large: 12 ==> expected: <true> but was: <false>
>> 
>> On the third try the build succeeded.
>> 
>> On the positive side, log4j-core-tests only takes a little over 4 minutes now on my new MacBook Pro and the entire build completed in 13 minutes.
> 
> I am afraid we will continuously need to improve the parallelisation
> of tests, but I am assuming you are not complaining? Scalability is
> never linear, but I would expect that a `-Psequential-tests` run would
> take something like 20-25 minutes on your computer?
> 
> Piotr