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

Remove unnecessary sleep between test runs #746

Merged
merged 1 commit into from
May 1, 2024

Conversation

kaituo
Copy link
Collaborator

@kaituo kaituo commented Apr 30, 2024

Description

The introduction of sleep between test runs in dashboard_spec.js and detector_list_spec.js was initially implemented to handle timing issues. However, these tests were actually failing due to a recent URL change, as detailed in opensearch-project/opensearch-dashboards-functional-test#1257.

With the root cause of the failures addressed, the delays introduced by sleep commands are now redundant and can potentially slow down the testing process without providing any benefit. This PR removes these unnecessary sleep intervals between test executions.

Testing Done:

  • Confirmed that all remote Cypress tests pass without the sleep intervals.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
  • 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.

@opensearch-trigger-bot opensearch-trigger-bot bot added github actions Updating or adding GitHub actions backport 2.x labels Apr 30, 2024
@kaituo kaituo force-pushed the CIFix branch 6 times, most recently from 3c58a43 to 945dd67 Compare April 30, 2024 23:50
@kaituo kaituo changed the title test Remove unnecessary sleep between test runs Apr 30, 2024
The introduction of `sleep` between test runs in `dashboard_spec.js` and `detector_list_spec.js` was initially implemented to handle timing issues. However, these tests were actually failing due to a recent URL change, as detailed in opensearch-project/opensearch-dashboards-functional-test#1257.

With the root cause of the failures addressed, the delays introduced by `sleep` commands are now redundant and can potentially slow down the testing process without providing any benefit. This PR removes these unnecessary sleep intervals between test executions.

**Testing Done:**
- Confirmed that all remote Cypress tests pass without the sleep intervals.

Signed-off-by: Kaituo Li <[email protected]>
@dbwiddis dbwiddis merged commit e509a03 into opensearch-project:main May 1, 2024
8 of 9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 1, 2024
The introduction of `sleep` between test runs in `dashboard_spec.js` and `detector_list_spec.js` was initially implemented to handle timing issues. However, these tests were actually failing due to a recent URL change, as detailed in opensearch-project/opensearch-dashboards-functional-test#1257.

With the root cause of the failures addressed, the delays introduced by `sleep` commands are now redundant and can potentially slow down the testing process without providing any benefit. This PR removes these unnecessary sleep intervals between test executions.

**Testing Done:**
- Confirmed that all remote Cypress tests pass without the sleep intervals.

Signed-off-by: Kaituo Li <[email protected]>
(cherry picked from commit e509a03)
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 1, 2024
The introduction of `sleep` between test runs in `dashboard_spec.js` and `detector_list_spec.js` was initially implemented to handle timing issues. However, these tests were actually failing due to a recent URL change, as detailed in opensearch-project/opensearch-dashboards-functional-test#1257.

With the root cause of the failures addressed, the delays introduced by `sleep` commands are now redundant and can potentially slow down the testing process without providing any benefit. This PR removes these unnecessary sleep intervals between test executions.

**Testing Done:**
- Confirmed that all remote Cypress tests pass without the sleep intervals.

Signed-off-by: Kaituo Li <[email protected]>
(cherry picked from commit e509a03)
dbwiddis pushed a commit that referenced this pull request May 1, 2024
The introduction of `sleep` between test runs in `dashboard_spec.js` and `detector_list_spec.js` was initially implemented to handle timing issues. However, these tests were actually failing due to a recent URL change, as detailed in opensearch-project/opensearch-dashboards-functional-test#1257.

With the root cause of the failures addressed, the delays introduced by `sleep` commands are now redundant and can potentially slow down the testing process without providing any benefit. This PR removes these unnecessary sleep intervals between test executions.

**Testing Done:**
- Confirmed that all remote Cypress tests pass without the sleep intervals.

Signed-off-by: Kaituo Li <[email protected]>
(cherry picked from commit e509a03)

Co-authored-by: Kaituo Li <[email protected]>
dbwiddis pushed a commit that referenced this pull request May 1, 2024
The introduction of `sleep` between test runs in `dashboard_spec.js` and `detector_list_spec.js` was initially implemented to handle timing issues. However, these tests were actually failing due to a recent URL change, as detailed in opensearch-project/opensearch-dashboards-functional-test#1257.

With the root cause of the failures addressed, the delays introduced by `sleep` commands are now redundant and can potentially slow down the testing process without providing any benefit. This PR removes these unnecessary sleep intervals between test executions.

**Testing Done:**
- Confirmed that all remote Cypress tests pass without the sleep intervals.

Signed-off-by: Kaituo Li <[email protected]>
(cherry picked from commit e509a03)

Co-authored-by: Kaituo Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport 2.14 github actions Updating or adding GitHub actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants