jdaugherty opened a new pull request, #15563:
URL: https://github.com/apache/grails-core/pull/15563
If a user:
1. runs integrationTest - and it's terminated (OOM, etc) before finish
2. then runs smokeTest
The mergeTestReports will fail b/c it's partially run, an error like this
will show:
Caused by: java.lang.IllegalStateException: Test outputs data file
'$PROJECT_DIR/build/test-results/gebTest/binary/output.bin' exists but the
index file '$PROJECT_DIR/build/test-results/gebTest/binary/output.bin.idx' does
not
at
org.gradle.api.internal.tasks.testing.junit.result.TestOutputStore$Reader.<init>(TestOutputStore.java:231)
at
org.gradle.api.internal.tasks.testing.junit.result.TestOutputStore.reader(TestOutputStore.java:391)
at
org.gradle.api.internal.tasks.testing.junit.result.TestOutputStoreBackedResultsProvider.<init>(TestOutputStoreBackedResultsProvider.java:28)
at
org.gradle.api.internal.tasks.testing.junit.result.BinaryResultBackedTestResultsProvider.<init>(BinaryResultBackedTestResultsProvider.java:27)
at
org.gradle.util.internal.CollectionUtils.collect(CollectionUtils.java:192)
at
org.gradle.api.internal.tasks.testing.LegacyTestReportGenerator.lambda$createAggregateProvider$1(LegacyTestReportGenerator.java:54)
at
org.gradle.api.internal.tasks.testing.LegacyTestReportGenerator.hasResults(LegacyTestReportGenerator.java:71)
at
org.gradle.api.tasks.testing.TestReport.generateReport(TestReport.java:186)
... 125 more
This is because the index file isn't generated until after the task
finishes. This PR simply removes these invalid states so the test report task
doesn't fail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]