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

[Bug]: Handle publishIntegTestResults lib when test reports are not available #546

Closed
prudhvigodithi opened this issue Oct 25, 2024 · 0 comments · Fixed by #547
Closed
Assignees
Labels
bug Something isn't working untriaged

Comments

@prudhvigodithi
Copy link
Member

prudhvigodithi commented Oct 25, 2024

Describe the bug

Coming from opensearch-project/opensearch-metrics#68 (part of opensearch-project/opensearch-metrics#51), the gradle reports are not generated when compileTestJava fails. The compileTestJava in Gradle only compiles the test classes without running any tests, so it won’t generate any reports. To generate test reports, it need to actually run the tests with a task example integTest.

To reproduce

git clone https://github.com/opensearch-project/sql.git -b 2.18
cd sql
git checkout 4b9602b639231f94bb6f04d13af94e56b03632c1
./gradlew integTest

Fails for compileTestJava and report is not generated in sql/integ-test/build/reports/tests/integTest.

Expected behavior

No response

Screenshots

If applicable, add screenshots to help explain your problem.

Host / Environment

No response

Additional context

There is a PR merged opensearch-project/sql#3113 to fix the compileTestJava.
Jenkins build failed https://build.ci.opensearch.org/blue/organizations/jenkins/integ-test/detail/integ-test/8865/pipeline to publish the results because the report is not available and not handling when Test Result Files List Not Available is in the failed_test section of the test manifest.
The exact error is

Error when executing always post condition:
java.lang.ArrayIndexOutOfBoundsException

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
Status: ✅ Done
1 participant