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

[Backport 2.x] Reduce Cypress test flakiness #575

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on: [pull_request, push]

env:
PLUGIN_NAME: notifications-dashboards
OPENSEARCH_DASHBOARDS_VERSION: '2.4'
OPENSEARCH_DASHBOARDS_VERSION: '2.4.0'
OPENSEARCH_VERSION: '2.4.0-SNAPSHOT'

jobs:
Expand All @@ -25,7 +25,8 @@ jobs:
# This setting says that all jobs should finish, even if one fails
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
# TODO: macos-latest was removed due to CI flakiness, we can revisit adding it back later
os: [ ubuntu-latest, windows-latest ]
include:
- os: windows-latest
working_directory: X:\
Expand All @@ -34,8 +35,9 @@ jobs:
- os: ubuntu-latest
jest_test_args: --coverage
cypress_cache_folder: ~/.cache/Cypress
- os: macos-latest
cypress_cache_folder: ~/Library/Caches/Cypress
# TODO: Add back when macos-latest is back in the test matrix
# - os: macos-latest
# cypress_cache_folder: ~/Library/Caches/Cypress


name: Test and Build Dashboards Notifications on ${{ matrix.os }}
Expand Down
4 changes: 4 additions & 0 deletions dashboards-notifications/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"requestTimeout": 60000,
"responseTimeout": 60000,
"defaultCommandTimeout": 60000,
"retries": {
"runMode": 2,
"openMode": 2
},
"env": {
"opensearch": "localhost:9200",
"opensearchDashboards": "localhost:5601",
Expand Down