Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/bin/
/build/
/build-local/

.gradle/
.idea/
Expand Down
6 changes: 3 additions & 3 deletions server/scripts/upload-test-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
SERVER_ROOT=$( dirname "${SCRIPT_DIR}" )
PROJECT_ROOT=$( dirname "${SERVER_ROOT}" )

TEST_EXTENSIONS_DIRECTORY="${SERVER_ROOT}/build/test-extensions"
TEST_EXTENSIONS_DIRECTORY="${SERVER_ROOT}/build-local/test-extensions"

if [ ! -d "${TEST_EXTENSIONS_DIRECTORY}" ]; then
echo "'${TEST_EXTENSIONS_DIRECTORY}' does not exist."
Expand All @@ -23,5 +23,5 @@ echo "Creating namespaces..."
for pub in $PUBLISHERS; do "${PROJECT_ROOT}/cli/bin/ovsx" create-namespace "${pub}"; done

echo "Publishing extensions..."
find "${SERVER_ROOT}/build/test-extensions-builtin" -name '*.vsix' -exec "${PROJECT_ROOT}/cli/bin/ovsx" publish '{}' \;
find "${SERVER_ROOT}/build/test-extensions" -name '*.vsix' -exec "${PROJECT_ROOT}/cli/bin/ovsx" publish '{}' \;
find "${SERVER_ROOT}/build-local/test-extensions-builtin" -name '*.vsix' -exec "${PROJECT_ROOT}/cli/bin/ovsx" publish '{}' \;
find "${SERVER_ROOT}/build-local/test-extensions" -name '*.vsix' -exec "${PROJECT_ROOT}/cli/bin/ovsx" publish '{}' \;
2 changes: 1 addition & 1 deletion server/src/gatling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- make sure to keep the `access_token` header at the top of the file.

### scala/org/eclipse/openvsx/RegistryAPIPublishExtensionSimulation.scala:
- Defaults to `build/test-extensions/`. Either populate it with `.vsix` files (e.g. `./gradlew downloadTestExtensions`) or change `extensionDir` in `resources/application.properties` to a directory that **only** contains extensions.
- Defaults to `build-local/test-extensions/`. Either populate it with `.vsix` files (e.g. `./gradlew downloadTestExtensions`) or change `extensionDir` in `resources/application.properties` to a directory that **only** contains extensions.

# Running Gatling

Expand Down
2 changes: 1 addition & 1 deletion server/src/gatling/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
baseUrl=http://localhost:8080
extensionDir=build/test-extensions
extensionDir=build-local/test-extensions
#auth=<AUTHORIZATION HEADER>
225 changes: 61 additions & 164 deletions server/test-extensions.gradle
Original file line number Diff line number Diff line change
@@ -1,170 +1,67 @@
// Test extensions downloaded into build-local/test-extensions-builtin (vscode built-ins)
// and build-local/test-extensions (regular extensions), keyed dest file name -> source URL.
def builtinExtensions = [
'vscode.sql-1.54.1.vsix' : 'https://open-vsx.org/api/vscode/sql/1.54.1/file/vscode.sql-1.54.1.vsix',
'vscode.powershell-1.54.1.vsix': 'https://open-vsx.org/api/vscode/powershell/1.54.1/file/vscode.powershell-1.54.1.vsix',
'vscode.docker-1.54.1.vsix' : 'https://open-vsx.org/api/vscode/docker/1.54.1/file/vscode.docker-1.54.1.vsix',
'vscode.yaml-1.54.1.vsix' : 'https://open-vsx.org/api/vscode/yaml/1.54.1/file/vscode.yaml-1.54.1.vsix',
]

