@@ -77,11 +77,11 @@ jobs:
77
77
- group : 9
78
78
config : standard
79
79
test_location : ftr
80
- # Query enhanced tests
80
+ # Dashboard tests with query enhanced
81
81
- group : 10
82
82
config : query_enhanced
83
- test_location : ftr
84
- # Dashboard tests
83
+ test_location : source
84
+ # Dashboard tests with no query enhanced
85
85
- group : 11
86
86
config : dashboard
87
87
test_location : source
90
90
options : --user 1001
91
91
env :
92
92
START_CMD : ${{ matrix.config == 'query_enhanced' &&
93
- ' node ../ scripts/opensearch_dashboards --dev --no-base-path --no-watch --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true --csp.warnLegacyBrowsers=false --uiSettings.overrides["query:enhancements:enabled"]=true --uiSettings.overrides['' home:useNewHomePage'' ]=true --data_source.enabled=true --opensearch.ignoreVersionMismatch=true' ||
93
+ ' node scripts/opensearch_dashboards --dev --no-base-path --no-watch --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true --csp.warnLegacyBrowsers=false --uiSettings.overrides["query:enhancements:enabled"]=true --uiSettings.overrides['' home:useNewHomePage'' ]=true --data_source.enabled=true --opensearch.ignoreVersionMismatch=true' ||
94
94
matrix.config == 'dashboard' &&
95
95
' node scripts/opensearch_dashboards --dev --no-base-path --no-watch --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true' ||
96
96
' node ../scripts/opensearch_dashboards --dev --no-base-path --no-watch --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true --csp.warnLegacyBrowsers=false --uiSettings.overrides["query:enhancements:enabled"]=false' }}
@@ -172,18 +172,16 @@ jobs:
172
172
FORMATTED_SPEC+="cypress/integration/core-opensearch-dashboards/opensearch-dashboards/${i},"
173
173
done
174
174
echo "SPEC=${FORMATTED_SPEC}" >> $GITHUB_ENV
175
+ echo "SPEC=${FORMATTED_SPEC}"
175
176
176
177
# Setup spec files for Dashboards in-house cypress tests
177
178
- name : Setup spec files for Dashboards tests
178
179
if : ${{ inputs.specs == '' && matrix.test_location == 'source' }}
179
180
shell : bash
180
181
run : |
181
- IFS="," read -a SPEC_ARRAY <<< $(yarn --silent osd:ciGroup${{ matrix.group }})
182
- DASHBOARDS_SPEC=''
183
- for i in "${SPEC_ARRAY[@]}"; do
184
- DASHBOARDS_SPEC+="cypress/integration/core_opensearch_dashboards/${i},"
185
- done
182
+ DASHBOARDS_SPEC="$(yarn --silent osd:ciGroup${{ matrix.group }})"
186
183
echo "DASHBOARDS_SPEC=${DASHBOARDS_SPEC}" >> $GITHUB_ENV
184
+ echo "DASHBOARDS_SPEC=${DASHBOARDS_SPEC}"
187
185
188
186
- name : Get Cypress version
189
187
if : ${{ matrix.test_location == 'ftr' }}
@@ -204,8 +202,8 @@ jobs:
204
202
- run : npx cypress cache path
205
203
206
204
# Run tests based on configuration
207
- - name : Run FT repo tests with no query enhancements
208
- if : matrix.test_location == 'ftr' && matrix.config == 'standard'
205
+ - name : Run FT repo tests
206
+ if : matrix.test_location == 'ftr'
209
207
uses : cypress-io/github-action@v2
210
208
with :
211
209
working-directory : ${{ env.FTR_PATH }}
@@ -214,48 +212,47 @@ jobs:
214
212
command : yarn cypress:run-without-security --browser ${{ env.CYPRESS_BROWSER }} --spec ${{ env.SPEC }}
215
213
216
214
- name : Download OpenSearch
217
- if : matrix.test_location == 'ftr' && matrix. config == 'query_enhanced'
215
+ if : matrix.config == 'query_enhanced'
218
216
219
217
with :
220
218
url : https://artifacts.opensearch.org/releases/bundle/opensearch/${{ env.LATEST_VERSION }}/opensearch-${{ env.LATEST_VERSION }}-linux-x64.tar.gz
221
219
222
220
- name : Extract OpenSearch
223
- if : matrix.test_location == 'ftr' && matrix. config == 'query_enhanced'
221
+ if : matrix.config == 'query_enhanced'
224
222
run : |
225
223
tar -xzf opensearch-*.tar.gz
226
224
rm -f opensearch-*.tar.gz
227
225
shell : bash
228
226
229
227
- name : Remove security plugin
230
- if : matrix.test_location == 'ftr' && matrix. config == 'query_enhanced'
228
+ if : matrix.config == 'query_enhanced'
231
229
run : |
232
230
/bin/bash -c "yes | ./opensearch-${{ env.LATEST_VERSION }}/bin/opensearch-plugin remove opensearch-security"
233
231
shell : bash
234
232
235
233
- name : Run OpenSearch
236
- if : matrix.test_location == 'ftr' && matrix. config == 'query_enhanced'
234
+ if : matrix.config == 'query_enhanced'
237
235
run : |
238
236
/bin/bash -c "./opensearch-2.17.0/opensearch-tar-install.sh &"
239
237
sleep 30
240
238
shell : bash
241
239
242
- - name : Run FT repo tests with query enhancements
243
- if : matrix.test_location == 'ftr' && matrix.config == 'query_enhanced'
244
- uses : cypress-io/github-action@v2
245
- with :
246
- working-directory : ${{ env.FTR_PATH }}
247
- start : ${{ env.START_CMD }}
248
- wait-on : ' http://localhost:9200, http://localhost:5601'
249
- command : yarn cypress:run-without-security --browser ${{ env.CYPRESS_BROWSER }} --spec ${{ env.SPEC }}
250
-
251
240
# Clear Cypress Cache before running Dashboards tests
252
241
- name : Clear Cypress Cache
253
242
if : matrix.test_location == 'source'
254
243
run : npx cypress cache clear
255
244
256
245
# Run Dashboards Cypress tests within the source repo
257
- - name : Run Dashboards Cypress tests
258
- if : matrix.test_location == 'source'
246
+ - name : Run Dashboards Cypress tests with query enhancements
247
+ if : matrix.test_location == 'source' && matrix.config == 'query_enhanced'
248
+ uses : cypress-io/github-action@v6
249
+ with :
250
+ install-command : npx cypress install --force
251
+ start : ${{ env.START_CMD }}
252
+ wait-on : ' http://localhost:9200, http://localhost:5601'
253
+ command : yarn cypress:run-without-security --browser ${{ env.CYPRESS_BROWSER }} --spec ${{ env.DASHBOARDS_SPEC }}
254
+ - name : Run Dashboards Cypress tests without query enhancements
255
+ if : matrix.test_location == 'source' && matrix.config == 'dashboard'
259
256
uses : cypress-io/github-action@v6
260
257
with :
261
258
install-command : npx cypress install --force
0 commit comments