The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Improve how skipped SDK tests are handled (#66211)
Nemanja Glumac18811644221f
diff --git a/.github/workflows/embedding-sdk.yml b/.github/workflows/embedding-sdk.ymlindex 2cfe5fca472..98129e8ed99 100644--- a/.github/workflows/embedding-sdk.yml+++ b/.github/workflows/embedding-sdk.yml@@ -23,6 +23,10 @@ on:description: "Whether to run host and sample apps compatibility tests."required: truetype: boolean+ skip:+ description: Whether to skip running tests due to one of the artifacts failing to build.+ required: true+ type: booleanconcurrency:group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}@@ -30,7 +34,7 @@ concurrency:jobs:embedding-sdk-cli-snippets-type-check:- if: inputs.cli-snippets-type-check+ if: inputs.cli-snippets-type-check && !inputs.skipruns-on: ubuntu-22.04timeout-minutes: 20steps:@@ -46,7 +50,7 @@ jobs:run: yarn run embedding-sdk:cli-snippets:type-checkembedding-sdk-docs-snippets-type-check:- if: inputs.docs-snippets-type-check+ if: inputs.docs-snippets-type-check && !inputs.skipruns-on: ubuntu-22.04timeout-minutes: 20steps:@@ -62,7 +66,7 @@ jobs:run: yarn run embedding-sdk:docs-snippets:type-checkembedding-sdk-api-documentation-generation-validation:- if: inputs.documentation-validation+ if: inputs.documentation-validation && !inputs.skipruns-on: ubuntu-22.04timeout-minutes: 20steps:@@ -110,13 +114,13 @@ jobs:# See `Component e2e tests` in `enterprise/frontend/src/embedding-sdk-package/dev.md`embedding-sdk-component-tests:name: "SDK component tests"- if: inputs.component-tests+ if: inputs.component-tests && !inputs.skipuses: ./.github/workflows/embedding-sdk-component-tests.ymlsecrets: inheritnot-required-embedding-sdk-apps-compatibility-tests:name: "SDK e2e tests for compatibility with (host/sample) apps"- if: inputs.host-sample-apps-tests+ if: inputs.host-sample-apps-tests && !inputs.skipuses: ./.github/workflows/embedding-sdk-host-sample-apps-tests.ymlsecrets: inheritdiff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.ymlindex 790395fe526..8b01ca99384 100644--- a/.github/workflows/run-tests.yml+++ b/.github/workflows/run-tests.yml@@ -110,9 +110,6 @@ jobs:sdk-tests:needs: [uberjar, embedding-sdk-package, files-changed]- if: |- needs.embedding-sdk-package.result == 'success' &&- needs.uberjar.result == 'success'uses: ./.github/workflows/embedding-sdk.ymlsecrets: inheritwith:@@ -121,6 +118,7 @@ jobs:documentation-validation: ${{ needs.files-changed.outputs.frontend_embedding_sdk_sources == 'true' }}component-tests: ${{ needs.files-changed.outputs.embedding_sdk_components == 'true' }}host-sample-apps-tests: ${{ needs.files-changed.outputs.embedding_sdk_host_sample_apps == 'true' }}+ skip: ${{ needs.embedding-sdk-package.result != 'success' || needs.uberjar.result != 'success' }}pr-env:needs: [uberjar]