opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.78k stars 1.82k forks source link

[AUTOCUT] Gradle Check Flaky Test Report for RemoteStoreClusterStateRestoreIT #14326

Open opensearch-ci-bot opened 5 months ago

opensearch-ci-bot commented 5 months ago

Flaky Test Report for RemoteStoreClusterStateRestoreIT

Noticed the RemoteStoreClusterStateRestoreIT has some flaky, failing tests that failed during post-merge actions.

Details

Git Reference Merged Pull Request Build Details Test Name
ccf528973ef9487adcc5bc4e8d38c6632b42b6fb 14221 40884 org.opensearch.remotestore.RemoteStoreClusterStateRestoreIT.testFullClusterRestoreGlobalMetadata

The other pull requests, besides those involved in post-merge actions, that contain failing tests with the RemoteStoreClusterStateRestoreIT class are:

For more details on the failed tests refer to OpenSearch Gradle Check Metrics dashboard.

shiv0408 commented 4 months ago

This test should not be flaky now, the fix was merged in #14230

shiv0408 commented 4 months ago

@prudhvigodithi Wanted to confirm if a test becomes flaky again after the issue has been resolved, does our workflow create a new issue or open the previous closed issue?

prudhvigodithi commented 4 months ago

Hey @shiv0408 yes the automation will re-open the issue if it was closed within 3 days (which is configurable) else it will re-create a new issue. In both cases the issue body will have the latest flaky test information. Thanks @getsaurabh02

shiv0408 commented 4 months ago

@andrross Do you know how this issue got re-opened? I closed the issue as the fix was made, do we need to keep the issue open?

andrross commented 4 months ago

@shiv0408 This is the PR that caused it to reopen: https://github.com/opensearch-project/OpenSearch/pull/14345

I think @prudhvigodithi is looking into a similar case. It might be that a PR is open that hasn't rebased with your fix, and that causes it to reopen if the test fails.

shiv0408 commented 4 months ago

This PR was merged 3 days ago, but the CI bot opened is couple of hours ago.

prudhvigodithi commented 4 months ago

The automation looks for last 30 days build data in post merge action and if found RemoteStoreClusterStateRestoreIT will re-open/create the issue. So even though the fix was pushed, the RemoteStoreClusterStateRestoreIT was found failing in past 30 days hence it re-opened the existing issue.

How about we allow the automation to close the issue? Since now we have all the issues created for the flaky tests, we can reduce to identify the flaky tests in last 15 days and auto-close the issue if not failing in last 15 days, this way the user need not worry about closing the issue ? WDYT @andrross @shiv0408 Adding @dblock @reta @getsaurabh02

shiv0408 commented 4 months ago

How about we allow the automation to close the issue?

This might present incorrect information that test is still flaky, while it might have been resolved. Anyway, we are going to reopen the issue if test turns to be flaky again.

andrross commented 4 months ago

@prudhvigodithi If an issue exists and it is closed, and none of the failures are newer than the close date, then can we keep it closed?

prudhvigodithi commented 4 months ago

Sure, what we can do it the following:

peterzhuamazon commented 4 months ago

Can we compare the base of the PRs to determine if such issue is legit or we inform user to rebase?

It is possible that an issue can re-surface due to regression.

At least if we see the PR has a updated base, we can re-open the old issue if needed. Else, inform user to rebase their branch. Thanks.

shiv0408 commented 4 months ago

@prudhvigodithi we should create an issue to add your second point as an enhancement on our current state.

dblock commented 4 months ago

[Catch All Triage - Attendees 1, 2, 3, 4, 5]