OpenSearch icon indicating copy to clipboard operation
OpenSearch copied to clipboard

[BUG] : Gradle Build failed on Jenkins with Build Successful message

Open navneet1v opened this issue 3 years ago • 2 comments

Describe the bug The gradle build action failed while raising the pull request, the logs says that Build Successful but github action is failed.

Link: https://build.ci.opensearch.org/job/gradle-check/1426/

To Reproduce Steps to reproduce the behavior:

  1. NA, as I am not sure how we can reun the build on jenkins. Jenkins link: Rerun this CI workflow: https://build.ci.opensearch.org/job/gradle-check/1426/

Expected behavior The ./gradle check should have succeeded as build have succeeded.

Plugins NA

Screenshots NA

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

navneet1v avatar Aug 04 '22 05:08 navneet1v

It looks like the Github action failed because Jenkins marked the build as "unstable" - https://github.com/opensearch-project/OpenSearch/pull/3992#issuecomment-1204767637

A build is considered "unstable" if it was built successfully, but one or more publishers report it unstable. For example if the JUnit publisher is configured and a test fails then the build will be marked unstable. This means even if Gradle check is successful but if the corresponding JUnit reports show some errors it will report unstable.

In this case, it looks like the Jenkins run 1426 reported a few transient test failures:

Tests with failures:
 - org.opensearch.common.util.concurrent.QueueResizableOpenSearchThreadPoolExecutorTests.testResizeQueueDown
 - org.opensearch.common.util.concurrent.QueueResizableOpenSearchThreadPoolExecutorTests.classMethod

Closing this issue since this behavior is expected. Please feel free to reopen if you have further questions!

kartg avatar Aug 08 '22 20:08 kartg

Can you please provide me a reason for those exceptions? Because when I re-run using the same code it succeeded. So this is strange.

navneet1v avatar Aug 08 '22 20:08 navneet1v

@navneet1v not sure if this is too late. But I suspect a potential issue that is occurring is... test cases are not synced with the updated code base. That inconsistency alone could trigger this issue. I've faced it myself. Where I update a decorator for example on a file, yet the test case was using an older decorator, that would trigger ci to fail. Not sure if that helps 😄

andreAbtahi96 avatar Nov 21 '22 16:11 andreAbtahi96

Closing this issue. as it is not happening now

navneet1v avatar Jan 06 '23 06:01 navneet1v