def testExtensions = [
'ms-python.python-2019.9.34911.vsix' : 'https://github.com/microsoft/vscode-python/releases/download/2019.9.34911/ms-python-release.vsix',
'ms-python.python-2019.10.41019.vsix' : 'https://github.com/microsoft/vscode-python/releases/download/2019.10.41019/ms-python-release.vsix',
'ms-python.python-2019.10.44104.vsix' : 'https://github.com/microsoft/vscode-python/releases/download/2019.10.44104/ms-python-release.vsix',
'redhat.java@darwin-arm64-1.15.0.vsix' : 'https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@darwin-arm64-1.15.0.vsix',
'redhat.java@darwin-x64-1.15.0.vsix' : 'https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@darwin-x64-1.15.0.vsix',
'redhat.java@linux-arm64-1.15.0.vsix' : 'https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@linux-arm64-1.15.0.vsix',
'redhat.java@linux-x64-1.15.0.vsix' : 'https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@linux-x64-1.15.0.vsix',
'redhat.java@win32-x64-1.15.0.vsix' : 'https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@win32-x64-1.15.0.vsix',
'redhat.java-1.15.0.vsix' : 'https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/java-1.15.0.vsix',
'HookyQR.beautify-0.1.3.vsix' : 'https://github.com/HookyQR/VSCodeBeautify/releases/download/v0.1.3/beautify-0.1.3.vsix',
'eamodio.gitlens-10.0.1.vsix' : 'https://github.com/eamodio/vscode-gitlens/releases/download/v10.0.1/gitlens-10.0.1.vsix',
'eamodio.gitlens-10.1.0.vsix' : 'https://github.com/eamodio/vscode-gitlens/releases/download/v10.1.0/gitlens-10.1.0.vsix',
'eamodio.gitlens-10.1.1.vsix' : 'https://github.com/eamodio/vscode-gitlens/releases/download/v10.1.1/gitlens-10.1.1.vsix',
'octref.vetur-0.22.5.vsix' : 'https://github.com/vuejs/vetur/releases/download/v0.22.5/vetur-0.22.5.vsix',
'octref.vetur-0.22.6.vsix' : 'https://github.com/vuejs/vetur/releases/download/v0.22.6/vetur-0.22.6.vsix',
'Wscats.eno-2.0.3.vsix' : 'https://github.com/Wscats/omi-snippets/releases/download/2.03/eno-2.0.3.vsix',
'ms-azuretools.vscode-docker-0.8.1.vsix' : 'https://github.com/microsoft/vscode-docker/releases/download/v0.8.1/vscode-docker-0.8.1.vsix',
'ms-azuretools.vscode-docker-0.8.2.vsix' : 'https://github.com/microsoft/vscode-docker/releases/download/v0.8.2/vscode-docker-0.8.2.vsix',
'ritwickdey.live-server-5.6.1.vsix' : 'https://github.com/ritwickdey/vscode-live-server/releases/download/v5.6.1/LiveServer-v5.6.1-linux.vsix',
'felixfbecker.php-intellisense-2.3.10.vsix' : 'https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.10/php-intellisense.vsix',
'felixfbecker.php-intellisense-2.3.11.vsix' : 'https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.11/php-intellisense.vsix',
'felixfbecker.php-intellisense-2.3.12.vsix' : 'https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.12/php-intellisense.vsix',
'felixfbecker.php-intellisense-2.3.13.vsix' : 'https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.13/php-intellisense.vsix',
'formulahendry.code-runner-0.9.14.vsix' : 'https://github.com/formulahendry/vscode-code-runner/releases/download/0.9.14/code-runner-0.9.14.vsix',
'redhat.vscode-yaml-0.4.0.vsix' : 'https://github.com/redhat-developer/vscode-yaml/releases/download/0.4.0/redhat.vscode-yaml-0.4.0.vsix',
'redhat.vscode-yaml-0.5.3-beta.vsix' : 'https://github.com/redhat-developer/vscode-yaml/releases/download/0.5.3-beta/vscode-yaml.vsix',
'ms-vscode.Go-0.11.6.vsix' : 'https://github.com/microsoft/vscode-go/releases/download/0.11.6/Go-0.11.6.vsix',
'ms-vscode.Go-0.11.7.vsix' : 'https://github.com/microsoft/vscode-go/releases/download/0.11.7/Go-0.11.7.vsix',
'ms-vscode.Go-0.11.8.vsix' : 'https://github.com/microsoft/vscode-go/releases/download/0.11.8/Go-0.11.8.vsix',
'ms-mssql.mssql-1.4.0.vsix' : 'https://github.com/microsoft/vscode-mssql/releases/download/v1.4.0/mssql-1.4.0-ubuntu.16.04-x64.vsix',
'ms-mssql.mssql-1.5.0-alpha.49.vsix' : 'https://github.com/microsoft/vscode-mssql/releases/download/v1.5.0-alpha.49/mssql-1.7.0-ubuntu.16.04-x64.vsix',
'ms-vscode.powershell-2019.9.0.vsix' : 'https://github.com/PowerShell/vscode-powershell/releases/download/v2019.9.0/PowerShell-2019.9.0.vsix',
'ms-vscode.powershell-2019.11.0.vsix' : 'https://github.com/PowerShell/vscode-powershell/releases/download/v2019.11.0/PowerShell-2019.11.0.vsix',
'DotJoshJohnson.xml-2.5.0.vsix' : 'https://github.com/DotJoshJohnson/vscode-xml/releases/download/v2.5.0/xml-2.5.0.vsix',
'sburg.vscode-javascript-booster-0.11.0.vsix' : 'https://github.com/xsburg/vscode-javascript-booster/releases/download/v0.11.0/vscode-javascript-booster-0.11.0.vsix',
'formulahendry.auto-close-tag-0.5.5.vsix' : 'https://github.com/formulahendry/vscode-auto-close-tag/releases/download/0.5.5/auto-close-tag-0.5.5.vsix',
'vim-1.19.3.vsix' : 'https://github.com/VSCodeVim/Vim/releases/download/v1.19.3/vim-1.19.3.vsix',
]

