Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

ci(sdk): Skip sdk-bundle test suite for backward-compat SDK tests (#63291)

Timofey Kachalova0243ff3a451
diff --git a/.github/workflows/e2e-component-tests-embedding-sdk-backward-compatibility.yml b/.github/workflows/e2e-component-tests-embedding-sdk-backward-compatibility.yml
index 0acdc5a12d8..924924e34e2 100644
--- a/.github/workflows/e2e-component-tests-embedding-sdk-backward-compatibility.yml
+++ b/.github/workflows/e2e-component-tests-embedding-sdk-backward-compatibility.yml
@@ -140,7 +140,10 @@ jobs:
run: node e2e/runner/run_cypress_ci.js snapshot --browser ${{ steps.cypress-prep.outputs.chrome-path }}
- name: Run component tests for Embedding SDK
- run: node e2e/runner/run_cypress_ci.js component --browser ${{ steps.cypress-prep.outputs.chrome-path }}
+ run: |
+ node e2e/runner/run_cypress_ci.js component \
+ --browser ${{ steps.cypress-prep.outputs.chrome-path }} \
+ --env grepTags="-@skip-backward-compatibility",grepOmitFiltered=true
- name: Upload Test Results
uses: ./.github/actions/upload-test-results
diff --git a/e2e/runner/cypress-runner-run-tests.js b/e2e/runner/cypress-runner-run-tests.js
index 0f8fa449dcb..5fbdbff7360 100644
--- a/e2e/runner/cypress-runner-run-tests.js
+++ b/e2e/runner/cypress-runner-run-tests.js
@@ -127,7 +127,10 @@ const configs = {
openMode: args["--open"] || process.env.OPEN_UI === "true",
};
- return sdkComponentConfig;
+ const userArgs = await parseArguments(args);
+
+ const finalConfig = Object.assign({}, sdkComponentConfig, userArgs);
+ return finalConfig;
},
};
diff --git a/e2e/test-component/scenarios/embedding-sdk/sdk-bundle.cy.spec.tsx b/e2e/test-component/scenarios/embedding-sdk/sdk-bundle.cy.spec.tsx
index 4dce36a4d8f..2f64aab30fc 100644
--- a/e2e/test-component/scenarios/embedding-sdk/sdk-bundle.cy.spec.tsx
+++ b/e2e/test-component/scenarios/embedding-sdk/sdk-bundle.cy.spec.tsx
@@ -26,8 +26,11 @@ const sdkBundleCleanup = () => {
describe(
"scenarios > embedding-sdk > sdk-bundle",
- // These test in some cases load a new SDK Bundle that in combination with the Component Testing is memory-consuming
- { numTestsKeptInMemory: 1 },
+ {
+ tags: ["@skip-backward-compatibility"],
+ // These test in some cases load a new SDK Bundle that in combination with the Component Testing is memory-consuming
+ numTestsKeptInMemory: 1,
+ },
() => {
beforeEach(() => {
signInAsAdminAndEnableEmbeddingSdk();