From c439e3580bf738b6976c18d0266eae8dede97c40 Mon Sep 17 00:00:00 2001 From: Andrew Macri Date: Sat, 26 Aug 2023 17:12:31 -0600 Subject: [PATCH] - fix for the following test failures: ``` Test Failures [job] [logs] Jest Integration Tests #5 / checking migration metadata changes on all registered SO types detecting migration related changes in registered types [job] [logs] Jest Integration Tests #6 / incompatible_cluster_routing_allocation retries the INIT action with a descriptive message when cluster settings are incompatible [job] [logs] Jest Integration Tests #6 / migrating from 7.3.0-xpack which used v1 migrations copies all the document of the previous index to the new one [job] [logs] Jest Integration Tests #6 / migrating from 7.3.0-xpack which used v1 migrations creates the new index and the correct aliases [job] [logs] Jest Integration Tests #6 / migrating from 7.3.0-xpack which used v1 migrations migrates the documents to the highest version [job] [logs] Jest Integration Tests #6 / migration v2 - read batch size does not reduce the read batchSize in half if no batches exceeded maxReadBatchSizeBytes [job] [logs] Jest Integration Tests #6 / migration v2 - read batch size reduces the read batchSize in half if a batch exceeds maxReadBatchSizeBytes [job] [logs] Jest Integration Tests #5 / migration v2 fails with a descriptive message when maxBatchSizeBytes exceeds ES http.max_content_length [job] [logs] Jest Integration Tests #5 / migration v2 with corrupt saved object documents collects corrupt saved object documents across batches [job] [logs] Jest Integration Tests #6 / SO default search fields make sure management types have the correct mappings for default search fields [job] [logs] Jest Integration Tests #6 / SO type registrations does not remove types from registrations without updating excludeOnUpgradeQuery [job] [logs] Jest Integration Tests #4 / split .kibana index into multiple system indices when migrating from a legacy version performs v1 migration and then relocates saved objects into different indices, depending on their types [job] [logs] Jest Integration Tests #4 / split .kibana index into multiple system indices when multiple Kibana migrators run in parallel correctly migrates 7.7.2_xpack_100k_obj.zip archive [job] [logs] Jest Integration Tests #6 / when splitting .kibana into multiple indices and one clone fails after resolving the problem and retrying the migration completes successfully ``` --- packages/kbn-test/jest_integration_node/jest-preset.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/kbn-test/jest_integration_node/jest-preset.js b/packages/kbn-test/jest_integration_node/jest-preset.js index 43373e41db5c1..dcee772a0949f 100644 --- a/packages/kbn-test/jest_integration_node/jest-preset.js +++ b/packages/kbn-test/jest_integration_node/jest-preset.js @@ -19,6 +19,11 @@ module.exports = { testPathIgnorePatterns: preset.testPathIgnorePatterns.filter( (pattern) => !pattern.includes('integration_tests') ), + // An array of regexp pattern strings that are matched against, matched files will skip transformation: + transformIgnorePatterns: [ + // since ESM modules are not natively supported in Jest yet (https://github.com/facebook/jest/issues/4842) + '[/\\\\]node_modules(?![\\/\\\\](langchain))[/\\\\].+\\.js$', + ], setupFilesAfterEnv: [ '/packages/kbn-test/src/jest/setup/after_env.integration.js', '/packages/kbn-test/src/jest/setup/mocks.moment_timezone.js',