From f21558c1f1c25700f4cd66cf0aacadb29d36eac9 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Mon, 3 Jan 2022 16:41:00 -0800 Subject: [PATCH] [1.x][Build] remove legacy version check for plugin builds Removes the SEMVAR check for external plugins. 7.9 is not relevant to the application. The semvar library was also preventing major.minor.patch.x which is the format from OpenSearch plugins. Related issue: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/992 Backport PR: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/1029 Signed-off-by: Kawika Avilla --- .../src/integration_tests/build.test.ts | 94 +++++++++++++++++++ .../src/tasks/write_server_files.ts | 10 +- 2 files changed, 96 insertions(+), 8 deletions(-) diff --git a/packages/osd-plugin-helpers/src/integration_tests/build.test.ts b/packages/osd-plugin-helpers/src/integration_tests/build.test.ts index 2d49132cb11..fac2ec1b53e 100644 --- a/packages/osd-plugin-helpers/src/integration_tests/build.test.ts +++ b/packages/osd-plugin-helpers/src/integration_tests/build.test.ts @@ -42,12 +42,17 @@ import globby from 'globby'; import loadJsonFile from 'load-json-file'; const OPENSEARCH_DASHBOARDS_VERSION = '1.0.0'; +const OPENSEARCH_DASHBOARDS_VERSION_X = '1.0.0.x'; const PLUGIN_DIR = Path.resolve(REPO_ROOT, 'plugins/foo_test_plugin'); const PLUGIN_BUILD_DIR = Path.resolve(PLUGIN_DIR, 'build'); const PLUGIN_ARCHIVE = Path.resolve( PLUGIN_BUILD_DIR, `fooTestPlugin-${OPENSEARCH_DASHBOARDS_VERSION}.zip` ); +const PLUGIN_ARCHIVE_X = Path.resolve( + PLUGIN_BUILD_DIR, + `fooTestPlugin-${OPENSEARCH_DASHBOARDS_VERSION_X}.zip` +); const TMP_DIR = Path.resolve(__dirname, '__tmp__'); expect.addSnapshotSerializer(createReplaceSerializer(/[\d\.]+ sec/g, '