Skip to content

Commit

Permalink
Fix invalid characters in test name
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Nov 4, 2024
1 parent 1b01766 commit 08b4bd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
test-name: "osd:ciGroup${{ matrix.ciGroup }}"
test-command: env CYPRESS_NO_COMMAND_LOG=1 CYPRESS_ML_COMMONS_DASHBOARDS_ENABLED=true CYPRESS_VISBUILDER_ENABLED=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true yarn cypress:run-with-security --browser chromium --spec '${{ matrix.specs }}'
osd-serve-args: --data_source.enabled=true --data_source.ssl.verificationMode=none --vis_builder.enabled=true --ml_commons_dashboards.enabled=true
artifact-name-suffix: "-ciGroup${{ matrix.ciGroup }}"

tests-without-security:
needs: ["get_spec"]
Expand All @@ -87,6 +88,8 @@ jobs:
test-command: env CYPRESS_NO_COMMAND_LOG=1 CYPRESS_ML_COMMONS_DASHBOARDS_ENABLED=true CYPRESS_VISBUILDER_ENABLED=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true yarn cypress:run-without-security --browser chromium --spec '${{ matrix.specs }}'
osd-serve-args: --data_source.enabled=true --data_source.ssl.verificationMode=none --vis_builder.enabled=true --ml_commons_dashboards.enabled=true
security-enabled: false
artifact-name-suffix: "-ciGroup${{ matrix.ciGroup }}"


# Hold on windows test cases
# https://github.com/opensearch-project/opensearch-dashboards-functional-test/actions/runs/9377445544/job/25819022121?pr=1352
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release-e2e-workflow-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
security-enabled:
required: false
type: string
artifact-name-suffix:
required: false
type: string
jobs:
tests:
name: Run Cypress E2E tests for ${{ inputs.test-name }}
Expand Down Expand Up @@ -135,17 +138,17 @@ jobs:
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots${{ inputs.test-name }}
name: cypress-screenshots${{ inputs.artifact-name-suffix }}
path: cypress-test/cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos${{ inputs.test-name }}
name: cypress-videos${{ inputs.artifact-name-suffix }}
path: cypress-test/cypress/videos
# Test reports was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-results${{ inputs.test-name }}
name: cypress-results${{ inputs.artifact-name-suffix }}
path: cypress-test/cypress/results

0 comments on commit 08b4bd3

Please sign in to comment.