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

Add further creation waits to notebooks tests #1270

Merged
merged 4 commits into from
May 6, 2024

Conversation

Swiddis
Copy link
Contributor

@Swiddis Swiddis commented May 6, 2024

Description

Since notebooks are still flaky on notebook creation, even with refresh logic added (see #1250), I think the reason the tests are still failing is because notebook creation is flaky in some index refresh race condition scenarios. This PR refactors the notebook creation to drop the refresh attempt and only check for a successful creation message, on the assumption that notebooks should have a functional requirement to always show a valid notebook after stating a successful creation.

I'm not sure this fixes the flaky tests in CI (still struggling to understand the root cause and get exact repro steps), but in local testing this passed 10 consecutive runs (the old version failed after 6 runs and a version with both parts fails almost every run). This should also pass the ball out of the testing repo's court, I've created a corresponding issue: opensearch-project/dashboards-observability#1822.

Also needs backport to 2.x and main.

Issues Resolved

N/A

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Simeon Widdis <[email protected]>
@Swiddis
Copy link
Contributor Author

Swiddis commented May 6, 2024

After discussing with the team, we decided to keep the refresh/reload logic present while still checking for creation, to try and fix the flakiness. I've added an issue link in-code to ensure this is removed when the underlying bug is fixed.

@Swiddis Swiddis changed the title Replace refresh with wait for creation Add further creation waits to notebooks tests May 6, 2024
@Swiddis
Copy link
Contributor Author

Swiddis commented May 6, 2024

Nvm, looks like there's still flakiness after this change -- started being able to reproduce the notebook failures by running the tests on a cluster with many nodes. Fixed, reopened.

@Swiddis Swiddis closed this May 6, 2024
This reverts commit 6dca5a7.

Signed-off-by: Simeon Widdis <[email protected]>
@Swiddis Swiddis reopened this May 6, 2024
@SuZhou-Joe SuZhou-Joe merged commit 8014ae0 into opensearch-project:2.14 May 6, 2024
33 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 7, 2024
* Replace refresh with wait for creation

Signed-off-by: Simeon Widdis <[email protected]>

* Remove unused variable

Signed-off-by: Simeon Widdis <[email protected]>

* Re-add refresh/reload with issue ref

Signed-off-by: Simeon Widdis <[email protected]>

* Revert "Re-add refresh/reload with issue ref"

This reverts commit 6dca5a7.

Signed-off-by: Simeon Widdis <[email protected]>

---------

Signed-off-by: Simeon Widdis <[email protected]>
(cherry picked from commit 8014ae0)
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 7, 2024
* Replace refresh with wait for creation

Signed-off-by: Simeon Widdis <[email protected]>

* Remove unused variable

Signed-off-by: Simeon Widdis <[email protected]>

* Re-add refresh/reload with issue ref

Signed-off-by: Simeon Widdis <[email protected]>

* Revert "Re-add refresh/reload with issue ref"

This reverts commit 6dca5a7.

Signed-off-by: Simeon Widdis <[email protected]>

---------

Signed-off-by: Simeon Widdis <[email protected]>
(cherry picked from commit 8014ae0)
peterzhuamazon pushed a commit that referenced this pull request May 7, 2024
* Replace refresh with wait for creation

Signed-off-by: Simeon Widdis <[email protected]>

* Remove unused variable

Signed-off-by: Simeon Widdis <[email protected]>

* Re-add refresh/reload with issue ref

Signed-off-by: Simeon Widdis <[email protected]>

* Revert "Re-add refresh/reload with issue ref"

This reverts commit 6dca5a7.

Signed-off-by: Simeon Widdis <[email protected]>

---------

Signed-off-by: Simeon Widdis <[email protected]>
(cherry picked from commit 8014ae0)

Co-authored-by: Simeon Widdis <[email protected]>
SuZhou-Joe pushed a commit that referenced this pull request May 7, 2024
* Replace refresh with wait for creation

Signed-off-by: Simeon Widdis <[email protected]>

* Remove unused variable

Signed-off-by: Simeon Widdis <[email protected]>

* Re-add refresh/reload with issue ref

Signed-off-by: Simeon Widdis <[email protected]>

* Revert "Re-add refresh/reload with issue ref"

This reverts commit 6dca5a7.

Signed-off-by: Simeon Widdis <[email protected]>

---------

Signed-off-by: Simeon Widdis <[email protected]>
(cherry picked from commit 8014ae0)

Co-authored-by: Simeon Widdis <[email protected]>
@Swiddis Swiddis deleted the 2.14 branch May 14, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants