From c379e18e9d7c61b07f45289929f3fc9408697aa2 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Tue, 14 Dec 2021 10:10:30 +0000 Subject: [PATCH] [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 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 2d49132cb112..fac2ec1b53e3 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, '