-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add Spiegel as testfile #1895
Add Spiegel as testfile #1895
Conversation
2027bfe
to
b666ac1
Compare
Wenn running: But when running afterwards the following it breaks: ~/git/lobid-resources$ $ mvn clean install -DskipTests=false -DgenerateTestData=true
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.lobid:lobid-resources >----------------------
[INFO] Building lobid-resources 1.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ lobid-resources ---
[INFO] Deleting /home/tobias/git/lobid-resources/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ lobid-resources ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 35 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ lobid-resources ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to /home/tobias/git/lobid-resources/target/classes
[WARNING] system modules path not set in conjunction with -source 11
[INFO] /home/tobias/git/lobid-resources/src/main/java/org/lobid/resources/EtikettJson.java: Some input files use unchecked or unsafe operations.
[INFO] /home/tobias/git/lobid-resources/src/main/java/org/lobid/resources/EtikettJson.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ lobid-resources ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 540 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ lobid-resources ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/tobias/git/lobid-resources/target/test-classes
[WARNING] system modules path not set in conjunction with -source 11
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ lobid-resources ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running UnitTests
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 17.445 sec <<< FAILURE! - in UnitTests
transformFile(org.lobid.resources.AlmaMarc21XmlToLobidJsonMetafixTest) Time elapsed: 16.842 sec <<< ERROR!
java.lang.OutOfMemoryError: Java heap space
Results :
Tests in error:
AlmaMarc21XmlToLobidJsonMetafixTest.transformFile » OutOfMemory Java heap spac...
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.839 s
[INFO] Finished at: 2024-04-19T15:36:28+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project lobid-resources: There are test failures.
[ERROR]
[ERROR] Please refer to /home/tobias/git/lobid-resources/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException |
@dr0i how can I increase the heapsize to get this testfile? |
This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
ff1d31e
to
8d8cd13
Compare
This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
8d8cd13
to
9e16a44
Compare
This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
9e16a44
to
96861aa
Compare
This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
96861aa
to
2dd4837
Compare
- bump java version to 11 This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
2dd4837
to
09d3358
Compare
- bump java version to 11 This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
09d3358
to
56d0ff4
Compare
I've increased Java's memory to |
- bump java version to 11 This makes the tests run by avoiding "java.lang.OutOfMemoryError: Java heap space".
56d0ff4
to
66782bb
Compare
When testing a new version of this record, it seems that it still runs into an error when executing: I saw that I found a solution last year in another branch. I had to increase the heap size in the pom.xml too. |
Can you share a link to this? 66782bb : please don't change formatting for a diff is useless then - I can't see what you have changed in essence. |
This was the old commit, in an unused branch: d77e9bf I also will set the formatting back in an additional commit. |
5e17220
to
cacea8f
Compare
Based on the solution from d77e9bf
cacea8f
to
3500db5
Compare
I separated the commits for formatting, since it seems to be wrong, and the change of the heap. |
+1 |
Testfile for #1830