Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logback-classic UT Failures while building #915

Open
tanvibahedia opened this issue Jan 29, 2025 · 3 comments
Open

logback-classic UT Failures while building #915

tanvibahedia opened this issue Jan 29, 2025 · 3 comments
Milestone

Comments

@tanvibahedia
Copy link

Hello,

I am trying to build logback-classic versions 1.5.12 from source, but some unit tests are failing. For example:

  • [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.527 s <<< FAILURE! - in ch.qos.logback.classic.issue.logback1159.LogbackListenerTest
  • [ERROR] ch.qos.logback.classic.issue.logback1159.LogbackListenerTest.testThatErrorIsDetectedAtLogInit Time elapsed: 0.447 s <<< FAILURE!
  • [ERROR] ch.qos.logback.classic.issue.logback1159.LogbackListenerTest.assertThatNonFailSafeAppendersNotAffected Time elapsed: 0.019 s
  • [ERROR] LogbackListenerTest.testThatErrorIsDetectedAtLogInit:55 Expected ch.qos.logback.classic.issue.logback1159.LoggingError to be thrown, but nothing was thrown.
  • [ERROR] Tests run: 416, Failures: 1, Errors: 0, Skipped: 20
  • [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project logback-classic:

I've tested a number of Java versions, going back to version 21, as well as various Maven versions, but the problem still occurs. I can create other modules, like logback-core, and run its unit tests without any problems with my current configuration, so it appears that this problem is exclusive to logback-classic.


I tried building logback-classic without running the tests, and it was successful, but I need to run the tests.

Would you kindly offer any recommendations or guidance on how to handle this?

Thank you.

@ceki
Copy link
Member

ceki commented Jan 29, 2025

@tanvibahedia Thank you for this report.

The error you describe is quite surprising. Have you tried building other version of logback, for example 1.5.16 or 1.5.17-SNAPSHOT?

Anyway, I suspect that the issue stems from other tests interfering with LogbackListenerTest. Which versions of Maven have you tried? What OS is this? What is the type of CPU? Number of cores?

@tanvibahedia
Copy link
Author

Hi @ceki,

I have only tried versions before 1.5.12, like 1.5.8 and 1.5.11 and they are giving me similar issues regarding the same test, LogbackListenerTest.

Maven versions that I have tried are

  • 'apache-maven-3.9.4',
  • 'apache-maven-3.3.1',
  • 'apache-maven-3.5.2',
  • 'apache-maven-3.6.1',
  • 'apache-maven-3.9.4',
  • 'apache-maven-3.2.5',

But it kept picking up apache 3.9.4 only.

OS - linux/amd64

Architecture: x86_64
CPU op-mode(s): 32-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4

I hope this helps.

Thank you.

@ceki ceki added this to the 1.5.17 milestone Feb 14, 2025
ceki added a commit that referenced this issue Feb 14, 2025
…is should fix

logback-classic UT Failures while building #915

#915

Signed-off-by: Ceki Gulcu <ceki@qos.ch>
@ceki
Copy link
Member

ceki commented Feb 14, 2025

Issue should be fixed in commit 1009952

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

No branches or pull requests

2 participants