remove duplicate code (#20664)

* remove dupe code

* fix step name

* fix errors

* comment out arc

* fix timeout issue

* fix typo

* update name
This commit is contained in:
Alan Ren
2022-09-26 17:48:59 -07:00
committed by GitHub
parent 9fcdbce819
commit 54c2fe6899
69 changed files with 802 additions and 956 deletions

View File

@@ -1,10 +0,0 @@
setlocal
set ADS_TEST_GREP=@UNSTABLE@
set ADS_TEST_INVERT_GREP=
echo Running UNSTABLE ADS Extension Integration tests
call %~dp0\sql-test-integration.bat
endlocal

View File

@@ -1,18 +0,0 @@
#!/bin/bash
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
fi
cd $ROOT
export ADS_TEST_GREP="(.*@UNSTABLE@|integration test setup)"
export ADS_TEST_INVERT_GREP=0
echo Running UNSTABLE ADS Extension Integration tests
./scripts/sql-test-integration.sh

View File

@@ -31,13 +31,6 @@ if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
echo "Running integration tests with '%INTEGRATION_TEST_ELECTRON_PATH%' as build."
)
:: Default to only running stable tests if test grep isn't set
if "%ADS_TEST_GREP%" == "" (
echo Running stable tests only
set ADS_TEST_GREP=@UNSTABLE@
SET ADS_TEST_INVERT_GREP=1
)
if "%SKIP_PYTHON_INSTALL_TEST%" == "1" (
echo Skipping Python installation tests.
) else (

View File

@@ -13,13 +13,6 @@ else
LINUX_NO_SANDBOX="--no-sandbox" # Electron 6 introduces a chrome-sandbox that requires root to run. This can fail. Disable sandbox via --no-sandbox.
fi
# Default to only running stable tests if test grep isn't set
if [[ "$ADS_TEST_GREP" == "" ]]; then
echo Running stable tests only
export ADS_TEST_GREP=@UNSTABLE@
export ADS_TEST_INVERT_GREP=1
fi
# Figure out which Electron to use for running tests
if [ -z "$INTEGRATION_TEST_ELECTRON_PATH" ]
then

View File

@@ -1,12 +0,0 @@
:: Runs UNSTABLE Extension Tests
setlocal
set ADS_TEST_GREP=@UNSTABLE@
set ADS_TEST_INVERT_GREP=
echo Running UNSTABLE Extension Tests
call %~dp0\test-extensions-unit.bat
endlocal

View File

@@ -1,17 +0,0 @@
#!/bin/bash
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
fi
cd $ROOT
export ADS_TEST_GREP=@UNSTABLE@
export ADS_TEST_INVERT_GREP=
echo Running UNSTABLE Extension Tests
./scripts/test-extensions-unit.sh

View File

@@ -49,13 +49,6 @@ if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
echo Running unit tests with '%INTEGRATION_TEST_ELECTRON_PATH%' as build.
)
:: Default to only running stable tests if test grep isn't set
if "%ADS_TEST_GREP%" == "" (
echo "Running stable tests only"
set ADS_TEST_GREP=@UNSTABLE@
SET ADS_TEST_INVERT_GREP=1
)
set ALL_PLATFORMS_API_TESTS_EXTRA_ARGS=--disable-telemetry --crash-reporter-directory=%VSCODECRASHDIR% --no-cached-data --disable-updates --user-data-dir=%VSCODEUSERDATADIR% --remote-debugging-port=9222 --extensions-dir=%VSCODEEXTENSIONSDIR%
echo ***************************************************

View File

@@ -53,13 +53,6 @@ else {
console.log(`Running unit tests with '${process.env.INTEGRATION_TEST_ELECTRON_PATH}' as build.`);
}
if (!process.env.ADS_TEST_GREP) {
console.log('Running stable tests only');
process.env.ADS_TEST_GREP = '@UNSTABLE@';
process.env.ADS_TEST_INVERT_GREP = 1;
}
// execute tests
for (const ext of argv.extensions) {

View File

@@ -15,13 +15,6 @@ VSCODEEXTDIR=`mktemp -d -t adsext_XXXXXXXXXX 2>/dev/null`
VSCODECRASHDIR=$ROOT/.build/crashes
cd $ROOT
# Default to only running stable tests if test grep isn't set
if [[ "$ADS_TEST_GREP" == "" ]]; then
echo Running stable tests only
export ADS_TEST_GREP=@UNSTABLE@
export ADS_TEST_INVERT_GREP=1
fi
# Figure out which Electron to use for running tests
if [ -z "$INTEGRATION_TEST_ELECTRON_PATH" ]
then