tasks.register('downloadTestExtensions') {
def buildDir = rootProject.layout.buildDirectory.get().toString()
def buildLocalDir = rootProject.file('build-local').toString()

doLast {
download.run {
src "https://open-vsx.org/api/vscode/sql/1.54.1/file/vscode.sql-1.54.1.vsix"
dest "${buildDir}/test-extensions-builtin/vscode.sql-1.54.1.vsix"
}
download.run {
src "https://open-vsx.org/api/vscode/powershell/1.54.1/file/vscode.powershell-1.54.1.vsix"
dest "${buildDir}/test-extensions-builtin/vscode.powershell-1.54.1.vsix"
}
download.run {
src "https://open-vsx.org/api/vscode/docker/1.54.1/file/vscode.docker-1.54.1.vsix"
dest "${buildDir}/test-extensions-builtin/vscode.docker-1.54.1.vsix"
}
download.run {
src "https://open-vsx.org/api/vscode/yaml/1.54.1/file/vscode.yaml-1.54.1.vsix"
dest "${buildDir}/test-extensions-builtin/vscode.yaml-1.54.1.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-python/releases/download/2019.9.34911/ms-python-release.vsix"
dest "${buildDir}/test-extensions/ms-python.python-2019.9.34911.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-python/releases/download/2019.10.41019/ms-python-release.vsix"
dest "${buildDir}/test-extensions/ms-python.python-2019.10.41019.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-python/releases/download/2019.10.44104/ms-python-release.vsix"
dest "${buildDir}/test-extensions/ms-python.python-2019.10.44104.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@darwin-arm64-1.15.0.vsix"
dest "${buildDir}/test-extensions/redhat.java@darwin-arm64-1.15.0.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@darwin-x64-1.15.0.vsix"
dest "${buildDir}/test-extensions/redhat.java@darwin-x64-1.15.0.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@linux-arm64-1.15.0.vsix"
dest "${buildDir}/test-extensions/redhat.java@linux-arm64-1.15.0.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@linux-x64-1.15.0.vsix"
dest "${buildDir}/test-extensions/redhat.java@linux-x64-1.15.0.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/redhat.java@win32-x64-1.15.0.vsix"
dest "${buildDir}/test-extensions/redhat.java@win32-x64-1.15.0.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-java/releases/download/v1.15.0/java-1.15.0.vsix"
dest "${buildDir}/test-extensions/redhat.java@win32-x64-1.15.0.vsix"
}
download.run {
src "https://github.com/HookyQR/VSCodeBeautify/releases/download/v0.1.3/beautify-0.1.3.vsix"
dest "${buildDir}/test-extensions/HookyQR.beautify-0.1.3.vsix"
}
download.run {
src "https://github.com/eamodio/vscode-gitlens/releases/download/v10.0.1/gitlens-10.0.1.vsix"
dest "${buildDir}/test-extensions/eamodio.gitlens-10.0.1.vsix"
}
download.run {
src "https://github.com/eamodio/vscode-gitlens/releases/download/v10.1.0/gitlens-10.1.0.vsix"
dest "${buildDir}/test-extensions/eamodio.gitlens-10.1.0.vsix"
}
download.run {
src "https://github.com/eamodio/vscode-gitlens/releases/download/v10.1.1/gitlens-10.1.1.vsix"
dest "${buildDir}/test-extensions/eamodio.gitlens-10.1.1.vsix"
}
download.run {
src "https://github.com/vuejs/vetur/releases/download/v0.22.5/vetur-0.22.5.vsix"
dest "${buildDir}/test-extensions/octref.vetur-0.22.5.vsix"
}
download.run {
src "https://github.com/vuejs/vetur/releases/download/v0.22.6/vetur-0.22.6.vsix"
dest "${buildDir}/test-extensions/octref.vetur-0.22.6.vsix"
}
download.run {
src "https://github.com/Wscats/omi-snippets/releases/download/2.03/eno-2.0.3.vsix"
dest "${buildDir}/test-extensions/Wscats.eno-2.0.3.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-docker/releases/download/v0.8.1/vscode-docker-0.8.1.vsix"
dest "${buildDir}/test-extensions/ms-azuretools.vscode-docker-0.8.1.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-docker/releases/download/v0.8.2/vscode-docker-0.8.2.vsix"
dest "${buildDir}/test-extensions/ms-azuretools.vscode-docker-0.8.2.vsix"
}
download.run {
src "https://github.com/ritwickdey/vscode-live-server/releases/download/v5.6.1/LiveServer-v5.6.1-linux.vsix"
dest "${buildDir}/test-extensions/ritwickdey.live-server-5.6.1.vsix"
}
download.run {
src "https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.10/php-intellisense.vsix"
dest "${buildDir}/test-extensions/felixfbecker.php-intellisense-2.3.10.vsix"
}
download.run {
src "https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.11/php-intellisense.vsix"
dest "${buildDir}/test-extensions/felixfbecker.php-intellisense-2.3.11.vsix"
}
download.run {
src "https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.12/php-intellisense.vsix"
dest "${buildDir}/test-extensions/felixfbecker.php-intellisense-2.3.12.vsix"
}
download.run {
src "https://github.com/felixfbecker/vscode-php-intellisense/releases/download/v2.3.13/php-intellisense.vsix"
dest "${buildDir}/test-extensions/felixfbecker.php-intellisense-2.3.13.vsix"
}
download.run {
src "https://github.com/formulahendry/vscode-code-runner/releases/download/0.9.14/code-runner-0.9.14.vsix"
dest "${buildDir}/test-extensions/formulahendry.code-runner-0.9.14.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-yaml/releases/download/0.4.0/redhat.vscode-yaml-0.4.0.vsix"
dest "${buildDir}/test-extensions/redhat.vscode-yaml-0.4.0.vsix"
}
download.run {
src "https://github.com/redhat-developer/vscode-yaml/releases/download/0.5.3-beta/vscode-yaml.vsix"
dest "${buildDir}/test-extensions/redhat.vscode-yaml-0.5.3-beta.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-go/releases/download/0.11.6/Go-0.11.6.vsix"
dest "${buildDir}/test-extensions/ms-vscode.Go-0.11.6.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-go/releases/download/0.11.7/Go-0.11.7.vsix"
dest "${buildDir}/test-extensions/ms-vscode.Go-0.11.7.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-go/releases/download/0.11.8/Go-0.11.8.vsix"
dest "${buildDir}/test-extensions/ms-vscode.Go-0.11.8.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-mssql/releases/download/v1.4.0/mssql-1.4.0-ubuntu.16.04-x64.vsix"
dest "${buildDir}/test-extensions/ms-mssql.mssql-1.4.0.vsix"
}
download.run {
src "https://github.com/microsoft/vscode-mssql/releases/download/v1.5.0-alpha.49/mssql-1.7.0-ubuntu.16.04-x64.vsix"
dest "${buildDir}/test-extensions/ms-mssql.mssql-1.5.0-alpha.49.vsix"
}
download.run {
src "https://github.com/PowerShell/vscode-powershell/releases/download/v2019.9.0/PowerShell-2019.9.0.vsix"
dest "${buildDir}/test-extensions/ms-vscode.powershell-2019.9.0.vsix"
}
download.run {
src "https://github.com/PowerShell/vscode-powershell/releases/download/v2019.11.0/PowerShell-2019.11.0.vsix"
dest "${buildDir}/test-extensions/ms-vscode.powershell-2019.11.0.vsix"
}
download.run {
src "https://github.com/DotJoshJohnson/vscode-xml/releases/download/v2.5.0/xml-2.5.0.vsix"
dest "${buildDir}/test-extensions/DotJoshJohnson.xml-2.5.0.vsix"
}
download.run {
src "https://github.com/xsburg/vscode-javascript-booster/releases/download/v0.11.0/vscode-javascript-booster-0.11.0.vsix"
dest "${buildDir}/test-extensions/sburg.vscode-javascript-booster-0.11.0.vsix"
}
download.run {
src "https://github.com/formulahendry/vscode-auto-close-tag/releases/download/0.5.5/auto-close-tag-0.5.5.vsix"
dest "${buildDir}/test-extensions/formulahendry.auto-close-tag-0.5.5.vsix"
}
download.run {
src "https://github.com/VSCodeVim/Vim/releases/download/v1.19.3/vim-1.19.3.vsix"
dest "${buildDir}/test-extensions/vim-1.19.3.vsix"
builtinExtensions.each { name, url ->
download.run {
src url
dest "${buildLocalDir}/test-extensions-builtin/${name}"
}
}
testExtensions.each { name, url ->
download.run {
src url
dest "${buildLocalDir}/test-extensions/${name}"
}
}
}
}