diff --git a/test/scripts/jenkins_accessibility.sh b/test/scripts/jenkins_accessibility.sh deleted file mode 100755 index b40a6b6bc32..00000000000 --- a/test/scripts/jenkins_accessibility.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup_oss.sh - -checks-reporter-with-killswitch "OpenSearch Dashboards accessibility tests" \ - node scripts/functional_tests \ - --debug --bail \ - --opensearch-dashboards-install-dir "$OPENSEARCH_DASHBOARDS_INSTALL_DIR" \ - --config test/accessibility/config.ts; diff --git a/test/scripts/jenkins_baseline.sh b/test/scripts/jenkins_baseline.sh deleted file mode 100755 index ea6c2115341..00000000000 --- a/test/scripts/jenkins_baseline.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh -source "$OPENSEARCH_DASHBOARDS_DIR/src/dev/ci_setup/setup_percy.sh" - -echo " -> building and extracting OSS OpenSearch Dashboards distributable for use in functional tests" -node scripts/build --debug --oss -linuxBuild="$(find "$OPENSEARCH_DASHBOARDS_DIR/target" -name 'opensearch-dashboards-*-linux-x86_64.tar.gz')" -installDir="$PARENT_DIR/install/opensearch-dashboards" -mkdir -p "$installDir" -tar -xzf "$linuxBuild" -C "$installDir" --strip=1 diff --git a/test/scripts/jenkins_build_kbn_sample_panel_action.sh b/test/scripts/jenkins_build_kbn_sample_panel_action.sh deleted file mode 100755 index 8c873d8ac5e..00000000000 --- a/test/scripts/jenkins_build_kbn_sample_panel_action.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh - -cd test/plugin_functional/plugins/osd_sample_panel_action; -if [[ ! -d "target" ]]; then - checks-reporter-with-killswitch "Build osd_sample_panel_action" yarn build; -fi -cd -; diff --git a/test/scripts/jenkins_build_opensearch_dashboards.sh b/test/scripts/jenkins_build_opensearch_dashboards.sh deleted file mode 100755 index 1f48d70f8b0..00000000000 --- a/test/scripts/jenkins_build_opensearch_dashboards.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh - -if [[ ! "$TASK_QUEUE_PROCESS_ID" ]]; then - ./test/scripts/jenkins_build_plugins.sh -fi - -# doesn't persist, also set in OpenSearchDashboardsPipeline.groovy -export OSD_NP_PLUGINS_BUILT=true - -echo " -> Ensuring all functional tests are in a ciGroup" -yarn run grunt functionalTests:ensureAllTestsInCiGroup; - -echo " -> building and extracting OSS OpenSearch Dashboards distributable for use in functional tests" -node scripts/build --debug --oss - -mkdir -p "$WORKSPACE/opensearch-dashboards-build-oss" -cp -pR build/oss/opensearch-dashboards-*-SNAPSHOT-linux-x86_64/. $WORKSPACE/opensearch-dashboards-build-oss/ diff --git a/test/scripts/jenkins_build_plugins.sh b/test/scripts/jenkins_build_plugins.sh deleted file mode 100755 index c62e44e005c..00000000000 --- a/test/scripts/jenkins_build_plugins.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh - -echo " -> building OpenSearch Dashboards 's platform plugins" -node scripts/build_opensearch_dashboards_platform_plugins \ - --oss \ - --scan-dir "$OPENSEARCH_DASHBOARDS_DIR/test/plugin_functional/plugins" \ - --scan-dir "$OPENSEARCH_DASHBOARDS_DIR/test/interpreter_functional/plugins" \ - --workers 6 \ - --verbose diff --git a/test/scripts/jenkins_ci_group.sh b/test/scripts/jenkins_ci_group.sh deleted file mode 100755 index ff9aa4075a5..00000000000 --- a/test/scripts/jenkins_ci_group.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup_oss.sh - -checks-reporter-with-killswitch "Functional tests / Group ${CI_GROUP}" yarn run grunt "run:functionalTests_ciGroup${CI_GROUP}"; - -if [[ ! "$TASK_QUEUE_PROCESS_ID" && "$CI_GROUP" == "1" ]]; then - source test/scripts/jenkins_build_osd_sample_panel_action.sh - yarn run grunt run:pluginFunctionalTestsRelease --from=source; - yarn run grunt run:exampleFunctionalTestsRelease --from=source; - yarn run grunt run:interpreterFunctionalTestsRelease; -fi diff --git a/test/scripts/jenkins_cloud.sh b/test/scripts/jenkins_cloud.sh deleted file mode 100755 index c6fd92d85a4..00000000000 --- a/test/scripts/jenkins_cloud.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# This script runs OpenSearch Dashboards tests compatible with cloud. -# -# The cloud instance setup is done in the elastic/elastic-stack-testing framework, -# where the following environment variables are set pointing to the cloud instance. -# -# export TEST_OPENSEARCH_DASHBOARDS_HOSTNAME -# export TEST_OPENSEARCH_DASHBOARDS_PROTOCOL= -# export TEST_OPENSEARCH_DASHBOARDS_PORT= -# export TEST_OPENSEARCH_DASHBOARDS_USER= -# export TEST_OPENSEARCH_DASHBOARDS_PASS= -# -# export TEST_OPENSEARCH_HOSTNAME= -# export TEST_OPENSEARCH_PROTOCOL= -# export TEST_OPENSEARCH_PORT= -# export TEST_OPENSEARCH_USER= -# export TEST_OPENSEARCH_PASS= -# - -set -e - -source "$(dirname $0)/../../src/dev/ci_setup/setup.sh" - -export TEST_BROWSER_HEADLESS=1 -node scripts/functional_test_runner --debug --exclude-tag skipCloud $@ diff --git a/test/scripts/jenkins_docs.sh b/test/scripts/jenkins_docs.sh deleted file mode 100755 index bd606d60101..00000000000 --- a/test/scripts/jenkins_docs.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -set -e -source "$(dirname $0)/../../src/dev/ci_setup/setup.sh" - -"$(FORCE_COLOR=0 yarn bin)/grunt" jenkins:docs; diff --git a/test/scripts/jenkins_firefox_smoke.sh b/test/scripts/jenkins_firefox_smoke.sh deleted file mode 100755 index ac70a61711a..00000000000 --- a/test/scripts/jenkins_firefox_smoke.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup_oss.sh - -checks-reporter-with-killswitch "Firefox smoke test" \ - node scripts/functional_tests \ - --bail --debug \ - --opensearch-dashboards-install-dir "$OPENSEARCH_DASHBOARDS_INSTALL_DIR" \ - --include-tag "includeFirefox" \ - --config test/functional/config.firefox.js; diff --git a/test/scripts/jenkins_plugin_functional.sh b/test/scripts/jenkins_plugin_functional.sh deleted file mode 100755 index 0374f57bf18..00000000000 --- a/test/scripts/jenkins_plugin_functional.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup_oss.sh - -cd test/plugin_functional/plugins/osd_sample_panel_action; -if [[ ! -d "target" ]]; then - yarn build; -fi -cd -; - -pwd - -yarn run grunt run:pluginFunctionalTestsRelease --from=source; -yarn run grunt run:exampleFunctionalTestsRelease --from=source; -yarn run grunt run:interpreterFunctionalTestsRelease; diff --git a/test/scripts/jenkins_runbld_junit.sh b/test/scripts/jenkins_runbld_junit.sh deleted file mode 100755 index bcb6accd5f8..00000000000 --- a/test/scripts/jenkins_runbld_junit.sh +++ /dev/null @@ -1,2 +0,0 @@ -# This file just exists to give runbld something to invoke before processing junit reports -echo 'Processing junit reports with runbld...' diff --git a/test/scripts/jenkins_security_solution_cypress.sh b/test/scripts/jenkins_security_solution_cypress.sh deleted file mode 100755 index d2396e70c4f..00000000000 --- a/test/scripts/jenkins_security_solution_cypress.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup_xpack.sh - -echo " -> Running security solution cypress tests" -cd "$XPACK_DIR" - -checks-reporter-with-killswitch "Security Solution Cypress Tests" \ - node scripts/functional_tests \ - --debug --bail \ - --opensearch-dashboards-install-dir "$OPENSEARCH_DASHBOARDS_INSTALL_DIR" \ - --config test/security_solution_cypress/cli_config.ts - -echo "" -echo "" diff --git a/test/scripts/jenkins_setup.sh b/test/scripts/jenkins_setup.sh deleted file mode 100755 index 16563f3c976..00000000000 --- a/test/scripts/jenkins_setup.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/load_env_keys.sh -source src/dev/ci_setup/extract_bootstrap_cache.sh -source src/dev/ci_setup/setup.sh -source src/dev/ci_setup/checkout_sibling_opensearch.sh \ No newline at end of file diff --git a/test/scripts/jenkins_setup_parallel_workspace.sh b/test/scripts/jenkins_setup_parallel_workspace.sh deleted file mode 100755 index 5119ec67643..00000000000 --- a/test/scripts/jenkins_setup_parallel_workspace.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -set -e - -CURRENT_DIR=$(pwd) - -# Copy everything except node_modules into the current workspace -rsync -a ${WORKSPACE}/opensearch-dashboards/* . --exclude node_modules -rsync -a ${WORKSPACE}/opensearch-dashboards/.??* . - -# Symlink all non-root, non-fixture node_modules into our new workspace -cd ${WORKSPACE}/opensearch-dashboards -find . -type d -name node_modules -not -path '*__fixtures__*' -not -path './node_modules*' -prune -print0 | xargs -0I % ln -s "${WORKSPACE}/opensearch-dashboards/%" "${CURRENT_DIR}/%" -find . -type d -wholename '*__fixtures__*node_modules' -not -path './node_modules*' -prune -print0 | xargs -0I % cp -R "${WORKSPACE}/opensearch-dashboards/%" "${CURRENT_DIR}/%" -cd "${CURRENT_DIR}" - -# Symlink all of the individual root-level node_modules into the node_modules/ directory -mkdir -p node_modules -ln -s ${WORKSPACE}/opensearch-dashboards/node_modules/* node_modules/ -ln -s ${WORKSPACE}/opensearch-dashboards/node_modules/.??* node_modules/ - -# Copy a few node_modules instead of symlinking them. They don't work correctly if symlinked -unlink node_modules/@osd -unlink node_modules/css-loader -unlink node_modules/style-loader - -# packages/osd-optimizer/src/integration_tests/basic_optimization.test.ts will fail if this is a symlink -unlink node_modules/val-loader - -cp -R ${WORKSPACE}/opensearch-dashboards/node_modules/@osd node_modules/ -cp -R ${WORKSPACE}/opensearch-dashboards/node_modules/css-loader node_modules/ -cp -R ${WORKSPACE}/opensearch-dashboards/node_modules/style-loader node_modules/ -cp -R ${WORKSPACE}/opensearch-dashboards/node_modules/val-loader node_modules/ diff --git a/test/scripts/jenkins_test_setup.sh b/test/scripts/jenkins_test_setup.sh deleted file mode 100755 index f5ca26cb375..00000000000 --- a/test/scripts/jenkins_test_setup.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -set -e - -function post_work() { - set +e - if [[ -z "$REMOVE_OPENSEARCH_DASHBOARDS_INSTALL_DIR" && -z "$OPENSEARCH_DASHBOARDS_INSTALL_DIR" && -d "$OPENSEARCH_DASHBOARDS_INSTALL_DIR" ]]; then - rm -rf "$REMOVE_OPENSEARCH_DASHBOARDS_INSTALL_DIR" - fi -} - -trap 'post_work' EXIT - -export TEST_BROWSER_HEADLESS=1 - -source src/dev/ci_setup/setup_env.sh - -# For parallel workspaces, we should copy the .opensearch directory from the root, because it should already have downloaded snapshots in it -# This isn't part of jenkins_setup_parallel_workspace.sh just because not all tasks require OpenSearch -if [[ ! -d .opensearch && -d "$WORKSPACE/opensearch-dashboards/.opensearch" ]]; then - cp -R $WORKSPACE/opensearch-dashboards/.opensearch ./ -fi diff --git a/test/scripts/jenkins_test_setup_oss.sh b/test/scripts/jenkins_test_setup_oss.sh deleted file mode 100755 index 493598ee444..00000000000 --- a/test/scripts/jenkins_test_setup_oss.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup.sh - -if [[ -z "$CODE_COVERAGE" ]]; then - destDir="$WORKSPACE/opensearch-dashboards-build-oss-${TASK_QUEUE_PROCESS_ID:-$CI_PARALLEL_PROCESS_NUMBER}" - - if [[ ! -d $destDir ]]; then - mkdir -p $destDir - cp -pR "$WORKSPACE/opensearch-dashboards-build-oss/." $destDir/ - fi - - export OPENSEARCH_DASHBOARDS_INSTALL_DIR="$destDir" -fi diff --git a/test/scripts/jenkins_test_setup_xpack.sh b/test/scripts/jenkins_test_setup_xpack.sh deleted file mode 100755 index 43d51372546..00000000000 --- a/test/scripts/jenkins_test_setup_xpack.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup.sh - -if [[ -z "$CODE_COVERAGE" ]]; then - destDir="$WORKSPACE/opensearch-dashboards-build-xpack-${TASK_QUEUE_PROCESS_ID:-$CI_PARALLEL_PROCESS_NUMBER}" - - if [[ ! -d $destDir ]]; then - mkdir -p $destDir - cp -pR "$WORKSPACE/opensearch-dashboards-build-xpack/." $destDir/ - fi - - export OPENSEARCH_DASHBOARDS_INSTALL_DIR="$(realpath $destDir)" - - cd "$XPACK_DIR" -fi diff --git a/test/scripts/jenkins_unit.sh b/test/scripts/jenkins_unit.sh deleted file mode 100755 index b7fd955b6d1..00000000000 --- a/test/scripts/jenkins_unit.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup.sh - -"$(FORCE_COLOR=0 yarn bin)/grunt" jenkins:unit --dev; diff --git a/test/scripts/server_integration.sh b/test/scripts/server_integration.sh deleted file mode 100755 index 82bc733e51b..00000000000 --- a/test/scripts/server_integration.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -source test/scripts/jenkins_test_setup_oss.sh - -yarn run grunt run:serverIntegrationTests diff --git a/test/scripts/test/xpack_jest_unit.sh b/test/scripts/test/xpack_jest_unit.sh deleted file mode 100755 index 93d70ec3553..00000000000 --- a/test/scripts/test/xpack_jest_unit.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh - -cd x-pack -checks-reporter-with-killswitch "X-Pack Jest" node --max-old-space-size=6144 scripts/jest --ci --verbose --maxWorkers=10 diff --git a/test/scripts/test/xpack_karma.sh b/test/scripts/test/xpack_karma.sh deleted file mode 100755 index 9078f01f1b8..00000000000 --- a/test/scripts/test/xpack_karma.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh - -cd x-pack -checks-reporter-with-killswitch "X-Pack Karma Tests" yarn test:karma diff --git a/test/scripts/test/xpack_list_cyclic_dependency.sh b/test/scripts/test/xpack_list_cyclic_dependency.sh deleted file mode 100755 index 493fe9f58d3..00000000000 --- a/test/scripts/test/xpack_list_cyclic_dependency.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh - -cd x-pack -checks-reporter-with-killswitch "X-Pack List cyclic dependency test" node plugins/lists/scripts/check_circular_deps diff --git a/test/scripts/test/xpack_siem_cyclic_dependency.sh b/test/scripts/test/xpack_siem_cyclic_dependency.sh deleted file mode 100755 index b21301f25ad..00000000000 --- a/test/scripts/test/xpack_siem_cyclic_dependency.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -source src/dev/ci_setup/setup_env.sh - -cd x-pack -checks-reporter-with-killswitch "X-Pack SIEM cyclic dependency test" node plugins/security_solution/scripts/check_circular_deps