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 · 1 comment
Open

logback-classic UT Failures while building #915

tanvibahedia opened this issue Jan 29, 2025 · 1 comment

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?

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

No branches or pull requests

2 participants