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

Broken build. #52

Open
seralekseenko opened this issue Dec 19, 2021 · 0 comments
Open

Broken build. #52

seralekseenko opened this issue Dec 19, 2021 · 0 comments

Comments

@seralekseenko
Copy link

seralekseenko commented Dec 19, 2021

mvn clean package produce test failures & error:

[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   JDKScannerTest.scan:62 expected: <3> but was: <0>
[ERROR]   SDKTest.install:41 expected: <true> but was: <false>
[ERROR]   SDKTest.installLocal:210 installLocal {localJava} to {/tmp/dummyJDK5200510298994160971} must be [false] but was [true] ==> expected: <false> but was: <true>
[ERROR] Errors: 
[ERROR]   TaskTrayTest.showTray:42 » IllegalState SDKMAN! not installed!
[INFO] 
[ERROR] Tests run: 26, Failures: 3, Errors: 1, Skipped: 3
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.258 s
[INFO] Finished at: 2021-12-19T13:27:16+02:00
[INFO] ------------------------------------------------------------------------

Environment:

  • Ubuntu 20.04
  • Apache Maven 3.8.3
  • Java version: 17.0.1-oracle or 11.0.12-open

Having studied the tests, I did not understand what exactly was broken: the tests themselves or the source code.
There may be a problem in the system environment.
Ideally, it would be to move the build of the project to Docker, where the environment is exactly stable. For example based on FROM maven:3.8.4<jdkVersion>. Here are the versions.

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

1 participant