From fbd357d86ec0e6b84438ceadc6bb8b4f81857b80 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 3 Feb 2021 15:27:39 +0200 Subject: [PATCH 001/157] test action Signed-off-by: svor --- .../vscode-extension-tests-check.yaml | 27 +++++++++++++++++++ che-theia-plugins.yaml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/vscode-extension-tests-check.yaml diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml new file mode 100644 index 0000000000..f184fa8ccb --- /dev/null +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -0,0 +1,27 @@ +# +# Copyright (c) 2021 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# + +# che-plugin-registry VSCode extension's tests workflow +# matrix jobs with alpine and ubi8 +name: VSCode Extension's Tests + +on: + push: + paths: + - 'che-theia-plugins.yaml' + +jobs: + # check EOF newline + extension-tests: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index c82d1c67be..7c7a613b05 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -2,7 +2,7 @@ version: 1.0.0 plugins: - repository: url: 'https://github.com/DonJayamanne/gitHistoryVSCode' - revision: v0.6.14 + revision: v0.6.141 extensions: - >- https://github.com/DonJayamanne/gitHistoryVSCode/releases/download/v0.6.14/githistory-0.6.14.vsix From a6c4fc1d1dcd237cb6f9463c2e4cc2ff75fa4203 Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Wed, 3 Feb 2021 15:36:06 +0200 Subject: [PATCH 002/157] Update vscode-extension-tests-check.yaml --- .github/workflows/vscode-extension-tests-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index f184fa8ccb..c1d8ba58de 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -25,3 +25,4 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} From b8e18cd85756cb31873ae273ac3a1b20ae618a61 Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Wed, 3 Feb 2021 15:58:18 +0200 Subject: [PATCH 003/157] Update vscode-extension-tests-check.yaml --- .github/workflows/vscode-extension-tests-check.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index c1d8ba58de..ece4615532 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -26,3 +26,7 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} + - name: Catch changes + run: | + sudo pip install yq + echo $(git --no-pager diff --name-only HEAD "$(git merge-base HEAD origin/master)") From e1264498f7fccb2af005fa84868b8eb236a0978f Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Wed, 3 Feb 2021 16:10:27 +0200 Subject: [PATCH 004/157] Update vscode-extension-tests-check.yaml --- .github/workflows/vscode-extension-tests-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index ece4615532..09162edfaf 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -15,6 +15,7 @@ on: push: paths: - 'che-theia-plugins.yaml' + - '.github/workflows/vscode-extension-tests-check.yaml' jobs: # check EOF newline From 5b49311cab7a6b79ddcf1d1d2669a7891d67b92f Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Wed, 3 Feb 2021 16:13:50 +0200 Subject: [PATCH 005/157] Update vscode-extension-tests-check.yaml --- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 09162edfaf..fa0a8be9d9 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -30,4 +30,4 @@ jobs: - name: Catch changes run: | sudo pip install yq - echo $(git --no-pager diff --name-only HEAD "$(git merge-base HEAD origin/master)") + echo $(git diff -U0 che-theia-plugins.yaml HEAD "$(git merge-base HEAD origin/master)") From 36232031821ca998134b586bd4a97e99a239cdfd Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Wed, 3 Feb 2021 16:16:09 +0200 Subject: [PATCH 006/157] Update vscode-extension-tests-check.yaml --- .github/workflows/vscode-extension-tests-check.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index fa0a8be9d9..1ebfba6ada 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -31,3 +31,5 @@ jobs: run: | sudo pip install yq echo $(git diff -U0 che-theia-plugins.yaml HEAD "$(git merge-base HEAD origin/master)") + ls + pwd From e697af4d2cd1b6e4e42b2b36e9767c759cdb9832 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 4 Feb 2021 15:10:07 +0200 Subject: [PATCH 007/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 37 +++++++++++ .../vscode-extension-tests-check.yaml | 61 ++++++++++++++++++- 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100755 .ci/prepare-extension-project.sh diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh new file mode 100755 index 0000000000..510f8699e5 --- /dev/null +++ b/.ci/prepare-extension-project.sh @@ -0,0 +1,37 @@ +#!/bin/bash +# Copyright (c) 2021 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation + +set -e + +function findRepositoryDetails() { + export YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" + export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPOSITORY "$YAML_EXTENSION_REPOSITORY" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPOSITORY) | .repository.revision' che-theia-plugins.yaml) + echo $YAML_EXTENSION_REPO + echo $YAML_EXTENSION_REPO_REVISION +} + +function cloneExtension() { + export YAML_EXTENSION_PROJECT_NAME=$(basename "$YAML_EXTENSION_REPO") + mkdir -p /tmp/projects/$YAML_EXTENSION_PROJECT_NAME + git clone ${YAML_EXTENSION_REPO} /tmp/projects/$YAML_EXTENSION_PROJECT_NAME + cd /tmp/projects/$YAML_EXTENSION_PROJECT_NAME + git checkout tags/${YAML_EXTENSION_REPO_REVISION} + git status +} + +function buildProject() { + yarn install + yarn build +} + +findRepositoryDetails +cloneExtension +buildProject diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index f184fa8ccb..34de9d7cd5 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -15,9 +15,9 @@ on: push: paths: - 'che-theia-plugins.yaml' + - '.github/workflows/vscode-extension-tests-check.yaml' jobs: - # check EOF newline extension-tests: runs-on: ubuntu-20.04 steps: @@ -25,3 +25,62 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - uses: actions/setup-node@v1 + with: + node-version: '12' + + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + + - uses: actions/cache@v2 + name: Cache yarn dependencies + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - uses: actions/cache@v2 + name: Cache vsix dependencies + id: download-unpacked-cache + with: + path: | + /tmp/che-plugin-registry/download-folder + /tmp/che-plugin-registry/unpack-folder + key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} + restore-keys: | + download-unpacked-cache- + + - name: image-build + run: | + export SKIP_FORMAT=true + export SKIP_LINT=true + export SKIP_TEST=true + docker pull quay.io/eclipse/che-plugin-registry:nightly + BUILDER=docker ./build.sh --tag happy-path + + # save locally built image + docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + - name: Start minikube + id: run-minikube + uses: che-incubator/setup-minikube-action@next + - name: load-image-minikube-registry + id: load-image-minikube-registry + run: | + # load image in the docker registry + eval $(minikube docker-env) + docker load --input=docker-image.tar + # display images + docker images + - name: Deploy Eclipse Che + id: deploy-che + uses: che-incubator/che-deploy-action@next + with: + # use custom image built by this PR + plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + - name: Prepare project + run: | + ./.ci/prepare-extension-project.sh From b0d927eca602ad80b7046553a931086c37797ef9 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 4 Feb 2021 15:26:25 +0200 Subject: [PATCH 008/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 ++ .github/workflows/vscode-extension-tests-check.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 510f8699e5..e4c970e243 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -35,3 +35,5 @@ function buildProject() { findRepositoryDetails cloneExtension buildProject + +chectl --version diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 34de9d7cd5..2a435b1d94 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -83,4 +83,5 @@ jobs: plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | + sudo pip install yq ./.ci/prepare-extension-project.sh From a4fd6432d0a59fde258edb0c6673cb3feff85b9d Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 4 Feb 2021 15:49:04 +0200 Subject: [PATCH 009/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 + .../vscode-extension-tests-check.yaml | 94 +++++++++---------- 2 files changed, 51 insertions(+), 47 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index e4c970e243..85f263b37a 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -12,6 +12,10 @@ set -e function findRepositoryDetails() { + ls + pwd + git --version + yq --version export YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPOSITORY "$YAML_EXTENSION_REPOSITORY" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPOSITORY) | .repository.revision' che-theia-plugins.yaml) echo $YAML_EXTENSION_REPO diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 2a435b1d94..0758234d54 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -30,57 +30,57 @@ jobs: with: node-version: '12' - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - name: Cache yarn dependencies - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + # - uses: actions/cache@v2 + # name: Cache yarn dependencies + # id: yarn-cache + # with: + # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- - - uses: actions/cache@v2 - name: Cache vsix dependencies - id: download-unpacked-cache - with: - path: | - /tmp/che-plugin-registry/download-folder - /tmp/che-plugin-registry/unpack-folder - key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} - restore-keys: | - download-unpacked-cache- + # - uses: actions/cache@v2 + # name: Cache vsix dependencies + # id: download-unpacked-cache + # with: + # path: | + # /tmp/che-plugin-registry/download-folder + # /tmp/che-plugin-registry/unpack-folder + # key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} + # restore-keys: | + # download-unpacked-cache- - - name: image-build - run: | - export SKIP_FORMAT=true - export SKIP_LINT=true - export SKIP_TEST=true - docker pull quay.io/eclipse/che-plugin-registry:nightly - BUILDER=docker ./build.sh --tag happy-path + # - name: image-build + # run: | + # export SKIP_FORMAT=true + # export SKIP_LINT=true + # export SKIP_TEST=true + # docker pull quay.io/eclipse/che-plugin-registry:nightly + # BUILDER=docker ./build.sh --tag happy-path - # save locally built image - docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - - name: Start minikube - id: run-minikube - uses: che-incubator/setup-minikube-action@next - - name: load-image-minikube-registry - id: load-image-minikube-registry - run: | - # load image in the docker registry - eval $(minikube docker-env) - docker load --input=docker-image.tar - # display images - docker images - - name: Deploy Eclipse Che - id: deploy-che - uses: che-incubator/che-deploy-action@next - with: - # use custom image built by this PR - plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + # # save locally built image + # docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + # - name: Start minikube + # id: run-minikube + # uses: che-incubator/setup-minikube-action@next + # - name: load-image-minikube-registry + # id: load-image-minikube-registry + # run: | + # # load image in the docker registry + # eval $(minikube docker-env) + # docker load --input=docker-image.tar + # # display images + # docker images + # - name: Deploy Eclipse Che + # id: deploy-che + # uses: che-incubator/che-deploy-action@next + # with: + # # use custom image built by this PR + # plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | sudo pip install yq From 113885f010a7c9ad265c1eb0323060f5f3e619b4 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 4 Feb 2021 15:54:21 +0200 Subject: [PATCH 010/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 85f263b37a..96797b3e07 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -12,12 +12,8 @@ set -e function findRepositoryDetails() { - ls - pwd - git --version - yq --version export YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" - export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPOSITORY "$YAML_EXTENSION_REPOSITORY" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPOSITORY) | .repository.revision' che-theia-plugins.yaml) + export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) echo $YAML_EXTENSION_REPO echo $YAML_EXTENSION_REPO_REVISION } From d1ab956267aa8474c8fa5e326fe57977e3c4dc1b Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 4 Feb 2021 15:55:25 +0200 Subject: [PATCH 011/157] update action Signed-off-by: svor --- .../vscode-extension-tests-check.yaml | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 0758234d54..2a435b1d94 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -30,57 +30,57 @@ jobs: with: node-version: '12' - # - name: Get yarn cache directory path - # id: yarn-cache-dir-path - # run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" - # - uses: actions/cache@v2 - # name: Cache yarn dependencies - # id: yarn-cache - # with: - # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - # restore-keys: | - # ${{ runner.os }}-yarn- + - uses: actions/cache@v2 + name: Cache yarn dependencies + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - # - uses: actions/cache@v2 - # name: Cache vsix dependencies - # id: download-unpacked-cache - # with: - # path: | - # /tmp/che-plugin-registry/download-folder - # /tmp/che-plugin-registry/unpack-folder - # key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} - # restore-keys: | - # download-unpacked-cache- + - uses: actions/cache@v2 + name: Cache vsix dependencies + id: download-unpacked-cache + with: + path: | + /tmp/che-plugin-registry/download-folder + /tmp/che-plugin-registry/unpack-folder + key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} + restore-keys: | + download-unpacked-cache- - # - name: image-build - # run: | - # export SKIP_FORMAT=true - # export SKIP_LINT=true - # export SKIP_TEST=true - # docker pull quay.io/eclipse/che-plugin-registry:nightly - # BUILDER=docker ./build.sh --tag happy-path + - name: image-build + run: | + export SKIP_FORMAT=true + export SKIP_LINT=true + export SKIP_TEST=true + docker pull quay.io/eclipse/che-plugin-registry:nightly + BUILDER=docker ./build.sh --tag happy-path - # # save locally built image - # docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - # - name: Start minikube - # id: run-minikube - # uses: che-incubator/setup-minikube-action@next - # - name: load-image-minikube-registry - # id: load-image-minikube-registry - # run: | - # # load image in the docker registry - # eval $(minikube docker-env) - # docker load --input=docker-image.tar - # # display images - # docker images - # - name: Deploy Eclipse Che - # id: deploy-che - # uses: che-incubator/che-deploy-action@next - # with: - # # use custom image built by this PR - # plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + # save locally built image + docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + - name: Start minikube + id: run-minikube + uses: che-incubator/setup-minikube-action@next + - name: load-image-minikube-registry + id: load-image-minikube-registry + run: | + # load image in the docker registry + eval $(minikube docker-env) + docker load --input=docker-image.tar + # display images + docker images + - name: Deploy Eclipse Che + id: deploy-che + uses: che-incubator/che-deploy-action@next + with: + # use custom image built by this PR + plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | sudo pip install yq From b58cc0451213c12914424934d456eaa514ff5291 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 10:18:13 +0200 Subject: [PATCH 012/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 + .../vscode-extension-tests-check.yaml | 94 +++++++++---------- 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 96797b3e07..a3fdfec479 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -37,3 +37,4 @@ cloneExtension buildProject chectl --version +env diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 2a435b1d94..0758234d54 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -30,57 +30,57 @@ jobs: with: node-version: '12' - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - name: Cache yarn dependencies - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + # - uses: actions/cache@v2 + # name: Cache yarn dependencies + # id: yarn-cache + # with: + # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- - - uses: actions/cache@v2 - name: Cache vsix dependencies - id: download-unpacked-cache - with: - path: | - /tmp/che-plugin-registry/download-folder - /tmp/che-plugin-registry/unpack-folder - key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} - restore-keys: | - download-unpacked-cache- + # - uses: actions/cache@v2 + # name: Cache vsix dependencies + # id: download-unpacked-cache + # with: + # path: | + # /tmp/che-plugin-registry/download-folder + # /tmp/che-plugin-registry/unpack-folder + # key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} + # restore-keys: | + # download-unpacked-cache- - - name: image-build - run: | - export SKIP_FORMAT=true - export SKIP_LINT=true - export SKIP_TEST=true - docker pull quay.io/eclipse/che-plugin-registry:nightly - BUILDER=docker ./build.sh --tag happy-path + # - name: image-build + # run: | + # export SKIP_FORMAT=true + # export SKIP_LINT=true + # export SKIP_TEST=true + # docker pull quay.io/eclipse/che-plugin-registry:nightly + # BUILDER=docker ./build.sh --tag happy-path - # save locally built image - docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - - name: Start minikube - id: run-minikube - uses: che-incubator/setup-minikube-action@next - - name: load-image-minikube-registry - id: load-image-minikube-registry - run: | - # load image in the docker registry - eval $(minikube docker-env) - docker load --input=docker-image.tar - # display images - docker images - - name: Deploy Eclipse Che - id: deploy-che - uses: che-incubator/che-deploy-action@next - with: - # use custom image built by this PR - plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + # # save locally built image + # docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + # - name: Start minikube + # id: run-minikube + # uses: che-incubator/setup-minikube-action@next + # - name: load-image-minikube-registry + # id: load-image-minikube-registry + # run: | + # # load image in the docker registry + # eval $(minikube docker-env) + # docker load --input=docker-image.tar + # # display images + # docker images + # - name: Deploy Eclipse Che + # id: deploy-che + # uses: che-incubator/che-deploy-action@next + # with: + # # use custom image built by this PR + # plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | sudo pip install yq From 6afb76d971dfd67be1e42a5c1686e4c6c7bd2a84 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 10:22:52 +0200 Subject: [PATCH 013/157] update action Signed-off-by: svor --- .../vscode-extension-tests-check.yaml | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 0758234d54..2a435b1d94 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -30,57 +30,57 @@ jobs: with: node-version: '12' - # - name: Get yarn cache directory path - # id: yarn-cache-dir-path - # run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" - # - uses: actions/cache@v2 - # name: Cache yarn dependencies - # id: yarn-cache - # with: - # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - # restore-keys: | - # ${{ runner.os }}-yarn- + - uses: actions/cache@v2 + name: Cache yarn dependencies + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - # - uses: actions/cache@v2 - # name: Cache vsix dependencies - # id: download-unpacked-cache - # with: - # path: | - # /tmp/che-plugin-registry/download-folder - # /tmp/che-plugin-registry/unpack-folder - # key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} - # restore-keys: | - # download-unpacked-cache- + - uses: actions/cache@v2 + name: Cache vsix dependencies + id: download-unpacked-cache + with: + path: | + /tmp/che-plugin-registry/download-folder + /tmp/che-plugin-registry/unpack-folder + key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} + restore-keys: | + download-unpacked-cache- - # - name: image-build - # run: | - # export SKIP_FORMAT=true - # export SKIP_LINT=true - # export SKIP_TEST=true - # docker pull quay.io/eclipse/che-plugin-registry:nightly - # BUILDER=docker ./build.sh --tag happy-path + - name: image-build + run: | + export SKIP_FORMAT=true + export SKIP_LINT=true + export SKIP_TEST=true + docker pull quay.io/eclipse/che-plugin-registry:nightly + BUILDER=docker ./build.sh --tag happy-path - # # save locally built image - # docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - # - name: Start minikube - # id: run-minikube - # uses: che-incubator/setup-minikube-action@next - # - name: load-image-minikube-registry - # id: load-image-minikube-registry - # run: | - # # load image in the docker registry - # eval $(minikube docker-env) - # docker load --input=docker-image.tar - # # display images - # docker images - # - name: Deploy Eclipse Che - # id: deploy-che - # uses: che-incubator/che-deploy-action@next - # with: - # # use custom image built by this PR - # plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + # save locally built image + docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + - name: Start minikube + id: run-minikube + uses: che-incubator/setup-minikube-action@next + - name: load-image-minikube-registry + id: load-image-minikube-registry + run: | + # load image in the docker registry + eval $(minikube docker-env) + docker load --input=docker-image.tar + # display images + docker images + - name: Deploy Eclipse Che + id: deploy-che + uses: che-incubator/che-deploy-action@next + with: + # use custom image built by this PR + plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | sudo pip install yq From 3afacbdebd75c526ae6a74830eba94dd88ec1e96 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 11:49:00 +0200 Subject: [PATCH 014/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- .github/workflows/vscode-extension-tests-check.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index a3fdfec479..5f4a7832c8 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -37,4 +37,4 @@ cloneExtension buildProject chectl --version -env +chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 2a435b1d94..3439cfa461 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -16,7 +16,6 @@ on: paths: - 'che-theia-plugins.yaml' - '.github/workflows/vscode-extension-tests-check.yaml' - jobs: extension-tests: runs-on: ubuntu-20.04 From e244e90e8427ac8feb7f4d6299d3623eee04de17 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 12:24:53 +0200 Subject: [PATCH 015/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 10 +++++++--- .github/workflows/vscode-extension-tests-check.yaml | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 5f4a7832c8..7b25b5d193 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -32,9 +32,13 @@ function buildProject() { yarn build } +function createWorkspace() { + chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt + WORKSPACE_URL=$(tail -n 1 workspace_url.txt) + echo "$WORKSPACE_URL" +} + findRepositoryDetails cloneExtension buildProject - -chectl --version -chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml +createWorkspace diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 3439cfa461..ebbc2f8a7c 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -16,6 +16,7 @@ on: paths: - 'che-theia-plugins.yaml' - '.github/workflows/vscode-extension-tests-check.yaml' + - '.ci/prepare-extension-project.sh' jobs: extension-tests: runs-on: ubuntu-20.04 From 2551902b2b4f987a9c3727f14b0e2a94f727ae17 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 14:39:24 +0200 Subject: [PATCH 016/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 7b25b5d193..b74da1de18 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -35,7 +35,17 @@ function buildProject() { function createWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt WORKSPACE_URL=$(tail -n 1 workspace_url.txt) - echo "$WORKSPACE_URL" + echo "$WORKSPACE_URL" + pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) + while [ "$pods" == 'No resources found.' ]; + do + echo "No pod found with che.workspace_id" + echo "Current available pods are" + kubectl get pod -n eclipse-che + kubectl get pod -n eclipse-che -l che.workspace_id + sleep 10 + pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) + done } findRepositoryDetails From df43c610612106ef00442b1be4822ee53510289a Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 14:55:35 +0200 Subject: [PATCH 017/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index b74da1de18..ee387e6403 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -36,7 +36,11 @@ function createWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" + kubectl get pod -n eclipse-che --field-selector=status.phase==Running + echo "-------" + kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) + echo "pods = $pods" while [ "$pods" == 'No resources found.' ]; do echo "No pod found with che.workspace_id" From 114e35fac3287db5e95d4c3f585f6c4b17fef8da Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 15:07:11 +0200 Subject: [PATCH 018/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index ee387e6403..eb446516c4 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -41,7 +41,7 @@ function createWorkspace() { kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) echo "pods = $pods" - while [ "$pods" == 'No resources found.' ]; + while [ "$pods" == 'No resources found in eclipse-che namespace.' ]; do echo "No pod found with che.workspace_id" echo "Current available pods are" From e500f706dad061307bb9d5919b35421530a53e8b Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 15:29:26 +0200 Subject: [PATCH 019/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index eb446516c4..5f7d2298a7 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -36,20 +36,30 @@ function createWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" - kubectl get pod -n eclipse-che --field-selector=status.phase==Running + echo "-------" - kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) - echo "pods = $pods" + echo "$pods" while [ "$pods" == 'No resources found in eclipse-che namespace.' ]; do - echo "No pod found with che.workspace_id" - echo "Current available pods are" - kubectl get pod -n eclipse-che + echo "Workspace is not ready" kubectl get pod -n eclipse-che -l che.workspace_id sleep 10 pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) - done + done + + kubectl get pods -n eclipse-che -l che.workspace_id + + ### Now we need to wait until we see some arguments in the output of the theia pod + ### Once we see this correct output then we can proceed by running cat on the created file + ### that lives in the workspace + workspace_name=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.name' | tr -d \") + theia_ide_container_name=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.annotations[]' | grep -P "theia-ide" | tr -d \") + + echo "Workspace name is: " + echo "$workspace_name" + echo "Theia IDE Container Name is: " + echo "$theia_ide_container_name" } findRepositoryDetails From 9f1ddb73dcd8664e185e008c3e7eae5d23cd04fd Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 22:01:32 +0200 Subject: [PATCH 020/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 5f7d2298a7..02be63bf27 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -11,6 +11,8 @@ set -e +export CHE_NAMESPACE="eclipse-che" + function findRepositoryDetails() { export YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) @@ -38,28 +40,33 @@ function createWorkspace() { echo "$WORKSPACE_URL" echo "-------" - pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) + pods=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id --field-selector=status.phase==Running 2>&1) echo "$pods" - while [ "$pods" == 'No resources found in eclipse-che namespace.' ]; + while [ "$pods" == 'No resources found in $CHE_NAMESPACE namespace.' ]; do echo "Workspace is not ready" kubectl get pod -n eclipse-che -l che.workspace_id sleep 10 - pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) + pods=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id --field-selector=status.phase==Running 2>&1) done - kubectl get pods -n eclipse-che -l che.workspace_id + kubectl get pods -n $CHE_NAMESPACE -l che.workspace_id - ### Now we need to wait until we see some arguments in the output of the theia pod - ### Once we see this correct output then we can proceed by running cat on the created file - ### that lives in the workspace - workspace_name=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.name' | tr -d \") - theia_ide_container_name=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.annotations[]' | grep -P "theia-ide" | tr -d \") + ### Find workspace name and theia-ide container + WORKSPACE_NAME=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id -o json | jq '.items[0].metadata.name' | tr -d \") + THEIA_IDE_CONTAINER_NAME=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id -o json | jq '.items[0].metadata.annotations[]' | grep -P "theia-ide" | tr -d \") echo "Workspace name is: " - echo "$workspace_name" + echo "$WORKSPACE_NAME" echo "Theia IDE Container Name is: " - echo "$theia_ide_container_name" + echo "$THEIA_IDE_CONTAINER_NAME" + + ### Copy extension's sources into theia container + kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME "${CHE_NAMESPACE}"/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME + ### Check if copy + kubectl cp "${CHE_NAMESPACE}"/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME + echo "----- Check content of package.json --------" + cat /tmp/package.json } findRepositoryDetails From 93fc1dc397c853800791252bfdaeff497f545932 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 22:17:21 +0200 Subject: [PATCH 021/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 02be63bf27..d8b06ce4df 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -11,8 +11,6 @@ set -e -export CHE_NAMESPACE="eclipse-che" - function findRepositoryDetails() { export YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) @@ -40,31 +38,31 @@ function createWorkspace() { echo "$WORKSPACE_URL" echo "-------" - pods=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id --field-selector=status.phase==Running 2>&1) + pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) echo "$pods" - while [ "$pods" == 'No resources found in $CHE_NAMESPACE namespace.' ]; + while [ "$pods" == 'No resources found in eclipse-che namespace.' ]; do echo "Workspace is not ready" kubectl get pod -n eclipse-che -l che.workspace_id sleep 10 - pods=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id --field-selector=status.phase==Running 2>&1) + pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) done - kubectl get pods -n $CHE_NAMESPACE -l che.workspace_id + kubectl get pods -n eclipse-che -l che.workspace_id ### Find workspace name and theia-ide container - WORKSPACE_NAME=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id -o json | jq '.items[0].metadata.name' | tr -d \") - THEIA_IDE_CONTAINER_NAME=$(kubectl get pod -n $CHE_NAMESPACE -l che.workspace_id -o json | jq '.items[0].metadata.annotations[]' | grep -P "theia-ide" | tr -d \") + WORKSPACE_NAME=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.name' | tr -d \") + THEIA_IDE_CONTAINER_NAME=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.annotations[]' | grep -P "theia-ide" | tr -d \") echo "Workspace name is: " echo "$WORKSPACE_NAME" echo "Theia IDE Container Name is: " echo "$THEIA_IDE_CONTAINER_NAME" - ### Copy extension's sources into theia container - kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME "${CHE_NAMESPACE}"/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME + ### Copy extension's sources into theia container + kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME ### Check if copy - kubectl cp "${CHE_NAMESPACE}"/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME + kubectl cp eclipse-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME echo "----- Check content of package.json --------" cat /tmp/package.json } From 0645553382b3fae5280b7822ffddbdd196a2f8f0 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 22:54:05 +0200 Subject: [PATCH 022/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index d8b06ce4df..0eacc38994 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -59,7 +59,12 @@ function createWorkspace() { echo "Theia IDE Container Name is: " echo "$THEIA_IDE_CONTAINER_NAME" - ### Copy extension's sources into theia container + # Start the python3 selenium script that will connect to the workspace to run tests + python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" + sleep 20 + cat geckodriver.log + + ### Copy extension's sources into theia container kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME ### Check if copy kubectl cp eclipse-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME From 1ad5e554ab6445cd8e253aded5b198aeaba3478c Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 23:18:15 +0200 Subject: [PATCH 023/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 18 +++++++++--------- .../vscode-extension-tests-check.yaml | 5 ++++- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 0eacc38994..26e3e6e93f 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -60,16 +60,16 @@ function createWorkspace() { echo "$THEIA_IDE_CONTAINER_NAME" # Start the python3 selenium script that will connect to the workspace to run tests - python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 - cat geckodriver.log + # python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" + # sleep 20 + # cat geckodriver.log - ### Copy extension's sources into theia container - kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME - ### Check if copy - kubectl cp eclipse-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME - echo "----- Check content of package.json --------" - cat /tmp/package.json + # ### Copy extension's sources into theia container + # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME + # ### Check if copy + # kubectl cp eclipse-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME + # echo "----- Check content of package.json --------" + # cat /tmp/package.json } findRepositoryDetails diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index ebbc2f8a7c..07dd9bf96a 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -83,5 +83,8 @@ jobs: plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | - sudo pip install yq ./.ci/prepare-extension-project.sh + sudo pip install yq + - name: Open workspace + run: | + python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From d0fefa0e1847ca748ca5beda7d75af23fd48bd22 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 5 Feb 2021 23:32:20 +0200 Subject: [PATCH 024/157] update action Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 07dd9bf96a..e2e439184a 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -83,8 +83,8 @@ jobs: plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | - ./.ci/prepare-extension-project.sh sudo pip install yq + ./.ci/prepare-extension-project.sh - name: Open workspace run: | python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From 3de05a40c4ac08b440772267d01fb03f5d8651d3 Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 00:05:27 +0200 Subject: [PATCH 025/157] update action Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index e2e439184a..d8b4359441 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -87,4 +87,5 @@ jobs: ./.ci/prepare-extension-project.sh - name: Open workspace run: | + sudo pip install selenium python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From 59d62cf80181e318a0badacceddc868e8d1ff418 Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 00:13:44 +0200 Subject: [PATCH 026/157] update action Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index d8b4359441..1f861a267e 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -84,8 +84,10 @@ jobs: - name: Prepare project run: | sudo pip install yq + sudo pip install selenium ./.ci/prepare-extension-project.sh + - name: Setup selenium + uses: browser-actions/setup-geckodriver@latest - name: Open workspace run: | - sudo pip install selenium python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From 0da9df1f34061a4effe54c99167868233e13f238 Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 00:36:28 +0200 Subject: [PATCH 027/157] update action Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 1f861a267e..96ea6ff722 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -87,7 +87,8 @@ jobs: sudo pip install selenium ./.ci/prepare-extension-project.sh - name: Setup selenium - uses: browser-actions/setup-geckodriver@latest + uses: browser-actions/setup-geckodriver@latest + run: geckodriver --version - name: Open workspace run: | python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From 57a21e796c3af778a48479694038ea7c2d1a835b Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 00:47:53 +0200 Subject: [PATCH 028/157] update action Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 96ea6ff722..f00d608458 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -87,8 +87,8 @@ jobs: sudo pip install selenium ./.ci/prepare-extension-project.sh - name: Setup selenium - uses: browser-actions/setup-geckodriver@latest - run: geckodriver --version + uses: browser-actions/setup-geckodriver@latest - name: Open workspace run: | + geckodriver --version python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From 083865380e9d9be088d53ed491f38a860594b8ec Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 09:56:27 +0200 Subject: [PATCH 029/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 +- .github/workflows/vscode-extension-tests-check.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index f49cd4af4a..8e8824f182 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -23,7 +23,7 @@ NEW_USER="admin" -browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") +browser = webdriver.Firefox(options=options, executable_path=sys.argv[2]) wait = WebDriverWait(browser, 30) browser.get(sys.argv[1]) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index f00d608458..189b853e14 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -91,4 +91,5 @@ jobs: - name: Open workspace run: | geckodriver --version - python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" + python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" "$(which geckodriver)" + env | grep GECKODRIVER From 9302c6ecd79d16a3255cc94c05c1a18d161be8c1 Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 10:14:03 +0200 Subject: [PATCH 030/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 +- .../vscode-extension-tests-check.yaml | 107 +++++++++--------- 2 files changed, 56 insertions(+), 53 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 8e8824f182..f49cd4af4a 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -23,7 +23,7 @@ NEW_USER="admin" -browser = webdriver.Firefox(options=options, executable_path=sys.argv[2]) +browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") wait = WebDriverWait(browser, 30) browser.get(sys.argv[1]) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 189b853e14..b8d9671291 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -30,66 +30,69 @@ jobs: with: node-version: '12' - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - name: Cache yarn dependencies - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + # - uses: actions/cache@v2 + # name: Cache yarn dependencies + # id: yarn-cache + # with: + # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- - - uses: actions/cache@v2 - name: Cache vsix dependencies - id: download-unpacked-cache - with: - path: | - /tmp/che-plugin-registry/download-folder - /tmp/che-plugin-registry/unpack-folder - key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} - restore-keys: | - download-unpacked-cache- + # - uses: actions/cache@v2 + # name: Cache vsix dependencies + # id: download-unpacked-cache + # with: + # path: | + # /tmp/che-plugin-registry/download-folder + # /tmp/che-plugin-registry/unpack-folder + # key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} + # restore-keys: | + # download-unpacked-cache- - - name: image-build - run: | - export SKIP_FORMAT=true - export SKIP_LINT=true - export SKIP_TEST=true - docker pull quay.io/eclipse/che-plugin-registry:nightly - BUILDER=docker ./build.sh --tag happy-path + # - name: image-build + # run: | + # export SKIP_FORMAT=true + # export SKIP_LINT=true + # export SKIP_TEST=true + # docker pull quay.io/eclipse/che-plugin-registry:nightly + # BUILDER=docker ./build.sh --tag happy-path - # save locally built image - docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - - name: Start minikube - id: run-minikube - uses: che-incubator/setup-minikube-action@next - - name: load-image-minikube-registry - id: load-image-minikube-registry - run: | - # load image in the docker registry - eval $(minikube docker-env) - docker load --input=docker-image.tar - # display images - docker images - - name: Deploy Eclipse Che - id: deploy-che - uses: che-incubator/che-deploy-action@next - with: - # use custom image built by this PR - plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + # # save locally built image + # docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + # - name: Start minikube + # id: run-minikube + # uses: che-incubator/setup-minikube-action@next + # - name: load-image-minikube-registry + # id: load-image-minikube-registry + # run: | + # # load image in the docker registry + # eval $(minikube docker-env) + # docker load --input=docker-image.tar + # # display images + # docker images + # - name: Deploy Eclipse Che + # id: deploy-che + # uses: che-incubator/che-deploy-action@next + # with: + # # use custom image built by this PR + # plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | sudo pip install yq sudo pip install selenium - ./.ci/prepare-extension-project.sh - - name: Setup selenium - uses: browser-actions/setup-geckodriver@latest + wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz + tar -xvzf geckodriver* + chmod +x geckodriver + sudo mv geckodriver /usr/local/bin/ + geckodriver --version + which geckodriver + ./.ci/prepare-extension-project.sh - name: Open workspace run: | geckodriver --version - python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" "$(which geckodriver)" - env | grep GECKODRIVER + python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From 5c2c5b510304e281ba96b63262ebc16342f6611c Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 10:18:11 +0200 Subject: [PATCH 031/157] update action Signed-off-by: svor --- .../vscode-extension-tests-check.yaml | 96 +++++++++---------- 1 file changed, 47 insertions(+), 49 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index b8d9671291..5db16a73bd 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -30,57 +30,57 @@ jobs: with: node-version: '12' - # - name: Get yarn cache directory path - # id: yarn-cache-dir-path - # run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" - # - uses: actions/cache@v2 - # name: Cache yarn dependencies - # id: yarn-cache - # with: - # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - # restore-keys: | - # ${{ runner.os }}-yarn- + - uses: actions/cache@v2 + name: Cache yarn dependencies + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - # - uses: actions/cache@v2 - # name: Cache vsix dependencies - # id: download-unpacked-cache - # with: - # path: | - # /tmp/che-plugin-registry/download-folder - # /tmp/che-plugin-registry/unpack-folder - # key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} - # restore-keys: | - # download-unpacked-cache- + - uses: actions/cache@v2 + name: Cache vsix dependencies + id: download-unpacked-cache + with: + path: | + /tmp/che-plugin-registry/download-folder + /tmp/che-plugin-registry/unpack-folder + key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} + restore-keys: | + download-unpacked-cache- - # - name: image-build - # run: | - # export SKIP_FORMAT=true - # export SKIP_LINT=true - # export SKIP_TEST=true - # docker pull quay.io/eclipse/che-plugin-registry:nightly - # BUILDER=docker ./build.sh --tag happy-path + - name: image-build + run: | + export SKIP_FORMAT=true + export SKIP_LINT=true + export SKIP_TEST=true + docker pull quay.io/eclipse/che-plugin-registry:nightly + BUILDER=docker ./build.sh --tag happy-path - # # save locally built image - # docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - # - name: Start minikube - # id: run-minikube - # uses: che-incubator/setup-minikube-action@next - # - name: load-image-minikube-registry - # id: load-image-minikube-registry - # run: | - # # load image in the docker registry - # eval $(minikube docker-env) - # docker load --input=docker-image.tar - # # display images - # docker images - # - name: Deploy Eclipse Che - # id: deploy-che - # uses: che-incubator/che-deploy-action@next - # with: - # # use custom image built by this PR - # plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + # save locally built image + docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + - name: Start minikube + id: run-minikube + uses: che-incubator/setup-minikube-action@next + - name: load-image-minikube-registry + id: load-image-minikube-registry + run: | + # load image in the docker registry + eval $(minikube docker-env) + docker load --input=docker-image.tar + # display images + docker images + - name: Deploy Eclipse Che + id: deploy-che + uses: che-incubator/che-deploy-action@next + with: + # use custom image built by this PR + plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - name: Prepare project run: | sudo pip install yq @@ -89,8 +89,6 @@ jobs: tar -xvzf geckodriver* chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ - geckodriver --version - which geckodriver ./.ci/prepare-extension-project.sh - name: Open workspace run: | From 53d0e85e4699c109b4a10224da959bab75829bac Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 10:56:26 +0200 Subject: [PATCH 032/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 ++ .github/workflows/vscode-extension-tests-check.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index f49cd4af4a..f90dad1aee 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -25,6 +25,8 @@ browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") wait = WebDriverWait(browser, 30) +print "URL is ------------------> " +print sys.argv[1] browser.get(sys.argv[1]) wait.until(EC.title_contains('Log in')) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 5db16a73bd..e96394494f 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -93,4 +93,4 @@ jobs: - name: Open workspace run: | geckodriver --version - python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" + python3 .ci/language-tests-runner.py "$WORKSPACE_URL" From b4cf804da99d9c9804495408a5cd231056de2084 Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 10:57:06 +0200 Subject: [PATCH 033/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index f90dad1aee..8e3900bffa 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -25,8 +25,8 @@ browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") wait = WebDriverWait(browser, 30) -print "URL is ------------------> " -print sys.argv[1] +print ("URL is ------------------>") +print (sys.argv[1]) browser.get(sys.argv[1]) wait.until(EC.title_contains('Log in')) From f8d9d5845c01dddee11a15b0ed87c99a48c47862 Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 11:08:47 +0200 Subject: [PATCH 034/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 6 ++++-- .ci/prepare-extension-project.sh | 2 +- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 8e3900bffa..b209c0db9c 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -10,6 +10,7 @@ import sys import time +import os from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC @@ -25,9 +26,10 @@ browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") wait = WebDriverWait(browser, 30) +workspaceURL = os.environ.get('WORKSPACE_URL') print ("URL is ------------------>") -print (sys.argv[1]) -browser.get(sys.argv[1]) +print (workspaceURL) +browser.get(workspaceURL) wait.until(EC.title_contains('Log in')) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 26e3e6e93f..5f17a6a4d7 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -34,7 +34,7 @@ function buildProject() { function createWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt - WORKSPACE_URL=$(tail -n 1 workspace_url.txt) + export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" echo "-------" diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index e96394494f..81b5b5d88f 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -93,4 +93,4 @@ jobs: - name: Open workspace run: | geckodriver --version - python3 .ci/language-tests-runner.py "$WORKSPACE_URL" + python3 .ci/language-tests-runner.py From af4b0a5d18df3743fbeb0c899835a7ddcd4e98f7 Mon Sep 17 00:00:00 2001 From: svor Date: Sat, 6 Feb 2021 11:27:18 +0200 Subject: [PATCH 035/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 6 ++---- .github/workflows/vscode-extension-tests-check.yaml | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index b209c0db9c..8e3900bffa 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -10,7 +10,6 @@ import sys import time -import os from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC @@ -26,10 +25,9 @@ browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") wait = WebDriverWait(browser, 30) -workspaceURL = os.environ.get('WORKSPACE_URL') print ("URL is ------------------>") -print (workspaceURL) -browser.get(workspaceURL) +print (sys.argv[1]) +browser.get(sys.argv[1]) wait.until(EC.title_contains('Log in')) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 81b5b5d88f..2e2a705121 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -93,4 +93,6 @@ jobs: - name: Open workspace run: | geckodriver --version - python3 .ci/language-tests-runner.py + pwd + ls + python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" From 8ace9fd5f8260b1c95a69e92bfe1c855072c08e9 Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 14:54:45 +0200 Subject: [PATCH 036/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 6 +++--- .github/workflows/vscode-extension-tests-check.yaml | 8 +------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 5f17a6a4d7..375bfff6bd 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -60,9 +60,9 @@ function createWorkspace() { echo "$THEIA_IDE_CONTAINER_NAME" # Start the python3 selenium script that will connect to the workspace to run tests - # python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" - # sleep 20 - # cat geckodriver.log + python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" + sleep 20 + cat geckodriver.log # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 2e2a705121..0404be6b78 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -89,10 +89,4 @@ jobs: tar -xvzf geckodriver* chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ - ./.ci/prepare-extension-project.sh - - name: Open workspace - run: | - geckodriver --version - pwd - ls - python3 .ci/language-tests-runner.py "${WORKSPACE_URL}" + ./.ci/prepare-extension-project.sh From 5a5e50cbed2f990177d31c0b4f013eede9a3a601 Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 16:24:37 +0200 Subject: [PATCH 037/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 375bfff6bd..a9d2012c93 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,7 +62,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" sleep 20 - cat geckodriver.log + cat $GITHUB_WORKSPACE/.ci/geckodriver.log # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 34f5182a6c1f101c4a31fbbb2e614921fe8985eb Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 17:02:00 +0200 Subject: [PATCH 038/157] update action Signed-off-by: svor --- .ci/geckodriver.log | 248 +++++++++++++++++++++++++++++++++++ .ci/language-tests-runner.py | 4 +- 2 files changed, 250 insertions(+), 2 deletions(-) create mode 100644 .ci/geckodriver.log diff --git a/.ci/geckodriver.log b/.ci/geckodriver.log new file mode 100644 index 0000000000..ff5faa3a38 --- /dev/null +++ b/.ci/geckodriver.log @@ -0,0 +1,248 @@ +1612708653622 geckodriver INFO Listening on 127.0.0.1:58217 +1612708653628 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile4LRJDF" +1612708653628 geckodriver::marionette DEBUG Waiting 60s to connect to browser on 127.0.0.1:33425 +*** You are running in headless mode. +1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons +1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry +1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ +1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* +1612708654124 Marionette TRACE Received observer notification profile-after-change +1612708654160 Marionette TRACE Received observer notification command-line-startup +1612708654160 Marionette TRACE Received observer notification nsPref:changed +1612708654160 Marionette DEBUG Init aborted (running=false, enabled=true, finalUIStartup=false) +1612708654328 Marionette TRACE Received observer notification toplevel-window-ready +1612708655290 Marionette TRACE Received observer notification marionette-startup-requested +1612708655290 Marionette TRACE Waiting until startup recorder finished recording startup scripts... +1612708655304 Marionette TRACE All scripts recorded. +1612708655305 Marionette DEBUG Setting recommended pref apz.content_response_timeout to 60000 +1612708655305 Marionette DEBUG Setting recommended pref browser.contentblocking.introCount to 99 +1612708655305 Marionette DEBUG Setting recommended pref browser.download.panel.shown to true +1612708655305 Marionette DEBUG Setting recommended pref browser.newtabpage.enabled to false +1612708655306 Marionette DEBUG Setting recommended pref browser.pagethumbnails.capturing_disabled to true +1612708655306 Marionette DEBUG Setting recommended pref browser.search.update to false +1612708655306 Marionette DEBUG Setting recommended pref browser.tabs.disableBackgroundZombification to false +1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.remote.separatePrivilegedContentProcess to false +1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.unloadOnLowMemory to false +1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.warnOnCloseOtherTabs to false +1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.warnOnOpen to false +1612708655307 Marionette DEBUG Setting recommended pref browser.usedOnWindows10.introURL to +1612708655307 Marionette DEBUG Setting recommended pref browser.urlbar.suggest.searches to false +1612708655308 Marionette DEBUG Setting recommended pref datareporting.policy.dataSubmissionPolicyAccepted to false +1612708655308 Marionette DEBUG Setting recommended pref dom.disable_beforeunload to true +1612708655308 Marionette DEBUG Setting recommended pref dom.disable_open_during_load to false +1612708655308 Marionette DEBUG Setting recommended pref dom.file.createInChild to true +1612708655308 Marionette DEBUG Setting recommended pref dom.max_chrome_script_run_time to 0 +1612708655308 Marionette DEBUG Setting recommended pref dom.max_script_run_time to 0 +1612708655309 Marionette DEBUG Setting recommended pref dom.push.connection.enabled to false +1612708655309 Marionette DEBUG Setting recommended pref extensions.getAddons.cache.enabled to false +1612708655309 Marionette DEBUG Setting recommended pref extensions.webservice.discoverURL to http://%(server)s/dummy/discoveryURL +1612708655309 Marionette DEBUG Setting recommended pref network.http.prompt-temp-redirect to false +1612708655309 Marionette DEBUG Setting recommended pref network.http.speculative-parallel-limit to 0 +1612708655310 Marionette DEBUG Setting recommended pref privacy.trackingprotection.enabled to false +1612708655310 Marionette DEBUG Setting recommended pref security.fileuri.strict_origin_policy to false +1612708655310 Marionette DEBUG Setting recommended pref security.notification_enable_delay to 0 +1612708655310 Marionette DEBUG Setting recommended pref signon.autofillForms to false +1612708655310 Marionette DEBUG Setting recommended pref signon.rememberSignons to false +1612708655310 Marionette DEBUG Setting recommended pref toolkit.cosmeticAnimations.enabled to false +1612708655352 Marionette INFO Listening on port 33425 +1612708655352 Marionette DEBUG Remote service is active +1612708655433 Marionette DEBUG Accepted connection 0 from 127.0.0.1:49630 +1612708655445 geckodriver::marionette DEBUG Connection to Marionette established on 127.0.0.1:33425. +1612708655446 Marionette DEBUG 0 -> [0,1,"WebDriver:NewSession",{"acceptInsecureCerts":true,"browserName":"firefox"}] +1612708655446 Marionette WARN TLS certificate errors will be ignored for this session +1612708655473 Marionette TRACE [13] Frame script loaded +1612708655474 Marionette TRACE [13] Frame script registered +1612708655477 Marionette DEBUG 0 <- [1,1,null,{"sessionId":"7335246b-8b20-41d2-ae96-c6d26352eb2c","capabilities":{"browserName":"firefox","browserVersion":"71.0" ... /rust_mozprofile4LRJDF","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}] +1612708655479 webdriver::server DEBUG <- 200 OK {"value":{"sessionId":"7335246b-8b20-41d2-ae96-c6d26352eb2c","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"71.0","moz:accessibilityChecks":false,"moz:buildID":"20191210124657","moz:geckodriverVersion":"0.27.0","moz:headless":true,"moz:processID":22718,"moz:profile":"/tmp/rust_mozprofile4LRJDF","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"pageLoadStrategy":"normal","platformName":"linux","platformVersion":"5.0.0-37-generic","rotatable":false,"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify"}}} +1612708655480 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"} +1612708655481 Marionette DEBUG 0 -> [0,2,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"}] +1612708655524 Marionette TRACE [13] Received DOM event beforeunload for about:blank +1612708655539 Marionette TRACE [13] Received DOM event pagehide for about:blank +1612708656598 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample +1612708656602 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample +1612708656603 Marionette DEBUG 0 <- [1,2,null,{"value":null}] +1612708656604 webdriver::server DEBUG <- 200 OK {"value":null} +1612708656606 webdriver::server DEBUG -> GET /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/title +1612708656610 Marionette DEBUG 0 -> [0,3,"WebDriver:GetTitle",{}] +1612708656610 Marionette DEBUG 0 <- [1,3,null,{"value":"Loading Dashboard..."}] +1612708656611 webdriver::server DEBUG <- 200 OK {"value":"Loading Dashboard..."} +1612708657114 webdriver::server DEBUG -> GET /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/title +1612708657116 Marionette DEBUG 0 -> [0,4,"WebDriver:GetTitle",{}] +1612708657117 Marionette DEBUG 0 <- [1,4,null,{"value":"Log in to Eclipse Che"}] +1612708657118 webdriver::server DEBUG <- 200 OK {"value":"Log in to Eclipse Che"} +1612708657121 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"username\"]"} +1612708657123 Marionette DEBUG 0 -> [0,5,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"username\"]"}] +1612708657133 Marionette DEBUG 0 <- [1,5,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"6374c61c-412a-4863-92fb-23c09c8b2edb"}}] +1612708657135 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"6374c61c-412a-4863-92fb-23c09c8b2edb"}} +1612708657138 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element/6374c61c-412a-4863-92fb-23c09c8b2edb/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "6374c61c-412a-4863-92fb-23c09c8b2edb"} +1612708657140 Marionette DEBUG 0 -> [0,6,"WebDriver:ElementSendKeys",{"id":"6374c61c-412a-4863-92fb-23c09c8b2edb","text":"admin","value":["a","d","m","i","n"]}] +1612708657168 Marionette DEBUG 0 <- [1,6,null,{"value":null}] +1612708657168 webdriver::server DEBUG <- 200 OK {"value":null} +1612708657169 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"password\"]"} +1612708657170 Marionette DEBUG 0 -> [0,7,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"password\"]"}] +1612708657172 Marionette DEBUG 0 <- [1,7,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"63aa0ddd-0e49-4b2a-868b-1b83c95831cb"}}] +1612708657172 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"63aa0ddd-0e49-4b2a-868b-1b83c95831cb"}} +1612708657174 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element/63aa0ddd-0e49-4b2a-868b-1b83c95831cb/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "63aa0ddd-0e49-4b2a-868b-1b83c95831cb"} +1612708657174 Marionette DEBUG 0 -> [0,8,"WebDriver:ElementSendKeys",{"id":"63aa0ddd-0e49-4b2a-868b-1b83c95831cb","text":"admin","value":["a","d","m","i","n"]}] +1612708657183 Marionette DEBUG 0 <- [1,8,null,{"value":null}] +1612708657184 webdriver::server DEBUG <- 200 OK {"value":null} +1612708657185 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"kc-login\"]"} +1612708657185 Marionette DEBUG 0 -> [0,9,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"kc-login\"]"}] +1612708657187 Marionette DEBUG 0 <- [1,9,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"2aca7a4b-150b-41f8-8ffa-baa2b26278da"}}] +1612708657188 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"2aca7a4b-150b-41f8-8ffa-baa2b26278da"}} +1612708657189 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element/2aca7a4b-150b-41f8-8ffa-baa2b26278da/click {"id": "2aca7a4b-150b-41f8-8ffa-baa2b26278da"} +1612708657189 Marionette DEBUG 0 -> [0,10,"WebDriver:ElementClick",{"id":"2aca7a4b-150b-41f8-8ffa-baa2b26278da"}] +1612708657202 Marionette TRACE [13] Received DOM event beforeunload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... c375-4ab1-8fa7-aa0c0cbc9410&response_mode=fragment&response_type=code&scope=openid&nonce=f7086d1c-c987-4be2-81e7-4b4337f9500d +1612708657320 Marionette TRACE [13] Received DOM event pagehide for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... c375-4ab1-8fa7-aa0c0cbc9410&response_mode=fragment&response_type=code&scope=openid&nonce=f7086d1c-c987-4be2-81e7-4b4337f9500d +1612708657321 Marionette TRACE [13] Received DOM event unload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... c375-4ab1-8fa7-aa0c0cbc9410&response_mode=fragment&response_type=code&scope=openid&nonce=f7086d1c-c987-4be2-81e7-4b4337f9500d +1612708658014 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample&state=6fe9ff4e-c375-4ab1-8fa7-aa0c ... f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6&code=2beee479-9dd5-4559-9a5b-be969aa77910.1f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6.che-public +1612708658016 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample&state=6fe9ff4e-c375-4ab1-8fa7-aa0c ... f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6&code=2beee479-9dd5-4559-9a5b-be969aa77910.1f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6.che-public +1612708658016 Marionette DEBUG 0 <- [1,10,null,{"value":null}] +1612708658018 webdriver::server DEBUG <- 200 OK {"value":null} +1612708658019 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/timeouts {"implicit": 20000} +1612708658020 Marionette DEBUG 0 -> [0,11,"WebDriver:SetTimeouts",{"implicit":20000}] +1612708658021 Marionette DEBUG 0 <- [1,11,null,{"value":null}] +1612708658021 webdriver::server DEBUG <- 200 OK {"value":null} +1612708658022 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"} +1612708658023 Marionette DEBUG 0 -> [0,12,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"}] +1612708658026 Marionette TRACE [13] Received DOM event popstate for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample +1612708658032 Marionette DEBUG 0 <- [1,12,null,{"value":null}] +1612708658033 webdriver::server DEBUG <- 200 OK {"value":null} +1612708658034 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"ide-application-iframe\"]"} +1612708658035 Marionette DEBUG 0 -> [0,13,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"ide-application-iframe\"]"}] +1612708659658 Marionette DEBUG 0 <- [1,13,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"f9ba0527-d954-418e-b97c-68cb658f27ef"}}] +1612708659659 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"f9ba0527-d954-418e-b97c-68cb658f27ef"}} +1612708659660 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/frame {"id": {"ELEMENT": "f9ba0527-d954-418e-b97c-68cb658f27ef", "element-6066-11e4-a52e-4f735466cecf": "f9ba0527-d954-418e-b97c-68cb658f27ef"}} +1612708659660 Marionette DEBUG 0 -> [0,14,"WebDriver:SwitchToFrame",{"element":"f9ba0527-d954-418e-b97c-68cb658f27ef"}] +1612708659663 Marionette DEBUG 0 <- [1,14,null,{"value":null}] +1612708659663 webdriver::server DEBUG <- 200 OK {"value":null} +1612708659664 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "xpath", "value": "//*[@id=\"theia-app-shell\"]"} +1612708659665 Marionette DEBUG 0 -> [0,15,"WebDriver:FindElement",{"using":"xpath","value":"//*[@id=\"theia-app-shell\"]"}] +1612708665209 Marionette DEBUG 0 <- [1,15,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"96d65d09-5a1b-4ac1-a686-ef2d7af4031c"}}] +1612708665210 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"96d65d09-5a1b-4ac1-a686-ef2d7af4031c"}} +1612708665228 Marionette DEBUG Closed connection 0 +JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory. +JavaScript error: https://server8wzvdu88-jwtproxy-server-4403.172.17.0.2.nip.io/theia.a5299a86667d90caac3e.js, line 1: Error: connection is closed +1612710067898 geckodriver INFO Listening on 127.0.0.1:54401 +1612710067904 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileyObGfx" +1612710067904 geckodriver::marionette DEBUG Waiting 60s to connect to browser on 127.0.0.1:34163 +*** You are running in headless mode. +1612710068267 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons +1612710068267 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry +1612710068268 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ +1612710068268 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* +1612710068371 Marionette TRACE Received observer notification profile-after-change +1612710068408 Marionette TRACE Received observer notification command-line-startup +1612710068408 Marionette TRACE Received observer notification nsPref:changed +1612710068408 Marionette DEBUG Init aborted (running=false, enabled=true, finalUIStartup=false) +1612710068584 Marionette TRACE Received observer notification toplevel-window-ready +1612710069551 Marionette TRACE Received observer notification marionette-startup-requested +1612710069551 Marionette TRACE Waiting until startup recorder finished recording startup scripts... +1612710069569 Marionette TRACE All scripts recorded. +1612710069569 Marionette DEBUG Setting recommended pref apz.content_response_timeout to 60000 +1612710069569 Marionette DEBUG Setting recommended pref browser.contentblocking.introCount to 99 +1612710069570 Marionette DEBUG Setting recommended pref browser.download.panel.shown to true +1612710069570 Marionette DEBUG Setting recommended pref browser.newtabpage.enabled to false +1612710069571 Marionette DEBUG Setting recommended pref browser.pagethumbnails.capturing_disabled to true +1612710069571 Marionette DEBUG Setting recommended pref browser.search.update to false +1612710069571 Marionette DEBUG Setting recommended pref browser.tabs.disableBackgroundZombification to false +1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.remote.separatePrivilegedContentProcess to false +1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.unloadOnLowMemory to false +1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.warnOnCloseOtherTabs to false +1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.warnOnOpen to false +1612710069572 Marionette DEBUG Setting recommended pref browser.usedOnWindows10.introURL to +1612710069572 Marionette DEBUG Setting recommended pref browser.urlbar.suggest.searches to false +1612710069573 Marionette DEBUG Setting recommended pref datareporting.policy.dataSubmissionPolicyAccepted to false +1612710069573 Marionette DEBUG Setting recommended pref dom.disable_beforeunload to true +1612710069574 Marionette DEBUG Setting recommended pref dom.disable_open_during_load to false +1612710069574 Marionette DEBUG Setting recommended pref dom.file.createInChild to true +1612710069574 Marionette DEBUG Setting recommended pref dom.max_chrome_script_run_time to 0 +1612710069574 Marionette DEBUG Setting recommended pref dom.max_script_run_time to 0 +1612710069575 Marionette DEBUG Setting recommended pref dom.push.connection.enabled to false +1612710069575 Marionette DEBUG Setting recommended pref extensions.getAddons.cache.enabled to false +1612710069575 Marionette DEBUG Setting recommended pref extensions.webservice.discoverURL to http://%(server)s/dummy/discoveryURL +1612710069576 Marionette DEBUG Setting recommended pref network.http.prompt-temp-redirect to false +1612710069576 Marionette DEBUG Setting recommended pref network.http.speculative-parallel-limit to 0 +1612710069576 Marionette DEBUG Setting recommended pref privacy.trackingprotection.enabled to false +1612710069576 Marionette DEBUG Setting recommended pref security.fileuri.strict_origin_policy to false +1612710069576 Marionette DEBUG Setting recommended pref security.notification_enable_delay to 0 +1612710069576 Marionette DEBUG Setting recommended pref signon.autofillForms to false +1612710069577 Marionette DEBUG Setting recommended pref signon.rememberSignons to false +1612710069577 Marionette DEBUG Setting recommended pref toolkit.cosmeticAnimations.enabled to false +1612710069615 Marionette INFO Listening on port 34163 +1612710069615 Marionette DEBUG Remote service is active +1612710069725 Marionette DEBUG Accepted connection 0 from 127.0.0.1:35152 +1612710069726 geckodriver::marionette DEBUG Connection to Marionette established on 127.0.0.1:34163. +1612710069728 Marionette DEBUG 0 -> [0,1,"WebDriver:NewSession",{"acceptInsecureCerts":true,"browserName":"firefox"}] +1612710069729 Marionette WARN TLS certificate errors will be ignored for this session +1612710069759 Marionette TRACE [13] Frame script loaded +1612710069761 Marionette TRACE [13] Frame script registered +1612710069764 Marionette DEBUG 0 <- [1,1,null,{"sessionId":"f16e38a7-1112-4b92-b5ac-5b6023ecc86b","capabilities":{"browserName":"firefox","browserVersion":"71.0" ... /rust_mozprofileyObGfx","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}] +1612710069765 webdriver::server DEBUG <- 200 OK {"value":{"sessionId":"f16e38a7-1112-4b92-b5ac-5b6023ecc86b","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"71.0","moz:accessibilityChecks":false,"moz:buildID":"20191210124657","moz:geckodriverVersion":"0.27.0","moz:headless":true,"moz:processID":3434,"moz:profile":"/tmp/rust_mozprofileyObGfx","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"pageLoadStrategy":"normal","platformName":"linux","platformVersion":"5.0.0-37-generic","rotatable":false,"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify"}}} +1612710069766 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"} +1612710069767 Marionette DEBUG 0 -> [0,2,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"}] +1612710069796 Marionette TRACE [13] Received DOM event beforeunload for about:blank +1612710069876 Marionette TRACE [13] Received DOM event pagehide for about:blank +1612710070930 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2 +1612710070941 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2 +1612710070943 Marionette DEBUG 0 <- [1,2,null,{"value":null}] +1612710070944 webdriver::server DEBUG <- 200 OK {"value":null} +1612710070945 webdriver::server DEBUG -> GET /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/title +1612710070946 Marionette DEBUG 0 -> [0,3,"WebDriver:GetTitle",{}] +1612710070946 Marionette DEBUG 0 <- [1,3,null,{"value":"Loading Dashboard..."}] +1612710070947 webdriver::server DEBUG <- 200 OK {"value":"Loading Dashboard..."} +1612710071449 webdriver::server DEBUG -> GET /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/title +1612710071450 Marionette DEBUG 0 -> [0,4,"WebDriver:GetTitle",{}] +1612710071451 Marionette DEBUG 0 <- [1,4,null,{"value":"Log in to Eclipse Che"}] +1612710071452 webdriver::server DEBUG <- 200 OK {"value":"Log in to Eclipse Che"} +1612710071454 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"username\"]"} +1612710071455 Marionette DEBUG 0 -> [0,5,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"username\"]"}] +1612710071466 Marionette DEBUG 0 <- [1,5,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"2b33d065-bf75-4dba-a20c-0e906c0656da"}}] +1612710071467 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"2b33d065-bf75-4dba-a20c-0e906c0656da"}} +1612710071470 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element/2b33d065-bf75-4dba-a20c-0e906c0656da/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "2b33d065-bf75-4dba-a20c-0e906c0656da"} +1612710071472 Marionette DEBUG 0 -> [0,6,"WebDriver:ElementSendKeys",{"id":"2b33d065-bf75-4dba-a20c-0e906c0656da","text":"admin","value":["a","d","m","i","n"]}] +1612710071508 Marionette DEBUG 0 <- [1,6,null,{"value":null}] +1612710071508 webdriver::server DEBUG <- 200 OK {"value":null} +1612710071509 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"password\"]"} +1612710071510 Marionette DEBUG 0 -> [0,7,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"password\"]"}] +1612710071515 Marionette DEBUG 0 <- [1,7,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"09b14f30-21fd-4aa8-84d0-4b5facc291bf"}}] +1612710071516 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"09b14f30-21fd-4aa8-84d0-4b5facc291bf"}} +1612710071518 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element/09b14f30-21fd-4aa8-84d0-4b5facc291bf/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "09b14f30-21fd-4aa8-84d0-4b5facc291bf"} +1612710071518 Marionette DEBUG 0 -> [0,8,"WebDriver:ElementSendKeys",{"id":"09b14f30-21fd-4aa8-84d0-4b5facc291bf","text":"admin","value":["a","d","m","i","n"]}] +1612710071529 Marionette DEBUG 0 <- [1,8,null,{"value":null}] +1612710071530 webdriver::server DEBUG <- 200 OK {"value":null} +1612710071531 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"kc-login\"]"} +1612710071532 Marionette DEBUG 0 -> [0,9,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"kc-login\"]"}] +1612710071535 Marionette DEBUG 0 <- [1,9,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"}}] +1612710071536 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"}} +1612710071537 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element/def18eb0-d3d5-49b5-b0fc-a4ee57d81de9/click {"id": "def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"} +1612710071537 Marionette DEBUG 0 -> [0,10,"WebDriver:ElementClick",{"id":"def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"}] +1612710071550 Marionette TRACE [13] Received DOM event beforeunload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... f02b-41e2-be9d-933ff8bd617a&response_mode=fragment&response_type=code&scope=openid&nonce=4e5578f6-4b54-4122-88cf-9d12cc261ca8 +1612710071677 Marionette TRACE [13] Received DOM event pagehide for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... f02b-41e2-be9d-933ff8bd617a&response_mode=fragment&response_type=code&scope=openid&nonce=4e5578f6-4b54-4122-88cf-9d12cc261ca8 +1612710071678 Marionette TRACE [13] Received DOM event unload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... f02b-41e2-be9d-933ff8bd617a&response_mode=fragment&response_type=code&scope=openid&nonce=4e5578f6-4b54-4122-88cf-9d12cc261ca8 +1612710072351 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2&state=a41ac4e5-f02b-41e2-be9d-933 ... dfa841b-3c09-4ad5-9bdf-9bbdf006b385&code=88e0833a-1645-4864-afe8-638109a9749c.6dfa841b-3c09-4ad5-9bdf-9bbdf006b385.che-public +1612710072353 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2&state=a41ac4e5-f02b-41e2-be9d-933 ... dfa841b-3c09-4ad5-9bdf-9bbdf006b385&code=88e0833a-1645-4864-afe8-638109a9749c.6dfa841b-3c09-4ad5-9bdf-9bbdf006b385.che-public +1612710072354 Marionette DEBUG 0 <- [1,10,null,{"value":null}] +1612710072355 webdriver::server DEBUG <- 200 OK {"value":null} +1612710072356 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/timeouts {"implicit": 20000} +1612710072357 Marionette DEBUG 0 -> [0,11,"WebDriver:SetTimeouts",{"implicit":20000}] +1612710072357 Marionette DEBUG 0 <- [1,11,null,{"value":null}] +1612710072357 webdriver::server DEBUG <- 200 OK {"value":null} +1612710072358 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"} +1612710072359 Marionette DEBUG 0 -> [0,12,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"}] +1612710072362 Marionette TRACE [13] Received DOM event popstate for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2 +1612710072367 Marionette DEBUG 0 <- [1,12,null,{"value":null}] +1612710072368 webdriver::server DEBUG <- 200 OK {"value":null} +1612710072369 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"ide-application-iframe\"]"} +1612710072370 Marionette DEBUG 0 -> [0,13,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"ide-application-iframe\"]"}] +1612710073967 Marionette DEBUG 0 <- [1,13,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"568c9413-79a0-49c7-8515-e46bd8aa96b5"}}] +1612710073967 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"568c9413-79a0-49c7-8515-e46bd8aa96b5"}} +1612710073969 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/frame {"id": {"ELEMENT": "568c9413-79a0-49c7-8515-e46bd8aa96b5", "element-6066-11e4-a52e-4f735466cecf": "568c9413-79a0-49c7-8515-e46bd8aa96b5"}} +1612710073969 Marionette DEBUG 0 -> [0,14,"WebDriver:SwitchToFrame",{"element":"568c9413-79a0-49c7-8515-e46bd8aa96b5"}] +1612710073975 Marionette DEBUG 0 <- [1,14,null,{"value":null}] +1612710073976 webdriver::server DEBUG <- 200 OK {"value":null} +1612710073977 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "xpath", "value": "//*[@id=\"theia-app-shell\"]"} +1612710073978 Marionette DEBUG 0 -> [0,15,"WebDriver:FindElement",{"using":"xpath","value":"//*[@id=\"theia-app-shell\"]"}] +1612710081261 Marionette DEBUG 0 <- [1,15,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"700c40f6-a666-4065-ad6d-3f56c10fe889"}}] +1612710081261 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"700c40f6-a666-4065-ad6d-3f56c10fe889"}} +1612710081274 Marionette DEBUG Closed connection 0 diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 8e3900bffa..53be590c60 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -44,5 +44,5 @@ browser.get(sys.argv[1]) #Waiting for theia itself to be loaded so that tests will be run -wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) -wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) +# wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) +# wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) From 2c0ee1ee9afbccfa2421f3a0a276c59260c1d44a Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 17:04:04 +0200 Subject: [PATCH 039/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index a9d2012c93..9d18c5c33e 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + sleep 25 cat $GITHUB_WORKSPACE/.ci/geckodriver.log # ### Copy extension's sources into theia container From db466bb6b49a501b086870e6ebf4811ed95b986d Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 17:34:52 +0200 Subject: [PATCH 040/157] update action Signed-off-by: svor --- .ci/geckodriver.log | 248 ------------------ .ci/language-tests-runner.py | 1 + .../vscode-extension-tests-check.yaml | 1 + 3 files changed, 2 insertions(+), 248 deletions(-) delete mode 100644 .ci/geckodriver.log diff --git a/.ci/geckodriver.log b/.ci/geckodriver.log deleted file mode 100644 index ff5faa3a38..0000000000 --- a/.ci/geckodriver.log +++ /dev/null @@ -1,248 +0,0 @@ -1612708653622 geckodriver INFO Listening on 127.0.0.1:58217 -1612708653628 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile4LRJDF" -1612708653628 geckodriver::marionette DEBUG Waiting 60s to connect to browser on 127.0.0.1:33425 -*** You are running in headless mode. -1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons -1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry -1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ -1612708654003 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* -1612708654124 Marionette TRACE Received observer notification profile-after-change -1612708654160 Marionette TRACE Received observer notification command-line-startup -1612708654160 Marionette TRACE Received observer notification nsPref:changed -1612708654160 Marionette DEBUG Init aborted (running=false, enabled=true, finalUIStartup=false) -1612708654328 Marionette TRACE Received observer notification toplevel-window-ready -1612708655290 Marionette TRACE Received observer notification marionette-startup-requested -1612708655290 Marionette TRACE Waiting until startup recorder finished recording startup scripts... -1612708655304 Marionette TRACE All scripts recorded. -1612708655305 Marionette DEBUG Setting recommended pref apz.content_response_timeout to 60000 -1612708655305 Marionette DEBUG Setting recommended pref browser.contentblocking.introCount to 99 -1612708655305 Marionette DEBUG Setting recommended pref browser.download.panel.shown to true -1612708655305 Marionette DEBUG Setting recommended pref browser.newtabpage.enabled to false -1612708655306 Marionette DEBUG Setting recommended pref browser.pagethumbnails.capturing_disabled to true -1612708655306 Marionette DEBUG Setting recommended pref browser.search.update to false -1612708655306 Marionette DEBUG Setting recommended pref browser.tabs.disableBackgroundZombification to false -1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.remote.separatePrivilegedContentProcess to false -1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.unloadOnLowMemory to false -1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.warnOnCloseOtherTabs to false -1612708655307 Marionette DEBUG Setting recommended pref browser.tabs.warnOnOpen to false -1612708655307 Marionette DEBUG Setting recommended pref browser.usedOnWindows10.introURL to -1612708655307 Marionette DEBUG Setting recommended pref browser.urlbar.suggest.searches to false -1612708655308 Marionette DEBUG Setting recommended pref datareporting.policy.dataSubmissionPolicyAccepted to false -1612708655308 Marionette DEBUG Setting recommended pref dom.disable_beforeunload to true -1612708655308 Marionette DEBUG Setting recommended pref dom.disable_open_during_load to false -1612708655308 Marionette DEBUG Setting recommended pref dom.file.createInChild to true -1612708655308 Marionette DEBUG Setting recommended pref dom.max_chrome_script_run_time to 0 -1612708655308 Marionette DEBUG Setting recommended pref dom.max_script_run_time to 0 -1612708655309 Marionette DEBUG Setting recommended pref dom.push.connection.enabled to false -1612708655309 Marionette DEBUG Setting recommended pref extensions.getAddons.cache.enabled to false -1612708655309 Marionette DEBUG Setting recommended pref extensions.webservice.discoverURL to http://%(server)s/dummy/discoveryURL -1612708655309 Marionette DEBUG Setting recommended pref network.http.prompt-temp-redirect to false -1612708655309 Marionette DEBUG Setting recommended pref network.http.speculative-parallel-limit to 0 -1612708655310 Marionette DEBUG Setting recommended pref privacy.trackingprotection.enabled to false -1612708655310 Marionette DEBUG Setting recommended pref security.fileuri.strict_origin_policy to false -1612708655310 Marionette DEBUG Setting recommended pref security.notification_enable_delay to 0 -1612708655310 Marionette DEBUG Setting recommended pref signon.autofillForms to false -1612708655310 Marionette DEBUG Setting recommended pref signon.rememberSignons to false -1612708655310 Marionette DEBUG Setting recommended pref toolkit.cosmeticAnimations.enabled to false -1612708655352 Marionette INFO Listening on port 33425 -1612708655352 Marionette DEBUG Remote service is active -1612708655433 Marionette DEBUG Accepted connection 0 from 127.0.0.1:49630 -1612708655445 geckodriver::marionette DEBUG Connection to Marionette established on 127.0.0.1:33425. -1612708655446 Marionette DEBUG 0 -> [0,1,"WebDriver:NewSession",{"acceptInsecureCerts":true,"browserName":"firefox"}] -1612708655446 Marionette WARN TLS certificate errors will be ignored for this session -1612708655473 Marionette TRACE [13] Frame script loaded -1612708655474 Marionette TRACE [13] Frame script registered -1612708655477 Marionette DEBUG 0 <- [1,1,null,{"sessionId":"7335246b-8b20-41d2-ae96-c6d26352eb2c","capabilities":{"browserName":"firefox","browserVersion":"71.0" ... /rust_mozprofile4LRJDF","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}] -1612708655479 webdriver::server DEBUG <- 200 OK {"value":{"sessionId":"7335246b-8b20-41d2-ae96-c6d26352eb2c","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"71.0","moz:accessibilityChecks":false,"moz:buildID":"20191210124657","moz:geckodriverVersion":"0.27.0","moz:headless":true,"moz:processID":22718,"moz:profile":"/tmp/rust_mozprofile4LRJDF","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"pageLoadStrategy":"normal","platformName":"linux","platformVersion":"5.0.0-37-generic","rotatable":false,"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify"}}} -1612708655480 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"} -1612708655481 Marionette DEBUG 0 -> [0,2,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"}] -1612708655524 Marionette TRACE [13] Received DOM event beforeunload for about:blank -1612708655539 Marionette TRACE [13] Received DOM event pagehide for about:blank -1612708656598 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample -1612708656602 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample -1612708656603 Marionette DEBUG 0 <- [1,2,null,{"value":null}] -1612708656604 webdriver::server DEBUG <- 200 OK {"value":null} -1612708656606 webdriver::server DEBUG -> GET /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/title -1612708656610 Marionette DEBUG 0 -> [0,3,"WebDriver:GetTitle",{}] -1612708656610 Marionette DEBUG 0 <- [1,3,null,{"value":"Loading Dashboard..."}] -1612708656611 webdriver::server DEBUG <- 200 OK {"value":"Loading Dashboard..."} -1612708657114 webdriver::server DEBUG -> GET /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/title -1612708657116 Marionette DEBUG 0 -> [0,4,"WebDriver:GetTitle",{}] -1612708657117 Marionette DEBUG 0 <- [1,4,null,{"value":"Log in to Eclipse Che"}] -1612708657118 webdriver::server DEBUG <- 200 OK {"value":"Log in to Eclipse Che"} -1612708657121 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"username\"]"} -1612708657123 Marionette DEBUG 0 -> [0,5,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"username\"]"}] -1612708657133 Marionette DEBUG 0 <- [1,5,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"6374c61c-412a-4863-92fb-23c09c8b2edb"}}] -1612708657135 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"6374c61c-412a-4863-92fb-23c09c8b2edb"}} -1612708657138 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element/6374c61c-412a-4863-92fb-23c09c8b2edb/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "6374c61c-412a-4863-92fb-23c09c8b2edb"} -1612708657140 Marionette DEBUG 0 -> [0,6,"WebDriver:ElementSendKeys",{"id":"6374c61c-412a-4863-92fb-23c09c8b2edb","text":"admin","value":["a","d","m","i","n"]}] -1612708657168 Marionette DEBUG 0 <- [1,6,null,{"value":null}] -1612708657168 webdriver::server DEBUG <- 200 OK {"value":null} -1612708657169 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"password\"]"} -1612708657170 Marionette DEBUG 0 -> [0,7,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"password\"]"}] -1612708657172 Marionette DEBUG 0 <- [1,7,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"63aa0ddd-0e49-4b2a-868b-1b83c95831cb"}}] -1612708657172 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"63aa0ddd-0e49-4b2a-868b-1b83c95831cb"}} -1612708657174 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element/63aa0ddd-0e49-4b2a-868b-1b83c95831cb/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "63aa0ddd-0e49-4b2a-868b-1b83c95831cb"} -1612708657174 Marionette DEBUG 0 -> [0,8,"WebDriver:ElementSendKeys",{"id":"63aa0ddd-0e49-4b2a-868b-1b83c95831cb","text":"admin","value":["a","d","m","i","n"]}] -1612708657183 Marionette DEBUG 0 <- [1,8,null,{"value":null}] -1612708657184 webdriver::server DEBUG <- 200 OK {"value":null} -1612708657185 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"kc-login\"]"} -1612708657185 Marionette DEBUG 0 -> [0,9,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"kc-login\"]"}] -1612708657187 Marionette DEBUG 0 <- [1,9,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"2aca7a4b-150b-41f8-8ffa-baa2b26278da"}}] -1612708657188 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"2aca7a4b-150b-41f8-8ffa-baa2b26278da"}} -1612708657189 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element/2aca7a4b-150b-41f8-8ffa-baa2b26278da/click {"id": "2aca7a4b-150b-41f8-8ffa-baa2b26278da"} -1612708657189 Marionette DEBUG 0 -> [0,10,"WebDriver:ElementClick",{"id":"2aca7a4b-150b-41f8-8ffa-baa2b26278da"}] -1612708657202 Marionette TRACE [13] Received DOM event beforeunload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... c375-4ab1-8fa7-aa0c0cbc9410&response_mode=fragment&response_type=code&scope=openid&nonce=f7086d1c-c987-4be2-81e7-4b4337f9500d -1612708657320 Marionette TRACE [13] Received DOM event pagehide for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... c375-4ab1-8fa7-aa0c0cbc9410&response_mode=fragment&response_type=code&scope=openid&nonce=f7086d1c-c987-4be2-81e7-4b4337f9500d -1612708657321 Marionette TRACE [13] Received DOM event unload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... c375-4ab1-8fa7-aa0c0cbc9410&response_mode=fragment&response_type=code&scope=openid&nonce=f7086d1c-c987-4be2-81e7-4b4337f9500d -1612708658014 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample&state=6fe9ff4e-c375-4ab1-8fa7-aa0c ... f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6&code=2beee479-9dd5-4559-9a5b-be969aa77910.1f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6.che-public -1612708658016 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample&state=6fe9ff4e-c375-4ab1-8fa7-aa0c ... f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6&code=2beee479-9dd5-4559-9a5b-be969aa77910.1f4fcc21-eff2-44df-b8c4-7a7a81dd2ab6.che-public -1612708658016 Marionette DEBUG 0 <- [1,10,null,{"value":null}] -1612708658018 webdriver::server DEBUG <- 200 OK {"value":null} -1612708658019 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/timeouts {"implicit": 20000} -1612708658020 Marionette DEBUG 0 -> [0,11,"WebDriver:SetTimeouts",{"implicit":20000}] -1612708658021 Marionette DEBUG 0 <- [1,11,null,{"value":null}] -1612708658021 webdriver::server DEBUG <- 200 OK {"value":null} -1612708658022 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"} -1612708658023 Marionette DEBUG 0 -> [0,12,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample"}] -1612708658026 Marionette TRACE [13] Received DOM event popstate for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample -1612708658032 Marionette DEBUG 0 <- [1,12,null,{"value":null}] -1612708658033 webdriver::server DEBUG <- 200 OK {"value":null} -1612708658034 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "css selector", "value": "[id=\"ide-application-iframe\"]"} -1612708658035 Marionette DEBUG 0 -> [0,13,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"ide-application-iframe\"]"}] -1612708659658 Marionette DEBUG 0 <- [1,13,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"f9ba0527-d954-418e-b97c-68cb658f27ef"}}] -1612708659659 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"f9ba0527-d954-418e-b97c-68cb658f27ef"}} -1612708659660 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/frame {"id": {"ELEMENT": "f9ba0527-d954-418e-b97c-68cb658f27ef", "element-6066-11e4-a52e-4f735466cecf": "f9ba0527-d954-418e-b97c-68cb658f27ef"}} -1612708659660 Marionette DEBUG 0 -> [0,14,"WebDriver:SwitchToFrame",{"element":"f9ba0527-d954-418e-b97c-68cb658f27ef"}] -1612708659663 Marionette DEBUG 0 <- [1,14,null,{"value":null}] -1612708659663 webdriver::server DEBUG <- 200 OK {"value":null} -1612708659664 webdriver::server DEBUG -> POST /session/7335246b-8b20-41d2-ae96-c6d26352eb2c/element {"using": "xpath", "value": "//*[@id=\"theia-app-shell\"]"} -1612708659665 Marionette DEBUG 0 -> [0,15,"WebDriver:FindElement",{"using":"xpath","value":"//*[@id=\"theia-app-shell\"]"}] -1612708665209 Marionette DEBUG 0 <- [1,15,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"96d65d09-5a1b-4ac1-a686-ef2d7af4031c"}}] -1612708665210 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"96d65d09-5a1b-4ac1-a686-ef2d7af4031c"}} -1612708665228 Marionette DEBUG Closed connection 0 -JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory. -JavaScript error: https://server8wzvdu88-jwtproxy-server-4403.172.17.0.2.nip.io/theia.a5299a86667d90caac3e.js, line 1: Error: connection is closed -1612710067898 geckodriver INFO Listening on 127.0.0.1:54401 -1612710067904 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileyObGfx" -1612710067904 geckodriver::marionette DEBUG Waiting 60s to connect to browser on 127.0.0.1:34163 -*** You are running in headless mode. -1612710068267 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons -1612710068267 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry -1612710068268 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ -1612710068268 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* -1612710068371 Marionette TRACE Received observer notification profile-after-change -1612710068408 Marionette TRACE Received observer notification command-line-startup -1612710068408 Marionette TRACE Received observer notification nsPref:changed -1612710068408 Marionette DEBUG Init aborted (running=false, enabled=true, finalUIStartup=false) -1612710068584 Marionette TRACE Received observer notification toplevel-window-ready -1612710069551 Marionette TRACE Received observer notification marionette-startup-requested -1612710069551 Marionette TRACE Waiting until startup recorder finished recording startup scripts... -1612710069569 Marionette TRACE All scripts recorded. -1612710069569 Marionette DEBUG Setting recommended pref apz.content_response_timeout to 60000 -1612710069569 Marionette DEBUG Setting recommended pref browser.contentblocking.introCount to 99 -1612710069570 Marionette DEBUG Setting recommended pref browser.download.panel.shown to true -1612710069570 Marionette DEBUG Setting recommended pref browser.newtabpage.enabled to false -1612710069571 Marionette DEBUG Setting recommended pref browser.pagethumbnails.capturing_disabled to true -1612710069571 Marionette DEBUG Setting recommended pref browser.search.update to false -1612710069571 Marionette DEBUG Setting recommended pref browser.tabs.disableBackgroundZombification to false -1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.remote.separatePrivilegedContentProcess to false -1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.unloadOnLowMemory to false -1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.warnOnCloseOtherTabs to false -1612710069572 Marionette DEBUG Setting recommended pref browser.tabs.warnOnOpen to false -1612710069572 Marionette DEBUG Setting recommended pref browser.usedOnWindows10.introURL to -1612710069572 Marionette DEBUG Setting recommended pref browser.urlbar.suggest.searches to false -1612710069573 Marionette DEBUG Setting recommended pref datareporting.policy.dataSubmissionPolicyAccepted to false -1612710069573 Marionette DEBUG Setting recommended pref dom.disable_beforeunload to true -1612710069574 Marionette DEBUG Setting recommended pref dom.disable_open_during_load to false -1612710069574 Marionette DEBUG Setting recommended pref dom.file.createInChild to true -1612710069574 Marionette DEBUG Setting recommended pref dom.max_chrome_script_run_time to 0 -1612710069574 Marionette DEBUG Setting recommended pref dom.max_script_run_time to 0 -1612710069575 Marionette DEBUG Setting recommended pref dom.push.connection.enabled to false -1612710069575 Marionette DEBUG Setting recommended pref extensions.getAddons.cache.enabled to false -1612710069575 Marionette DEBUG Setting recommended pref extensions.webservice.discoverURL to http://%(server)s/dummy/discoveryURL -1612710069576 Marionette DEBUG Setting recommended pref network.http.prompt-temp-redirect to false -1612710069576 Marionette DEBUG Setting recommended pref network.http.speculative-parallel-limit to 0 -1612710069576 Marionette DEBUG Setting recommended pref privacy.trackingprotection.enabled to false -1612710069576 Marionette DEBUG Setting recommended pref security.fileuri.strict_origin_policy to false -1612710069576 Marionette DEBUG Setting recommended pref security.notification_enable_delay to 0 -1612710069576 Marionette DEBUG Setting recommended pref signon.autofillForms to false -1612710069577 Marionette DEBUG Setting recommended pref signon.rememberSignons to false -1612710069577 Marionette DEBUG Setting recommended pref toolkit.cosmeticAnimations.enabled to false -1612710069615 Marionette INFO Listening on port 34163 -1612710069615 Marionette DEBUG Remote service is active -1612710069725 Marionette DEBUG Accepted connection 0 from 127.0.0.1:35152 -1612710069726 geckodriver::marionette DEBUG Connection to Marionette established on 127.0.0.1:34163. -1612710069728 Marionette DEBUG 0 -> [0,1,"WebDriver:NewSession",{"acceptInsecureCerts":true,"browserName":"firefox"}] -1612710069729 Marionette WARN TLS certificate errors will be ignored for this session -1612710069759 Marionette TRACE [13] Frame script loaded -1612710069761 Marionette TRACE [13] Frame script registered -1612710069764 Marionette DEBUG 0 <- [1,1,null,{"sessionId":"f16e38a7-1112-4b92-b5ac-5b6023ecc86b","capabilities":{"browserName":"firefox","browserVersion":"71.0" ... /rust_mozprofileyObGfx","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}] -1612710069765 webdriver::server DEBUG <- 200 OK {"value":{"sessionId":"f16e38a7-1112-4b92-b5ac-5b6023ecc86b","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"71.0","moz:accessibilityChecks":false,"moz:buildID":"20191210124657","moz:geckodriverVersion":"0.27.0","moz:headless":true,"moz:processID":3434,"moz:profile":"/tmp/rust_mozprofileyObGfx","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"pageLoadStrategy":"normal","platformName":"linux","platformVersion":"5.0.0-37-generic","rotatable":false,"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify"}}} -1612710069766 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"} -1612710069767 Marionette DEBUG 0 -> [0,2,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"}] -1612710069796 Marionette TRACE [13] Received DOM event beforeunload for about:blank -1612710069876 Marionette TRACE [13] Received DOM event pagehide for about:blank -1612710070930 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2 -1612710070941 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2 -1612710070943 Marionette DEBUG 0 <- [1,2,null,{"value":null}] -1612710070944 webdriver::server DEBUG <- 200 OK {"value":null} -1612710070945 webdriver::server DEBUG -> GET /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/title -1612710070946 Marionette DEBUG 0 -> [0,3,"WebDriver:GetTitle",{}] -1612710070946 Marionette DEBUG 0 <- [1,3,null,{"value":"Loading Dashboard..."}] -1612710070947 webdriver::server DEBUG <- 200 OK {"value":"Loading Dashboard..."} -1612710071449 webdriver::server DEBUG -> GET /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/title -1612710071450 Marionette DEBUG 0 -> [0,4,"WebDriver:GetTitle",{}] -1612710071451 Marionette DEBUG 0 <- [1,4,null,{"value":"Log in to Eclipse Che"}] -1612710071452 webdriver::server DEBUG <- 200 OK {"value":"Log in to Eclipse Che"} -1612710071454 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"username\"]"} -1612710071455 Marionette DEBUG 0 -> [0,5,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"username\"]"}] -1612710071466 Marionette DEBUG 0 <- [1,5,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"2b33d065-bf75-4dba-a20c-0e906c0656da"}}] -1612710071467 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"2b33d065-bf75-4dba-a20c-0e906c0656da"}} -1612710071470 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element/2b33d065-bf75-4dba-a20c-0e906c0656da/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "2b33d065-bf75-4dba-a20c-0e906c0656da"} -1612710071472 Marionette DEBUG 0 -> [0,6,"WebDriver:ElementSendKeys",{"id":"2b33d065-bf75-4dba-a20c-0e906c0656da","text":"admin","value":["a","d","m","i","n"]}] -1612710071508 Marionette DEBUG 0 <- [1,6,null,{"value":null}] -1612710071508 webdriver::server DEBUG <- 200 OK {"value":null} -1612710071509 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"password\"]"} -1612710071510 Marionette DEBUG 0 -> [0,7,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"password\"]"}] -1612710071515 Marionette DEBUG 0 <- [1,7,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"09b14f30-21fd-4aa8-84d0-4b5facc291bf"}}] -1612710071516 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"09b14f30-21fd-4aa8-84d0-4b5facc291bf"}} -1612710071518 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element/09b14f30-21fd-4aa8-84d0-4b5facc291bf/value {"text": "admin", "value": ["a", "d", "m", "i", "n"], "id": "09b14f30-21fd-4aa8-84d0-4b5facc291bf"} -1612710071518 Marionette DEBUG 0 -> [0,8,"WebDriver:ElementSendKeys",{"id":"09b14f30-21fd-4aa8-84d0-4b5facc291bf","text":"admin","value":["a","d","m","i","n"]}] -1612710071529 Marionette DEBUG 0 <- [1,8,null,{"value":null}] -1612710071530 webdriver::server DEBUG <- 200 OK {"value":null} -1612710071531 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"kc-login\"]"} -1612710071532 Marionette DEBUG 0 -> [0,9,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"kc-login\"]"}] -1612710071535 Marionette DEBUG 0 <- [1,9,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"}}] -1612710071536 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"}} -1612710071537 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element/def18eb0-d3d5-49b5-b0fc-a4ee57d81de9/click {"id": "def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"} -1612710071537 Marionette DEBUG 0 -> [0,10,"WebDriver:ElementClick",{"id":"def18eb0-d3d5-49b5-b0fc-a4ee57d81de9"}] -1612710071550 Marionette TRACE [13] Received DOM event beforeunload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... f02b-41e2-be9d-933ff8bd617a&response_mode=fragment&response_type=code&scope=openid&nonce=4e5578f6-4b54-4122-88cf-9d12cc261ca8 -1612710071677 Marionette TRACE [13] Received DOM event pagehide for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... f02b-41e2-be9d-933ff8bd617a&response_mode=fragment&response_type=code&scope=openid&nonce=4e5578f6-4b54-4122-88cf-9d12cc261ca8 -1612710071678 Marionette TRACE [13] Received DOM event unload for https://keycloak-eclipse-che.172.17.0.2.nip.io/auth/realms/che/protocol/openid-connect/auth?client_id=che-public&redirect_uri ... f02b-41e2-be9d-933ff8bd617a&response_mode=fragment&response_type=code&scope=openid&nonce=4e5578f6-4b54-4122-88cf-9d12cc261ca8 -1612710072351 Marionette TRACE [13] Received DOM event DOMContentLoaded for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2&state=a41ac4e5-f02b-41e2-be9d-933 ... dfa841b-3c09-4ad5-9bdf-9bbdf006b385&code=88e0833a-1645-4864-afe8-638109a9749c.6dfa841b-3c09-4ad5-9bdf-9bbdf006b385.che-public -1612710072353 Marionette TRACE [13] Received DOM event pageshow for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2&state=a41ac4e5-f02b-41e2-be9d-933 ... dfa841b-3c09-4ad5-9bdf-9bbdf006b385&code=88e0833a-1645-4864-afe8-638109a9749c.6dfa841b-3c09-4ad5-9bdf-9bbdf006b385.che-public -1612710072354 Marionette DEBUG 0 <- [1,10,null,{"value":null}] -1612710072355 webdriver::server DEBUG <- 200 OK {"value":null} -1612710072356 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/timeouts {"implicit": 20000} -1612710072357 Marionette DEBUG 0 -> [0,11,"WebDriver:SetTimeouts",{"implicit":20000}] -1612710072357 Marionette DEBUG 0 <- [1,11,null,{"value":null}] -1612710072357 webdriver::server DEBUG <- 200 OK {"value":null} -1612710072358 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/url {"url": "https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"} -1612710072359 Marionette DEBUG 0 -> [0,12,"WebDriver:Navigate",{"url":"https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2"}] -1612710072362 Marionette TRACE [13] Received DOM event popstate for https://che-eclipse-che.172.17.0.2.nip.io/dashboard/#/ide/admin/che-helloworld-test-sample2 -1612710072367 Marionette DEBUG 0 <- [1,12,null,{"value":null}] -1612710072368 webdriver::server DEBUG <- 200 OK {"value":null} -1612710072369 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "css selector", "value": "[id=\"ide-application-iframe\"]"} -1612710072370 Marionette DEBUG 0 -> [0,13,"WebDriver:FindElement",{"using":"css selector","value":"[id=\"ide-application-iframe\"]"}] -1612710073967 Marionette DEBUG 0 <- [1,13,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"568c9413-79a0-49c7-8515-e46bd8aa96b5"}}] -1612710073967 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"568c9413-79a0-49c7-8515-e46bd8aa96b5"}} -1612710073969 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/frame {"id": {"ELEMENT": "568c9413-79a0-49c7-8515-e46bd8aa96b5", "element-6066-11e4-a52e-4f735466cecf": "568c9413-79a0-49c7-8515-e46bd8aa96b5"}} -1612710073969 Marionette DEBUG 0 -> [0,14,"WebDriver:SwitchToFrame",{"element":"568c9413-79a0-49c7-8515-e46bd8aa96b5"}] -1612710073975 Marionette DEBUG 0 <- [1,14,null,{"value":null}] -1612710073976 webdriver::server DEBUG <- 200 OK {"value":null} -1612710073977 webdriver::server DEBUG -> POST /session/f16e38a7-1112-4b92-b5ac-5b6023ecc86b/element {"using": "xpath", "value": "//*[@id=\"theia-app-shell\"]"} -1612710073978 Marionette DEBUG 0 -> [0,15,"WebDriver:FindElement",{"using":"xpath","value":"//*[@id=\"theia-app-shell\"]"}] -1612710081261 Marionette DEBUG 0 <- [1,15,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"700c40f6-a666-4065-ad6d-3f56c10fe889"}}] -1612710081261 webdriver::server DEBUG <- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"700c40f6-a666-4065-ad6d-3f56c10fe889"}} -1612710081274 Marionette DEBUG Closed connection 0 diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 53be590c60..7852b2764d 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -41,6 +41,7 @@ login_btn_elem.click() browser.implicitly_wait(20) +print (browser.page_source) browser.get(sys.argv[1]) #Waiting for theia itself to be loaded so that tests will be run diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 0404be6b78..d63dcc0c5a 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -90,3 +90,4 @@ jobs: chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ ./.ci/prepare-extension-project.sh + cat ./.ci/geckodriver.log From 224381c006f8ec379c66b1dfb459978d387d4c9c Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 17:59:54 +0200 Subject: [PATCH 041/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 3 +-- .ci/prepare-extension-project.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 7852b2764d..37832d475a 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -19,7 +19,7 @@ options = Options() options.log.level = "trace" -options.headless = True +options.headless = False NEW_USER="admin" @@ -41,7 +41,6 @@ login_btn_elem.click() browser.implicitly_wait(20) -print (browser.page_source) browser.get(sys.argv[1]) #Waiting for theia itself to be loaded so that tests will be run diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 9d18c5c33e..aa9483ed47 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,6 +62,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" sleep 25 + cat $GITHUB_WORKSPACE/.ci/geckodriver.log # ### Copy extension's sources into theia container From 0a171a0bb7089dbbc38d472c278aefc8e689148e Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 18:14:16 +0200 Subject: [PATCH 042/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 37832d475a..ce52b7cb41 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -19,7 +19,10 @@ options = Options() options.log.level = "trace" -options.headless = False +options.headless = True +options.add_argument('--disable-web-security') +options.add_argument('--allow-running-insecure-content') +options.add_argument('--ignore-certificate-errors') NEW_USER="admin" From d1f88427be9ba12a9be50ef8eedf2510d53be9f8 Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 18:16:53 +0200 Subject: [PATCH 043/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index aa9483ed47..4b4de4c347 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,8 +61,8 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 25 - + sleep 20 + cat $GITHUB_WORKSPACE/.ci/geckodriver.log # ### Copy extension's sources into theia container From 759e3598ea033a6b89f59702eac1ed79a92acda4 Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 18:33:22 +0200 Subject: [PATCH 044/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 6 +++--- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index ce52b7cb41..0abc84a26a 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -26,7 +26,7 @@ NEW_USER="admin" -browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") +browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", log_path='/tmp/selenium.log') wait = WebDriverWait(browser, 30) print ("URL is ------------------>") print (sys.argv[1]) @@ -47,5 +47,5 @@ browser.get(sys.argv[1]) #Waiting for theia itself to be loaded so that tests will be run -# wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) -# wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) +wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) +wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index d63dcc0c5a..0366ee55e1 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -90,4 +90,4 @@ jobs: chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ ./.ci/prepare-extension-project.sh - cat ./.ci/geckodriver.log + cat /tmp/selenium.log From 6d135b87b96be7837258e73f343a8f4647dcbc9d Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 18:51:39 +0200 Subject: [PATCH 045/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 5 ++++- .ci/prepare-extension-project.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 0abc84a26a..9ead373568 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -26,7 +26,7 @@ NEW_USER="admin" -browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", log_path='/tmp/selenium.log') +browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", service_log_path='/tmp/selenium.log') wait = WebDriverWait(browser, 30) print ("URL is ------------------>") print (sys.argv[1]) @@ -46,6 +46,9 @@ browser.implicitly_wait(20) browser.get(sys.argv[1]) +browser.refresh() +browser.implicitly_wait(20) + #Waiting for theia itself to be loaded so that tests will be run wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 4b4de4c347..110c8727a1 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + sleep 25 cat $GITHUB_WORKSPACE/.ci/geckodriver.log From 396d571e582bccc9859eeaa692c6e24877588f10 Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 19:33:49 +0200 Subject: [PATCH 046/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 1 + .ci/prepare-extension-project.sh | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 9ead373568..9de3590034 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -42,6 +42,7 @@ login_btn_elem = browser.find_element_by_id('kc-login') login_btn_elem.click() +print ("After login ------------------>") browser.implicitly_wait(20) browser.get(sys.argv[1]) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 110c8727a1..c1f27716f8 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,9 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 25 - - cat $GITHUB_WORKSPACE/.ci/geckodriver.log + sleep 20 # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 955496be8ec239161baf6e440c4f7deb88ae8dd0 Mon Sep 17 00:00:00 2001 From: svor Date: Sun, 7 Feb 2021 20:08:12 +0200 Subject: [PATCH 047/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 9 ++++++--- .ci/prepare-extension-project.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 9de3590034..f06830eeed 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -50,6 +50,9 @@ browser.refresh() browser.implicitly_wait(20) -#Waiting for theia itself to be loaded so that tests will be run -wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) -wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) +try: + #Waiting for theia itself to be loaded so that tests will be run + wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) + wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) +except Exception as e: + print("Loading took too much time!", e) \ No newline at end of file diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index c1f27716f8..bbb6e241c2 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + sleep 25 # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 5021e9b9fffcadb4d45d205a6d3f802dfc6fc68d Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 12:31:25 +0200 Subject: [PATCH 048/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 15 +++++++++++---- .ci/prepare-extension-project.sh | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index f06830eeed..9015b6cdee 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -44,15 +44,22 @@ login_btn_elem.click() print ("After login ------------------>") -browser.implicitly_wait(20) +browser.implicitly_wait(30) browser.get(sys.argv[1]) -browser.refresh() -browser.implicitly_wait(20) - try: #Waiting for theia itself to be loaded so that tests will be run wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) + print ("Page source ------------------>") + print(browser.page_source) + fileToWrite = open("page_source.html", "w") + fileToWrite.write(browser.page_source) + fileToWrite.close() except Exception as e: + print ("Page source ------------------>") + print(browser.page_source) + fileToWrite = open("page_source.html", "w") + fileToWrite.write(browser.page_source) + fileToWrite.close() print("Loading took too much time!", e) \ No newline at end of file diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index bbb6e241c2..c1f27716f8 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 25 + sleep 20 # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 4f52df2d4b7042166ad74f09924c1678d24f9387 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 13:08:14 +0200 Subject: [PATCH 049/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 7 +------ .github/workflows/vscode-extension-tests-check.yaml | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 9015b6cdee..1206a137f9 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -44,18 +44,13 @@ login_btn_elem.click() print ("After login ------------------>") -browser.implicitly_wait(30) +browser.implicitly_wait(20) browser.get(sys.argv[1]) try: #Waiting for theia itself to be loaded so that tests will be run wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) - print ("Page source ------------------>") - print(browser.page_source) - fileToWrite = open("page_source.html", "w") - fileToWrite.write(browser.page_source) - fileToWrite.close() except Exception as e: print ("Page source ------------------>") print(browser.page_source) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 0366ee55e1..0404be6b78 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -90,4 +90,3 @@ jobs: chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ ./.ci/prepare-extension-project.sh - cat /tmp/selenium.log From e3349428b0f306f511db88dd608721444178e9b1 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 14:04:23 +0200 Subject: [PATCH 050/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 1 + .ci/prepare-extension-project.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 1206a137f9..315e31415b 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -46,6 +46,7 @@ browser.implicitly_wait(20) browser.get(sys.argv[1]) +time.sleep(20) try: #Waiting for theia itself to be loaded so that tests will be run diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index c1f27716f8..38f8a95a91 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + sleep 10 # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From cb7277dc3b852f4271aee4b5fdfdb668b4e6100b Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 15:00:39 +0200 Subject: [PATCH 051/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 3 +++ .ci/prepare-extension-project.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 315e31415b..48540b188a 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -47,12 +47,15 @@ browser.implicitly_wait(20) browser.get(sys.argv[1]) time.sleep(20) +browser.get(sys.argv[1]) try: #Waiting for theia itself to be loaded so that tests will be run wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) except Exception as e: + browser.get(sys.argv[1]) + time.sleep(20) print ("Page source ------------------>") print(browser.page_source) fileToWrite = open("page_source.html", "w") diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 38f8a95a91..1ced2f977e 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 10 + sleep 15 # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 6499a34f90d410e12a22e17eb499b01329f824ff Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 21:27:36 +0200 Subject: [PATCH 052/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 -- .github/workflows/vscode-extension-tests-check.yaml | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 48540b188a..0ea85e6872 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -46,8 +46,6 @@ browser.implicitly_wait(20) browser.get(sys.argv[1]) -time.sleep(20) -browser.get(sys.argv[1]) try: #Waiting for theia itself to be loaded so that tests will be run diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 0404be6b78..c9f7e443df 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -85,7 +85,8 @@ jobs: run: | sudo pip install yq sudo pip install selenium - wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz + sudo apt-get install -y firefox + wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz tar -xvzf geckodriver* chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ From dc302a7a40317aa06a528ea680ee5bb359f9a99e Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 22:21:49 +0200 Subject: [PATCH 053/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 +- .github/workflows/vscode-extension-tests-check.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 0ea85e6872..d26a126147 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -27,7 +27,7 @@ NEW_USER="admin" browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", service_log_path='/tmp/selenium.log') -wait = WebDriverWait(browser, 30) +wait = WebDriverWait(browser, 50) print ("URL is ------------------>") print (sys.argv[1]) browser.get(sys.argv[1]) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index c9f7e443df..d71007804f 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -84,7 +84,6 @@ jobs: - name: Prepare project run: | sudo pip install yq - sudo pip install selenium sudo apt-get install -y firefox wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz tar -xvzf geckodriver* From 254a75723fe72e070eb6e00589c8edcdab03f275 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 22:34:54 +0200 Subject: [PATCH 054/157] update action Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index d71007804f..7d9ac20542 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -84,7 +84,7 @@ jobs: - name: Prepare project run: | sudo pip install yq - sudo apt-get install -y firefox + sudo pip install selenium wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz tar -xvzf geckodriver* chmod +x geckodriver From 161030b2c8484f54399cd51d58edf54e61d7f105 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 23:00:02 +0200 Subject: [PATCH 055/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index d26a126147..f844c3897a 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -27,7 +27,7 @@ NEW_USER="admin" browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", service_log_path='/tmp/selenium.log') -wait = WebDriverWait(browser, 50) +wait = WebDriverWait(browser, 80) print ("URL is ------------------>") print (sys.argv[1]) browser.get(sys.argv[1]) From e17ea4b9392d285e827c8e49dd023f0388aba66a Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 8 Feb 2021 23:00:46 +0200 Subject: [PATCH 056/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 1ced2f977e..c1f27716f8 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 15 + sleep 20 # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 49cbf19dc8a49e2917ca568f25e5a0523b9f823d Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 12:25:31 +0200 Subject: [PATCH 057/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 +- .ci/prepare-extension-project.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index f844c3897a..7c61c00427 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -27,7 +27,7 @@ NEW_USER="admin" browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", service_log_path='/tmp/selenium.log') -wait = WebDriverWait(browser, 80) +wait = WebDriverWait(browser, 70) print ("URL is ------------------>") print (sys.argv[1]) browser.get(sys.argv[1]) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index c1f27716f8..bbb6e241c2 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + sleep 25 # ### Copy extension's sources into theia container # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From dbfaa9b868d9ad478feb4d70b4b8c9596ca734c5 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 13:31:58 +0200 Subject: [PATCH 058/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index bbb6e241c2..17afaa2eeb 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -34,6 +34,7 @@ function buildProject() { function createWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt + cat workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" From ef91091f8cfec3fbffe489e56ee071ad62cc3da2 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 13:57:46 +0200 Subject: [PATCH 059/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 17afaa2eeb..6cef77f761 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -39,21 +39,21 @@ function createWorkspace() { echo "$WORKSPACE_URL" echo "-------" - pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) + pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) echo "$pods" - while [ "$pods" == 'No resources found in eclipse-che namespace.' ]; + while [ "$pods" == 'No resources found in admin-che namespace.' ]; do echo "Workspace is not ready" - kubectl get pod -n eclipse-che -l che.workspace_id + kubectl get pod -n admin-che -l che.workspace_id sleep 10 - pods=$(kubectl get pod -n eclipse-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) + pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) done - kubectl get pods -n eclipse-che -l che.workspace_id + kubectl get pods -n admin-che -l che.workspace_id ### Find workspace name and theia-ide container - WORKSPACE_NAME=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.name' | tr -d \") - THEIA_IDE_CONTAINER_NAME=$(kubectl get pod -n eclipse-che -l che.workspace_id -o json | jq '.items[0].metadata.annotations[]' | grep -P "theia-ide" | tr -d \") + WORKSPACE_NAME=$(kubectl get pod -n admin-che -l che.workspace_id -o json | jq '.items[0].metadata.name' | tr -d \") + THEIA_IDE_CONTAINER_NAME=$(kubectl get pod -n admin-che -l che.workspace_id -o json | jq '.items[0].metadata.annotations[]' | grep -P "theia-ide" | tr -d \") echo "Workspace name is: " echo "$WORKSPACE_NAME" From d82ee2162b03ebb354fc39229e249b952795fd7d Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 14:29:33 +0200 Subject: [PATCH 060/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 12 +++--------- .ci/prepare-extension-project.sh | 14 +++++++------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index 7c61c00427..a74b6e2921 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -27,7 +27,7 @@ NEW_USER="admin" browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", service_log_path='/tmp/selenium.log') -wait = WebDriverWait(browser, 70) +wait = WebDriverWait(browser, 20) print ("URL is ------------------>") print (sys.argv[1]) browser.get(sys.argv[1]) @@ -49,14 +49,8 @@ try: #Waiting for theia itself to be loaded so that tests will be run - wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-application-iframe'))) + wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-iframe'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) + print("----- Completed!") except Exception as e: - browser.get(sys.argv[1]) - time.sleep(20) - print ("Page source ------------------>") - print(browser.page_source) - fileToWrite = open("page_source.html", "w") - fileToWrite.write(browser.page_source) - fileToWrite.close() print("Loading took too much time!", e) \ No newline at end of file diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 6cef77f761..26926f0fb0 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,14 +62,14 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 25 + sleep 20 - # ### Copy extension's sources into theia container - # kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME - # ### Check if copy - # kubectl cp eclipse-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME - # echo "----- Check content of package.json --------" - # cat /tmp/package.json + ### Copy extension's sources into theia container + kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME + ### Check if copy + kubectl cp eclipse-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME + echo "----- Check content of package.json --------" + cat /tmp/package.json } findRepositoryDetails From bf2fdf3bd529edfd992c4473d0495d42e67e4000 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 15:08:59 +0200 Subject: [PATCH 061/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 2 +- .ci/prepare-extension-project.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index a74b6e2921..c636b712f7 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -27,7 +27,7 @@ NEW_USER="admin" browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", service_log_path='/tmp/selenium.log') -wait = WebDriverWait(browser, 20) +wait = WebDriverWait(browser, 30) print ("URL is ------------------>") print (sys.argv[1]) browser.get(sys.argv[1]) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 26926f0fb0..da290d2e12 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,7 +62,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + sleep 15 ### Copy extension's sources into theia container kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From df2aa2e0a43720d2e71fc5f619d0fb515093a82d Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 15:24:17 +0200 Subject: [PATCH 062/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index da290d2e12..002974f67d 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,12 +62,12 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 15 + sleep 20 ### Copy extension's sources into theia container - kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME eclipse-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME + kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME ### Check if copy - kubectl cp eclipse-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME + kubectl cp admin-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME echo "----- Check content of package.json --------" cat /tmp/package.json } From f78839ed04fb5a2023fbb333dbb42b6b61245bfb Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 15:44:10 +0200 Subject: [PATCH 063/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 4 +++- .ci/prepare-extension-project.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index c636b712f7..e2bc71f015 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -17,6 +17,8 @@ from selenium.webdriver.firefox.options import Options from selenium.webdriver.common.by import By +print ("Start script ------------------>") + options = Options() options.log.level = "trace" options.headless = True @@ -26,7 +28,7 @@ NEW_USER="admin" -browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver", service_log_path='/tmp/selenium.log') +browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") wait = WebDriverWait(browser, 30) print ("URL is ------------------>") print (sys.argv[1]) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 002974f67d..50962d69cc 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,7 +62,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + sleep 15 ### Copy extension's sources into theia container kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 403e20cce736de83c0a0a34b91dc835858d4ca94 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 18:04:42 +0200 Subject: [PATCH 064/157] update action Signed-off-by: svor --- .ci/language-tests-runner.py | 3 ++- .ci/prepare-extension-project.sh | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index e2bc71f015..fd38fc333b 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -53,6 +53,7 @@ #Waiting for theia itself to be loaded so that tests will be run wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-iframe'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) - print("----- Completed!") + wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="/projects:/projects/test.log"]'))) + print("----- Workspace is started -----") except Exception as e: print("Loading took too much time!", e) \ No newline at end of file diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 50962d69cc..692fec8bdb 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -34,7 +34,6 @@ function buildProject() { function createWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt - cat workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" From 6627e6cc7534de1fdebd50789e32653ab635073c Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 9 Feb 2021 18:36:13 +0200 Subject: [PATCH 065/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 692fec8bdb..148b034242 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,7 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 15 + sleep 20 ### Copy extension's sources into theia container kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME From 12f4b0fceb7fe418ee4296f3357339a9176de7fc Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 13:07:06 +0200 Subject: [PATCH 066/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 148b034242..8c3ea3ac90 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -32,7 +32,7 @@ function buildProject() { yarn build } -function createWorkspace() { +function prepareWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" @@ -62,7 +62,9 @@ function createWorkspace() { # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" sleep 20 +} +function copySources() { ### Copy extension's sources into theia container kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME ### Check if copy @@ -71,7 +73,26 @@ function createWorkspace() { cat /tmp/package.json } +function checkTestLogs() { + kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log ./test.log -c "${THEIA_IDE_CONTAINER_NAME}" + while ! grep -q "TESTS PASSED" test.log && ! grep -q "TESTS FAILED" test.log; + do + echo "Waiting for log file to be created and have TESTS FAILED or TESTS PASSED" + sleep 10 + kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log ./test.log -c "${THEIA_IDE_CONTAINER_NAME}" + done + + cat test.log + + # Test to see if the tests failed + if grep -q "TESTS FAILED" test.log; + then + exit 1 + fi +} + findRepositoryDetails cloneExtension buildProject -createWorkspace +prepareWorkspace +copySources From f7736a65c331dc2a78591acade5b5e909c2c56a1 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 13:43:13 +0200 Subject: [PATCH 067/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 8c3ea3ac90..6f0ff1f6cc 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -66,7 +66,7 @@ function prepareWorkspace() { function copySources() { ### Copy extension's sources into theia container - kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/pojects -c $THEIA_IDE_CONTAINER_NAME + kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/projects -c $THEIA_IDE_CONTAINER_NAME ### Check if copy kubectl cp admin-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME echo "----- Check content of package.json --------" From fa8355956f5e2df4621f830e99766aa681820a74 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 14:04:15 +0200 Subject: [PATCH 068/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 6f0ff1f6cc..fd05bf1469 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -66,9 +66,13 @@ function prepareWorkspace() { function copySources() { ### Copy extension's sources into theia container - kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/projects -c $THEIA_IDE_CONTAINER_NAME + echo "----- Copy Sources --------" + kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/projects -c $THEIA_IDE_CONTAINER_NAME + echo "----- Sources were copied --------" ### Check if copy - kubectl cp admin-che/"${WORKSPACE_NAME}":/pojects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME + kubectl exec ${WORKSPACE_NAME} -n admin-che -c $THEIA_IDE_CONTAINER_NAME -- ls -la /projects + echo "----- Copy package.json --------" + kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME echo "----- Check content of package.json --------" cat /tmp/package.json } From 65794175d399087733f3ee0055cd10109bf5f854 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 14:22:23 +0200 Subject: [PATCH 069/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index fd05bf1469..46add421a6 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -59,13 +59,15 @@ function prepareWorkspace() { echo "Theia IDE Container Name is: " echo "$THEIA_IDE_CONTAINER_NAME" + ### Copy extension's sources into theia container + copySources + # Start the python3 selenium script that will connect to the workspace to run tests python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" sleep 20 } function copySources() { - ### Copy extension's sources into theia container echo "----- Copy Sources --------" kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/projects -c $THEIA_IDE_CONTAINER_NAME echo "----- Sources were copied --------" @@ -99,4 +101,4 @@ findRepositoryDetails cloneExtension buildProject prepareWorkspace -copySources +checkTestLogs From 8e35c31b7debef2b499e4910e4a1d72985b7530b Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 14:53:31 +0200 Subject: [PATCH 070/157] update action Signed-off-by: svor --- .ci/prepare-extension-project.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 46add421a6..846bef1488 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -80,18 +80,18 @@ function copySources() { } function checkTestLogs() { - kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log ./test.log -c "${THEIA_IDE_CONTAINER_NAME}" + kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log /tmp/test.log -c "${THEIA_IDE_CONTAINER_NAME}" while ! grep -q "TESTS PASSED" test.log && ! grep -q "TESTS FAILED" test.log; do echo "Waiting for log file to be created and have TESTS FAILED or TESTS PASSED" sleep 10 - kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log ./test.log -c "${THEIA_IDE_CONTAINER_NAME}" + kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log /tmp/test.log -c "${THEIA_IDE_CONTAINER_NAME}" done - cat test.log + cat /tmp/test.log # Test to see if the tests failed - if grep -q "TESTS FAILED" test.log; + if grep -q "TESTS FAILED" /tmp/test.log; then exit 1 fi From 174383ef0562a2bcc205a43bdbef878bea4fedaa Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 16:56:56 +0200 Subject: [PATCH 071/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 846bef1488..d36dc22fba 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -73,13 +73,9 @@ function copySources() { echo "----- Sources were copied --------" ### Check if copy kubectl exec ${WORKSPACE_NAME} -n admin-che -c $THEIA_IDE_CONTAINER_NAME -- ls -la /projects - echo "----- Copy package.json --------" - kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/vscode-yaml/package.json /tmp/package.json -c $THEIA_IDE_CONTAINER_NAME - echo "----- Check content of package.json --------" - cat /tmp/package.json } -function checkTestLogs() { +function checkTestsLogs() { kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log /tmp/test.log -c "${THEIA_IDE_CONTAINER_NAME}" while ! grep -q "TESTS PASSED" test.log && ! grep -q "TESTS FAILED" test.log; do @@ -101,4 +97,4 @@ findRepositoryDetails cloneExtension buildProject prepareWorkspace -checkTestLogs +checkTestsLogs From dc8efc27e4cce1831d8b6ace00e7bb86913bc291 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 17:22:39 +0200 Subject: [PATCH 072/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index d36dc22fba..b6cc1bd6e4 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -77,7 +77,7 @@ function copySources() { function checkTestsLogs() { kubectl cp admin-che/"${WORKSPACE_NAME}":/projects/test.log /tmp/test.log -c "${THEIA_IDE_CONTAINER_NAME}" - while ! grep -q "TESTS PASSED" test.log && ! grep -q "TESTS FAILED" test.log; + while ! grep -q "TESTS PASSED" /tmp/test.log && ! grep -q "TESTS FAILED" /tmp/test.log; do echo "Waiting for log file to be created and have TESTS FAILED or TESTS PASSED" sleep 10 From c31d67a29cb97b3084ff44da4b13bbed99437586 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 10 Feb 2021 18:14:33 +0200 Subject: [PATCH 073/157] update Signed-off-by: svor --- .ci/language-tests-runner.py | 4 +-- .ci/prepare-extension-project.sh | 11 ++++++- .../vscode-extension-tests-check.yaml | 33 +------------------ 3 files changed, 12 insertions(+), 36 deletions(-) diff --git a/.ci/language-tests-runner.py b/.ci/language-tests-runner.py index fd38fc333b..c2e0a6ebfb 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/language-tests-runner.py @@ -30,7 +30,6 @@ browser = webdriver.Firefox(options=options, executable_path="/usr/local/bin/geckodriver") wait = WebDriverWait(browser, 30) -print ("URL is ------------------>") print (sys.argv[1]) browser.get(sys.argv[1]) @@ -44,7 +43,6 @@ login_btn_elem = browser.find_element_by_id('kc-login') login_btn_elem.click() -print ("After login ------------------>") browser.implicitly_wait(20) browser.get(sys.argv[1]) @@ -54,6 +52,6 @@ wait.until(EC.frame_to_be_available_and_switch_to_it((By.ID, 'ide-iframe'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="theia-app-shell"]'))) wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="/projects:/projects/test.log"]'))) - print("----- Workspace is started -----") + print("----- Workspace is ready -----") except Exception as e: print("Loading took too much time!", e) \ No newline at end of file diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index b6cc1bd6e4..799c5fd30a 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -11,6 +11,15 @@ set -e +function installDeps() { + sudo pip install yq + sudo pip install selenium + wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz + tar -xvzf geckodriver* + chmod +x geckodriver + sudo mv geckodriver /usr/local/bin/ +} + function findRepositoryDetails() { export YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) @@ -37,7 +46,6 @@ function prepareWorkspace() { export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" - echo "-------" pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) echo "$pods" while [ "$pods" == 'No resources found in admin-che namespace.' ]; @@ -93,6 +101,7 @@ function checkTestsLogs() { fi } +installDeps findRepositoryDetails cloneExtension buildProject diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 7d9ac20542..c450b91b6d 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -29,31 +29,6 @@ jobs: - uses: actions/setup-node@v1 with: node-version: '12' - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2 - name: Cache yarn dependencies - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - uses: actions/cache@v2 - name: Cache vsix dependencies - id: download-unpacked-cache - with: - path: | - /tmp/che-plugin-registry/download-folder - /tmp/che-plugin-registry/unpack-folder - key: download-unpacked-cache-${{ hashFiles('**/che-theia-plugins.yaml') }} - restore-keys: | - download-unpacked-cache- - - name: image-build run: | export SKIP_FORMAT=true @@ -81,12 +56,6 @@ jobs: with: # use custom image built by this PR plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - - name: Prepare project + - name: Run VSCode extension's tests run: | - sudo pip install yq - sudo pip install selenium - wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz - tar -xvzf geckodriver* - chmod +x geckodriver - sudo mv geckodriver /usr/local/bin/ ./.ci/prepare-extension-project.sh From 6e6366bfa38295890ac6dc7988b6ad331b26db92 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 17 Feb 2021 14:52:43 +0200 Subject: [PATCH 074/157] generate devfile Signed-off-by: svor --- .ci/prepare-extension-project.sh | 23 +++++++++++++++++++++- .ci/templates/extension-tests-devfile.yaml | 9 +++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .ci/templates/extension-tests-devfile.yaml diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 799c5fd30a..e10ea8f7dd 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -36,13 +36,33 @@ function cloneExtension() { git status } +function prepareDevfile() { + # Get Extension's ID + EXTENSION_ID=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '[.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO)] | .[1] | .id' che-theia-plugins.yaml) + if [ "$EXTENSION_ID" == null ]; + then + # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name + echo ----- In I + PACKAGE_JSON=/tmp/projects/$YAML_EXTENSION_PROJECT_NAME/package.json + EXTENSION_NAME=$(yq -r '.name' $PACKAGE_JSON) + EXTENSION_PUBLISHER=$(yq -r '.publisher' $PACKAGE_JSON) + EXTENSION_ID=$EXTENSION_PUBLISHER/$EXTENSION_NAME + fi + EXTENSION_ID=$EXTENSION_ID/latest + echo Extension ID is ---------> $EXTENSION_ID + + # Add Extension's ID into devfile template + sed -i -e "s|@|$EXTENSION_ID|g" ./ci/templates/extension-tests-devfile.yaml + cat ./ci/templates/extension-tests-devfile.yaml +} + function buildProject() { yarn install yarn build } function prepareWorkspace() { - chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt + chectl workspace:create --start --devfile=./ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" @@ -105,5 +125,6 @@ installDeps findRepositoryDetails cloneExtension buildProject +prepareDevfile prepareWorkspace checkTestsLogs diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml new file mode 100644 index 0000000000..bd6abf805a --- /dev/null +++ b/.ci/templates/extension-tests-devfile.yaml @@ -0,0 +1,9 @@ +apiVersion: 1.0.0 +metadata: + name: test-vscode-extension +components: + - type: chePlugin + reference: '@' + - id: eclipse/che-theia/next + memoryLimit: 1024Mi + type: cheEditor From 5a71775ab9ad6980746240299c83bf9ea7fbe0e1 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 17 Feb 2021 15:11:46 +0200 Subject: [PATCH 075/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index e10ea8f7dd..d25a7f97c3 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -38,7 +38,7 @@ function cloneExtension() { function prepareDevfile() { # Get Extension's ID - EXTENSION_ID=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '[.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO)] | .[1] | .id' che-theia-plugins.yaml) + EXTENSION_ID=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '[.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO)] | .[1] | .id' $GITHUB_WORKSPACE/che-theia-plugins.yaml) if [ "$EXTENSION_ID" == null ]; then # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name @@ -52,7 +52,7 @@ function prepareDevfile() { echo Extension ID is ---------> $EXTENSION_ID # Add Extension's ID into devfile template - sed -i -e "s|@|$EXTENSION_ID|g" ./ci/templates/extension-tests-devfile.yaml + sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml cat ./ci/templates/extension-tests-devfile.yaml } From 9790b3b01145c89396d793499e63aedf8bdf8151 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 17 Feb 2021 15:36:03 +0200 Subject: [PATCH 076/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index d25a7f97c3..2fc815df80 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -48,12 +48,13 @@ function prepareDevfile() { EXTENSION_PUBLISHER=$(yq -r '.publisher' $PACKAGE_JSON) EXTENSION_ID=$EXTENSION_PUBLISHER/$EXTENSION_NAME fi + echo ----- Out EXTENSION_ID=$EXTENSION_ID/latest echo Extension ID is ---------> $EXTENSION_ID # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml - cat ./ci/templates/extension-tests-devfile.yaml + cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml } function buildProject() { From 8de81b0555d23b61967ff71d011344944f8995a9 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 17 Feb 2021 16:01:24 +0200 Subject: [PATCH 077/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 2fc815df80..c69553ba18 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -50,7 +50,6 @@ function prepareDevfile() { fi echo ----- Out EXTENSION_ID=$EXTENSION_ID/latest - echo Extension ID is ---------> $EXTENSION_ID # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml From 83c17ceeea5a46825b30ecacffdeb26342f311eb Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 17 Feb 2021 16:22:11 +0200 Subject: [PATCH 078/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index c69553ba18..6b03d3113b 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -42,17 +42,16 @@ function prepareDevfile() { if [ "$EXTENSION_ID" == null ]; then # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name - echo ----- In I PACKAGE_JSON=/tmp/projects/$YAML_EXTENSION_PROJECT_NAME/package.json EXTENSION_NAME=$(yq -r '.name' $PACKAGE_JSON) EXTENSION_PUBLISHER=$(yq -r '.publisher' $PACKAGE_JSON) EXTENSION_ID=$EXTENSION_PUBLISHER/$EXTENSION_NAME fi - echo ----- Out EXTENSION_ID=$EXTENSION_ID/latest # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml + echo --- Devfile --- cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml } @@ -62,7 +61,7 @@ function buildProject() { } function prepareWorkspace() { - chectl workspace:create --start --devfile=./ci/templates/extension-tests-devfile.yaml > workspace_url.txt + chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" From 1ddc57fc396d0bd9249cdfa22e9bddb3332dcd5c Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 17 Feb 2021 16:55:18 +0200 Subject: [PATCH 079/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- .ci/templates/extension-tests-devfile.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 6b03d3113b..4d10ffc4a9 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -51,7 +51,7 @@ function prepareDevfile() { # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml - echo --- Devfile --- + echo ---- Devfile ---- cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml } diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index bd6abf805a..94b9e2ad1a 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -3,7 +3,7 @@ metadata: name: test-vscode-extension components: - type: chePlugin - reference: '@' + id: '@' - id: eclipse/che-theia/next memoryLimit: 1024Mi type: cheEditor From 7bc8716937cc240ba3571a4d80a02875d2506daf Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 17 Feb 2021 19:03:41 +0200 Subject: [PATCH 080/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- .ci/templates/extension-tests-devfile.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 4d10ffc4a9..8c60eca159 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -51,7 +51,7 @@ function prepareDevfile() { # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml - echo ---- Devfile ---- + echo ----- Devfile ----- cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml } diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index 94b9e2ad1a..baa2960584 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,6 +1,12 @@ apiVersion: 1.0.0 metadata: name: test-vscode-extension +projects: + - name: helloworld-test-sample + source: + location: 'https://github.com/svor/che-vscode-extension-tests.git' + type: git + branch: main components: - type: chePlugin id: '@' From bd72f44d31e3f43cea8ab01016572583689ab9ad Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 09:54:33 +0200 Subject: [PATCH 081/157] update Signed-off-by: svor --- .ci/templates/extension-tests-devfile.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index baa2960584..3d2facfd39 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -10,6 +10,8 @@ projects: components: - type: chePlugin id: '@' + - type: chePlugin + reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next memoryLimit: 1024Mi type: cheEditor From 4ae001a6631e4750e1e3fbd365c98520964fb37b Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 09:56:43 +0200 Subject: [PATCH 082/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- .ci/templates/extension-tests-devfile.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 8c60eca159..4d10ffc4a9 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -51,7 +51,7 @@ function prepareDevfile() { # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml - echo ----- Devfile ----- + echo ---- Devfile ---- cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml } diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index 3d2facfd39..a5a4f0464d 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -2,7 +2,7 @@ apiVersion: 1.0.0 metadata: name: test-vscode-extension projects: - - name: helloworld-test-sample + - name: che-vscode-extension-tests source: location: 'https://github.com/svor/che-vscode-extension-tests.git' type: git From 9e3172750f07f04ef6916a418366699067def3eb Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 11:27:20 +0200 Subject: [PATCH 083/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 3 ++- .ci/templates/extension-tests-devfile.yaml | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 4d10ffc4a9..b44ce9cc37 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -71,7 +71,8 @@ function prepareWorkspace() { do echo "Workspace is not ready" kubectl get pod -n admin-che -l che.workspace_id - sleep 10 + kubectl get pod -n admin-che + sleep 5 pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) done diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index a5a4f0464d..f84cefcd82 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,15 +1,9 @@ apiVersion: 1.0.0 metadata: name: test-vscode-extension -projects: - - name: che-vscode-extension-tests - source: - location: 'https://github.com/svor/che-vscode-extension-tests.git' - type: git - branch: main components: - type: chePlugin - id: '@' + id: 'redhat/vscode-yaml/latest' - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next From c0993d618cecf06c2a9fddf6b97a2b97eca535ae Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 11:51:55 +0200 Subject: [PATCH 084/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index b44ce9cc37..230b8867f6 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -70,9 +70,9 @@ function prepareWorkspace() { while [ "$pods" == 'No resources found in admin-che namespace.' ]; do echo "Workspace is not ready" - kubectl get pod -n admin-che -l che.workspace_id kubectl get pod -n admin-che - sleep 5 + kubectl get pod -n eclipse-che + sleep 10 pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) done From 7196e361c91c8ccbea897cc513ed04967bc798f2 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 12:24:44 +0200 Subject: [PATCH 085/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 230b8867f6..6b88178f66 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,8 @@ function buildProject() { } function prepareWorkspace() { - chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt + chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt + # chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" From 47711452d44365c15ae6fedb97f07cd697c55489 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 12:56:57 +0200 Subject: [PATCH 086/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 ++-- .ci/templates/extension-tests-devfile.yaml | 22 +++++++++++++++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 6b88178f66..cef3c9cec7 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,8 +61,8 @@ function buildProject() { } function prepareWorkspace() { - chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt - # chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt + # chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt + chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index f84cefcd82..4195656b8f 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,11 +1,27 @@ apiVersion: 1.0.0 metadata: - name: test-vscode-extension + name: che-helloworld-test-sample +projects: + - name: helloworld-test-sample + source: + location: 'https://github.com/svor/helloworld-test-sample.git' + type: git + branch: main components: - - type: chePlugin - id: 'redhat/vscode-yaml/latest' + - mountSources: true + memoryLimit: 3Gi + type: dockerimage + image: 'quay.io/eclipse/che-theia-dev:next' + alias: che-dev - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next memoryLimit: 1024Mi type: cheEditor +commands: + - name: 1. Build extension + actions: + - type: exec + component: che-dev + command: yarn && yarn compile + workdir: ${CHE_PROJECTS_ROOT}/helloworld-test-sample \ No newline at end of file From d51bb8675fbd084157d83afd339c2814854052ff Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 13:15:24 +0200 Subject: [PATCH 087/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 - .ci/templates/extension-tests-devfile.yaml | 22 +++------------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index cef3c9cec7..230b8867f6 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,7 +61,6 @@ function buildProject() { } function prepareWorkspace() { - # chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index 4195656b8f..8ff4b79a9a 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,27 +1,11 @@ apiVersion: 1.0.0 metadata: - name: che-helloworld-test-sample -projects: - - name: helloworld-test-sample - source: - location: 'https://github.com/svor/helloworld-test-sample.git' - type: git - branch: main + name: vscode-test-sample components: - - mountSources: true - memoryLimit: 3Gi - type: dockerimage - image: 'quay.io/eclipse/che-theia-dev:next' - alias: che-dev + - type: chePlugin + id: @ - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next memoryLimit: 1024Mi type: cheEditor -commands: - - name: 1. Build extension - actions: - - type: exec - component: che-dev - command: yarn && yarn compile - workdir: ${CHE_PROJECTS_ROOT}/helloworld-test-sample \ No newline at end of file From 18904dace0fb5b21ca3451c6727cc9bfd0cfc81c Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 13:35:40 +0200 Subject: [PATCH 088/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 - .ci/templates/extension-tests-devfile.yaml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 230b8867f6..e49cc13710 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -71,7 +71,6 @@ function prepareWorkspace() { do echo "Workspace is not ready" kubectl get pod -n admin-che - kubectl get pod -n eclipse-che sleep 10 pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) done diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index 8ff4b79a9a..f84cefcd82 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,9 +1,9 @@ apiVersion: 1.0.0 metadata: - name: vscode-test-sample + name: test-vscode-extension components: - type: chePlugin - id: @ + id: 'redhat/vscode-yaml/latest' - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next From 9ce60eb9d49205ad0328926f3857492265950bd0 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 14:11:35 +0200 Subject: [PATCH 089/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 ++ .ci/templates/extension-tests-devfile.yaml | 22 +++++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index e49cc13710..cef3c9cec7 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,6 +61,7 @@ function buildProject() { } function prepareWorkspace() { + # chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" @@ -71,6 +72,7 @@ function prepareWorkspace() { do echo "Workspace is not ready" kubectl get pod -n admin-che + kubectl get pod -n eclipse-che sleep 10 pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) done diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index f84cefcd82..4195656b8f 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,11 +1,27 @@ apiVersion: 1.0.0 metadata: - name: test-vscode-extension + name: che-helloworld-test-sample +projects: + - name: helloworld-test-sample + source: + location: 'https://github.com/svor/helloworld-test-sample.git' + type: git + branch: main components: - - type: chePlugin - id: 'redhat/vscode-yaml/latest' + - mountSources: true + memoryLimit: 3Gi + type: dockerimage + image: 'quay.io/eclipse/che-theia-dev:next' + alias: che-dev - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next memoryLimit: 1024Mi type: cheEditor +commands: + - name: 1. Build extension + actions: + - type: exec + component: che-dev + command: yarn && yarn compile + workdir: ${CHE_PROJECTS_ROOT}/helloworld-test-sample \ No newline at end of file From c2a6e89f8dbd282e9201787b44074b246ed3e882 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 14:30:44 +0200 Subject: [PATCH 090/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index cef3c9cec7..515b690322 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,7 +62,7 @@ function buildProject() { function prepareWorkspace() { # chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt - chectl workspace:create --start --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt + chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" From fa1564da5b790eb43225bbbfd2916e210f2ffa69 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 15:05:50 +0200 Subject: [PATCH 091/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 - .ci/templates/extension-tests-devfile.yaml | 22 +++------------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 515b690322..375a6fcb9a 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -67,7 +67,6 @@ function prepareWorkspace() { echo "$WORKSPACE_URL" pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) - echo "$pods" while [ "$pods" == 'No resources found in admin-che namespace.' ]; do echo "Workspace is not ready" diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index 4195656b8f..daad657c95 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,27 +1,11 @@ apiVersion: 1.0.0 metadata: name: che-helloworld-test-sample -projects: - - name: helloworld-test-sample - source: - location: 'https://github.com/svor/helloworld-test-sample.git' - type: git - branch: main components: - - mountSources: true - memoryLimit: 3Gi - type: dockerimage - image: 'quay.io/eclipse/che-theia-dev:next' - alias: che-dev + - type: chePlugin + id: @ - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next memoryLimit: 1024Mi - type: cheEditor -commands: - - name: 1. Build extension - actions: - - type: exec - component: che-dev - command: yarn && yarn compile - workdir: ${CHE_PROJECTS_ROOT}/helloworld-test-sample \ No newline at end of file + type: cheEditor \ No newline at end of file From a6dce2caf05643781628a4fd02b854390fa42b95 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 15:23:55 +0200 Subject: [PATCH 092/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 375a6fcb9a..ab87a0141c 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -69,6 +69,7 @@ function prepareWorkspace() { pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) while [ "$pods" == 'No resources found in admin-che namespace.' ]; do + chectl workspace:list echo "Workspace is not ready" kubectl get pod -n admin-che kubectl get pod -n eclipse-che From 54d5783f5521fb8d3fc1cfe18ab4ac212f0783d2 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 16:33:34 +0200 Subject: [PATCH 093/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index ab87a0141c..692030af87 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -70,6 +70,12 @@ function prepareWorkspace() { while [ "$pods" == 'No resources found in admin-che namespace.' ]; do chectl workspace:list + WORKSPACE=chectl workspace:list | grep -oh "\w*workspace\w*" + echo WORKSPACE + chectl workspace:logs --workspace=$WORKSPACE --namespace=admin-che --directory=/tmp + echo "-------------------------------------------" + cat /tmp/admin-che/events.txt + echo "-------------------------------------------" echo "Workspace is not ready" kubectl get pod -n admin-che kubectl get pod -n eclipse-che From 1705184fc350eb45cf154ab9111df769dd3afe8b Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 19:17:13 +0200 Subject: [PATCH 094/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 692030af87..88da0ef734 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -70,7 +70,7 @@ function prepareWorkspace() { while [ "$pods" == 'No resources found in admin-che namespace.' ]; do chectl workspace:list - WORKSPACE=chectl workspace:list | grep -oh "\w*workspace\w*" + WORKSPACE=$(chectl workspace:list | grep -oh "\w*workspace\w*") echo WORKSPACE chectl workspace:logs --workspace=$WORKSPACE --namespace=admin-che --directory=/tmp echo "-------------------------------------------" From a6aeba456b1587d7448294de6cdaa63e0bc5cfc8 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 19:37:46 +0200 Subject: [PATCH 095/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 88da0ef734..eb08b5bf12 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -72,7 +72,7 @@ function prepareWorkspace() { chectl workspace:list WORKSPACE=$(chectl workspace:list | grep -oh "\w*workspace\w*") echo WORKSPACE - chectl workspace:logs --workspace=$WORKSPACE --namespace=admin-che --directory=/tmp + chectl workspace:logs --workspace=$WORKSPACE --namespace=admin-che --directory=/tmp > /dev/null echo "-------------------------------------------" cat /tmp/admin-che/events.txt echo "-------------------------------------------" From 4cee98e146277484cd0f426828dcbfab2fbedc27 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 20:18:16 +0200 Subject: [PATCH 096/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index eb08b5bf12..167c7b689a 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -71,8 +71,8 @@ function prepareWorkspace() { do chectl workspace:list WORKSPACE=$(chectl workspace:list | grep -oh "\w*workspace\w*") - echo WORKSPACE - chectl workspace:logs --workspace=$WORKSPACE --namespace=admin-che --directory=/tmp > /dev/null + echo $WORKSPACE + chectl workspace:logs --workspace=$WORKSPACE --namespace=admin-che --directory=/tmp > /dev/null & echo "-------------------------------------------" echo "-------------------------------------------" cat /tmp/admin-che/events.txt echo "-------------------------------------------" From 0c8b83764ace7e3053ad128a1cbe25b93bce1ae7 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 20:52:40 +0200 Subject: [PATCH 097/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 8 ++------ .ci/templates/extension-tests-devfile.yaml | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 167c7b689a..eeb92275de 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -63,6 +63,8 @@ function buildProject() { function prepareWorkspace() { # chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt + sleep 20 + chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" @@ -70,12 +72,6 @@ function prepareWorkspace() { while [ "$pods" == 'No resources found in admin-che namespace.' ]; do chectl workspace:list - WORKSPACE=$(chectl workspace:list | grep -oh "\w*workspace\w*") - echo $WORKSPACE - chectl workspace:logs --workspace=$WORKSPACE --namespace=admin-che --directory=/tmp > /dev/null & echo "-------------------------------------------" - echo "-------------------------------------------" - cat /tmp/admin-che/events.txt - echo "-------------------------------------------" echo "Workspace is not ready" kubectl get pod -n admin-che kubectl get pod -n eclipse-che diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index daad657c95..150a4d09b0 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,6 +1,6 @@ apiVersion: 1.0.0 metadata: - name: che-helloworld-test-sample + generateName: che-helloworld-test-sample- components: - type: chePlugin id: @ From d5739ec5410ea511d473069ba552f85b15b00bd1 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 21:07:05 +0200 Subject: [PATCH 098/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index eeb92275de..a0ab27a243 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -62,7 +62,7 @@ function buildProject() { function prepareWorkspace() { # chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt - chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt + chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml sleep 20 chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) From 6a64d0cedcc51845cfe6db2660e850fc425d16a8 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 21:59:04 +0200 Subject: [PATCH 099/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 5 +---- .ci/templates/extension-tests-devfile.yaml | 24 ++++++++++++++++++---- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index a0ab27a243..9b36c6c936 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -61,10 +61,7 @@ function buildProject() { } function prepareWorkspace() { - # chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt - chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml - sleep 20 - chectl workspace:create --start --chenamespace=eclipse-che --devfile=$GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml > workspace_url.txt + chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) echo "$WORKSPACE_URL" diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index 150a4d09b0..4195656b8f 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,11 +1,27 @@ apiVersion: 1.0.0 metadata: - generateName: che-helloworld-test-sample- + name: che-helloworld-test-sample +projects: + - name: helloworld-test-sample + source: + location: 'https://github.com/svor/helloworld-test-sample.git' + type: git + branch: main components: - - type: chePlugin - id: @ + - mountSources: true + memoryLimit: 3Gi + type: dockerimage + image: 'quay.io/eclipse/che-theia-dev:next' + alias: che-dev - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' - id: eclipse/che-theia/next memoryLimit: 1024Mi - type: cheEditor \ No newline at end of file + type: cheEditor +commands: + - name: 1. Build extension + actions: + - type: exec + component: che-dev + command: yarn && yarn compile + workdir: ${CHE_PROJECTS_ROOT}/helloworld-test-sample \ No newline at end of file From 3c0e43bfc56b5e24c642f5bb862df1d4c8454652 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 18 Feb 2021 22:42:24 +0200 Subject: [PATCH 100/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- .ci/templates/extension-tests-devfile.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 9b36c6c936..f5760de621 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -51,7 +51,7 @@ function prepareDevfile() { # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml - echo ---- Devfile ---- + echo ----- Devfile ----- cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml } diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index 4195656b8f..dc64a061cf 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -15,6 +15,8 @@ components: alias: che-dev - type: chePlugin reference: 'https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/meta.yaml' + - type: chePlugin + id: @ - id: eclipse/che-theia/next memoryLimit: 1024Mi type: cheEditor From f87a58d2018dd6c04f7c322bd3f47fb2d275f3e7 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 09:03:08 +0200 Subject: [PATCH 101/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 +- .ci/templates/extension-tests-devfile.yaml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index f5760de621..9b36c6c936 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -51,7 +51,7 @@ function prepareDevfile() { # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml - echo ----- Devfile ----- + echo ---- Devfile ---- cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml } diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index dc64a061cf..b5c939b3f2 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,12 +1,6 @@ apiVersion: 1.0.0 metadata: name: che-helloworld-test-sample -projects: - - name: helloworld-test-sample - source: - location: 'https://github.com/svor/helloworld-test-sample.git' - type: git - branch: main components: - mountSources: true memoryLimit: 3Gi From 02a2ad6599d7dd66a1a68f8c7907e2911a675b42 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 09:19:00 +0200 Subject: [PATCH 102/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 15 +++++++++++---- .ci/templates/extension-tests-devfile.yaml | 7 ------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 9b36c6c936..181801e66c 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -21,14 +21,20 @@ function installDeps() { } function findRepositoryDetails() { - export YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" - export YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) + YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" + export YAML_EXTENSION_REPO + + YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) + export YAML_EXTENSION_REPO_REVISION + echo $YAML_EXTENSION_REPO echo $YAML_EXTENSION_REPO_REVISION } function cloneExtension() { - export YAML_EXTENSION_PROJECT_NAME=$(basename "$YAML_EXTENSION_REPO") + YAML_EXTENSION_PROJECT_NAME=$(basename "$YAML_EXTENSION_REPO") + export YAML_EXTENSION_PROJECT_NAME + mkdir -p /tmp/projects/$YAML_EXTENSION_PROJECT_NAME git clone ${YAML_EXTENSION_REPO} /tmp/projects/$YAML_EXTENSION_PROJECT_NAME cd /tmp/projects/$YAML_EXTENSION_PROJECT_NAME @@ -62,7 +68,8 @@ function buildProject() { function prepareWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt - export WORKSPACE_URL=$(tail -n 1 workspace_url.txt) + WORKSPACE_URL=$(tail -n 1 workspace_url.txt) + export WORKSPACE_URL echo "$WORKSPACE_URL" pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index b5c939b3f2..f2f35ae0c2 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -14,10 +14,3 @@ components: - id: eclipse/che-theia/next memoryLimit: 1024Mi type: cheEditor -commands: - - name: 1. Build extension - actions: - - type: exec - component: che-dev - command: yarn && yarn compile - workdir: ${CHE_PROJECTS_ROOT}/helloworld-test-sample \ No newline at end of file From 9b5fbd463dca8a30562a119e9d1ac3edb50fcfdf Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 09:55:17 +0200 Subject: [PATCH 103/157] update Signed-off-by: svor --- .ci/cico-plugin-registry-pr-test.sh | 2 +- .ci/prepare-extension-project.sh | 33 +++++++++---------- .ci/templates/extension-tests-devfile.yaml | 2 +- ...nguage-tests-runner.py => tests-runner.py} | 2 -- 4 files changed, 18 insertions(+), 21 deletions(-) rename .ci/{language-tests-runner.py => tests-runner.py} (97%) diff --git a/.ci/cico-plugin-registry-pr-test.sh b/.ci/cico-plugin-registry-pr-test.sh index d9cd722b24..81c2367310 100644 --- a/.ci/cico-plugin-registry-pr-test.sh +++ b/.ci/cico-plugin-registry-pr-test.sh @@ -94,7 +94,7 @@ echo "Theia IDE Container Name is: " echo "$theia_ide_container_name" # Start the python3 selenium script that will connect to the workspace to run tests -python3 .ci/language-tests-runner.py "${workspace_url}" +python3 .ci/tests-runner.py "${workspace_url}" sleep 20 cat geckodriver.log diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 181801e66c..db2d0e3f83 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -21,34 +21,34 @@ function installDeps() { } function findRepositoryDetails() { - YAML_EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" - export YAML_EXTENSION_REPO + EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" + export EXTENSION_REPO - YAML_EXTENSION_REPO_REVISION=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) - export YAML_EXTENSION_REPO_REVISION + EXTENSION_REPO_REVISION=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '.plugins[] | select(.repository.url == $EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) + export EXTENSION_REPO_REVISION - echo $YAML_EXTENSION_REPO - echo $YAML_EXTENSION_REPO_REVISION + echo $EXTENSION_REPO + echo $EXTENSION_REPO_REVISION } function cloneExtension() { - YAML_EXTENSION_PROJECT_NAME=$(basename "$YAML_EXTENSION_REPO") - export YAML_EXTENSION_PROJECT_NAME + EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") + export EXTENSION_PROJECT_NAME - mkdir -p /tmp/projects/$YAML_EXTENSION_PROJECT_NAME - git clone ${YAML_EXTENSION_REPO} /tmp/projects/$YAML_EXTENSION_PROJECT_NAME - cd /tmp/projects/$YAML_EXTENSION_PROJECT_NAME - git checkout tags/${YAML_EXTENSION_REPO_REVISION} + mkdir -p /tmp/projects/$EXTENSION_PROJECT_NAME + git clone ${EXTENSION_REPO} /tmp/projects/$EXTENSION_PROJECT_NAME + cd /tmp/projects/$EXTENSION_PROJECT_NAME + git checkout tags/${EXTENSION_REPO_REVISION} git status } function prepareDevfile() { # Get Extension's ID - EXTENSION_ID=$(yq -r --arg YAML_EXTENSION_REPO "$YAML_EXTENSION_REPO" '[.plugins[] | select(.repository.url == $YAML_EXTENSION_REPO)] | .[1] | .id' $GITHUB_WORKSPACE/che-theia-plugins.yaml) + EXTENSION_ID=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' $GITHUB_WORKSPACE/che-theia-plugins.yaml) if [ "$EXTENSION_ID" == null ]; then # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name - PACKAGE_JSON=/tmp/projects/$YAML_EXTENSION_PROJECT_NAME/package.json + PACKAGE_JSON=/tmp/projects/$EXTENSION_PROJECT_NAME/package.json EXTENSION_NAME=$(yq -r '.name' $PACKAGE_JSON) EXTENSION_PUBLISHER=$(yq -r '.publisher' $PACKAGE_JSON) EXTENSION_ID=$EXTENSION_PUBLISHER/$EXTENSION_NAME @@ -98,13 +98,12 @@ function prepareWorkspace() { copySources # Start the python3 selenium script that will connect to the workspace to run tests - python3 $GITHUB_WORKSPACE/.ci/language-tests-runner.py "${WORKSPACE_URL}" - sleep 20 + python3 $GITHUB_WORKSPACE/.ci/tests-runner.py "${WORKSPACE_URL}" } function copySources() { echo "----- Copy Sources --------" - kubectl cp /tmp/projects/$YAML_EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/projects -c $THEIA_IDE_CONTAINER_NAME + kubectl cp /tmp/projects/$EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/projects -c $THEIA_IDE_CONTAINER_NAME echo "----- Sources were copied --------" ### Check if copy kubectl exec ${WORKSPACE_NAME} -n admin-che -c $THEIA_IDE_CONTAINER_NAME -- ls -la /projects diff --git a/.ci/templates/extension-tests-devfile.yaml b/.ci/templates/extension-tests-devfile.yaml index f2f35ae0c2..42ca48fcbb 100644 --- a/.ci/templates/extension-tests-devfile.yaml +++ b/.ci/templates/extension-tests-devfile.yaml @@ -1,6 +1,6 @@ apiVersion: 1.0.0 metadata: - name: che-helloworld-test-sample + name: extension-test-sample components: - mountSources: true memoryLimit: 3Gi diff --git a/.ci/language-tests-runner.py b/.ci/tests-runner.py similarity index 97% rename from .ci/language-tests-runner.py rename to .ci/tests-runner.py index c2e0a6ebfb..ff1aa97080 100644 --- a/.ci/language-tests-runner.py +++ b/.ci/tests-runner.py @@ -17,8 +17,6 @@ from selenium.webdriver.firefox.options import Options from selenium.webdriver.common.by import By -print ("Start script ------------------>") - options = Options() options.log.level = "trace" options.headless = True From 9f506eea62a644f4d1e739ea833a59e5ac33d5ee Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 10:16:08 +0200 Subject: [PATCH 104/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index db2d0e3f83..e2ca2494f8 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -27,8 +27,8 @@ function findRepositoryDetails() { EXTENSION_REPO_REVISION=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '.plugins[] | select(.repository.url == $EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) export EXTENSION_REPO_REVISION - echo $EXTENSION_REPO - echo $EXTENSION_REPO_REVISION + echo Extension repo is $EXTENSION_REPO + echo Extension revision is $EXTENSION_REPO_REVISION } function cloneExtension() { @@ -70,7 +70,7 @@ function prepareWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt WORKSPACE_URL=$(tail -n 1 workspace_url.txt) export WORKSPACE_URL - echo "$WORKSPACE_URL" + echo Workspace URL is $WORKSPACE_URL pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) while [ "$pods" == 'No resources found in admin-che namespace.' ]; @@ -78,7 +78,6 @@ function prepareWorkspace() { chectl workspace:list echo "Workspace is not ready" kubectl get pod -n admin-che - kubectl get pod -n eclipse-che sleep 10 pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) done From f0f629cc496b1083abefc13b844581e544cd8eb6 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 12:01:35 +0200 Subject: [PATCH 105/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index e2ca2494f8..c8195718b4 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -1,5 +1,7 @@ #!/bin/bash -# Copyright (c) 2021 Red Hat, Inc. +# shellcheck disable=SC1091,SC1090 +# +# Copyright (c) 2012-2021 Red Hat, Inc. # This program and the accompanying materials are made # available under the terms of the Eclipse Public License 2.0 # which is available at https://www.eclipse.org/legal/epl-2.0/ From 1381dd9652eda79a28a2695d3e217225bfb60ecf Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 13:38:06 +0200 Subject: [PATCH 106/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index c8195718b4..4cc7e8e2fc 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -23,6 +23,7 @@ function installDeps() { } function findRepositoryDetails() { + # TODO need to detect which extension repo should be used EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" export EXTENSION_REPO From 9fb54e03e46bca148897bc502c7f5c08b933d830 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 17:53:51 +0200 Subject: [PATCH 107/157] find repo Signed-off-by: svor --- .ci/prepare-extension-project.sh | 39 ++++++++++++++++++++++++-------- che-theia-plugins.yaml | 4 ++-- 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 4cc7e8e2fc..58edabb5a5 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -22,18 +22,39 @@ function installDeps() { sudo mv geckodriver /usr/local/bin/ } -function findRepositoryDetails() { - # TODO need to detect which extension repo should be used - EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" +function getExtensionRepo() { + CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') + echo "$CHANGED_LINES" + for number in $CHANGED_LINES + do + LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) + if [[ $LINE == *"revision:"* ]]; then + break + fi + done + EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) + EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) export EXTENSION_REPO + export EXTENSION_REVISION - EXTENSION_REPO_REVISION=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '.plugins[] | select(.repository.url == $EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) - export EXTENSION_REPO_REVISION - + echo --- REPOSITORY --- echo Extension repo is $EXTENSION_REPO - echo Extension revision is $EXTENSION_REPO_REVISION + echo --- REVISION --- + echo Extension revision is $EXTENSION_REVISION } +# function findRepositoryDetails() { +# # TODO need to detect which extension repo should be used +# EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" +# export EXTENSION_REPO + +# EXTENSION_REVISION=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '.plugins[] | select(.repository.url == $EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) +# export EXTENSION_REVISION + +# echo Extension repo is $EXTENSION_REPO +# echo Extension revision is $EXTENSION_REVISION +# } + function cloneExtension() { EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") export EXTENSION_PROJECT_NAME @@ -41,7 +62,7 @@ function cloneExtension() { mkdir -p /tmp/projects/$EXTENSION_PROJECT_NAME git clone ${EXTENSION_REPO} /tmp/projects/$EXTENSION_PROJECT_NAME cd /tmp/projects/$EXTENSION_PROJECT_NAME - git checkout tags/${EXTENSION_REPO_REVISION} + git checkout tags/${EXTENSION_REVISION} git status } @@ -130,7 +151,7 @@ function checkTestsLogs() { } installDeps -findRepositoryDetails +getExtensionRepo cloneExtension buildProject prepareDevfile diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index 7c7a613b05..7c759d0c8c 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -321,7 +321,7 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.14.0 + revision: 0.13.0 featured: true sidecar: directory: node @@ -331,7 +331,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From bc0e356e2181581f9fd2d3bbeb801529316f783b Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 18:17:58 +0200 Subject: [PATCH 108/157] find repo Signed-off-by: svor --- .ci/prepare-extension-project.sh | 3 +++ che-theia-plugins.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 58edabb5a5..a73db0373d 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -25,9 +25,12 @@ function installDeps() { function getExtensionRepo() { CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') echo "$CHANGED_LINES" + cat che-theia-plugins.yaml for number in $CHANGED_LINES do LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) + echo --- LINE --- + echo "$LINE" if [[ $LINE == *"revision:"* ]]; then break fi diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index 7c759d0c8c..7c7a613b05 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -321,7 +321,7 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.13.0 + revision: 0.14.0 featured: true sidecar: directory: node @@ -331,7 +331,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From ed78113ead8a253a1a0bba03106994d841d40397 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 18:45:30 +0200 Subject: [PATCH 109/157] find repo Signed-off-by: svor --- .ci/prepare-extension-project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index a73db0373d..fd96ead979 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -23,9 +23,8 @@ function installDeps() { } function getExtensionRepo() { - CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') + CHANGED_LINES=$(git diff -U0 "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') echo "$CHANGED_LINES" - cat che-theia-plugins.yaml for number in $CHANGED_LINES do LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) @@ -34,6 +33,7 @@ function getExtensionRepo() { if [[ $LINE == *"revision:"* ]]; then break fi + exit 0 done EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) From 0fcbd671433b0ff68ea5ca001bd7edda0e3ce2d5 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 18:48:31 +0200 Subject: [PATCH 110/157] test Signed-off-by: svor --- che-theia-plugins.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index 5b83d49505..e17e24ae1b 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -321,7 +321,7 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.14.0 + revision: 0.13.0 featured: true sidecar: directory: node @@ -331,7 +331,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From 40a5e957bdd3ca9cc346e204ade9119198ca412d Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 18:52:17 +0200 Subject: [PATCH 111/157] test Signed-off-by: svor --- che-theia-plugins.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index e17e24ae1b..5b83d49505 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -321,7 +321,7 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.13.0 + revision: 0.14.0 featured: true sidecar: directory: node @@ -331,7 +331,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From 171da6c0093f932d69da13b703faaecb21bed52c Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 18:55:25 +0200 Subject: [PATCH 112/157] test Signed-off-by: svor --- che-theia-plugins.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index 5b83d49505..35bb1fa688 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -2,7 +2,7 @@ version: 1.0.0 plugins: - repository: url: 'https://github.com/DonJayamanne/gitHistoryVSCode' - revision: v0.6.141 + revision: v0.6.14 extensions: - >- https://github.com/DonJayamanne/gitHistoryVSCode/releases/download/v0.6.14/githistory-0.6.14.vsix @@ -321,7 +321,7 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.14.0 + revision: 0.13.0 featured: true sidecar: directory: node @@ -331,7 +331,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From 1eeab6fd486d633531ec3125c8df1c4ee1868e53 Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 19:19:27 +0200 Subject: [PATCH 113/157] test Signed-off-by: svor --- .ci/prepare-extension-project.sh | 16 ++-------------- che-theia-plugins.yaml | 4 ++-- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index fd96ead979..0353424588 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -23,7 +23,7 @@ function installDeps() { } function getExtensionRepo() { - CHANGED_LINES=$(git diff -U0 "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') + CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') echo "$CHANGED_LINES" for number in $CHANGED_LINES do @@ -46,18 +46,6 @@ function getExtensionRepo() { echo Extension revision is $EXTENSION_REVISION } -# function findRepositoryDetails() { -# # TODO need to detect which extension repo should be used -# EXTENSION_REPO="https://github.com/redhat-developer/vscode-yaml" -# export EXTENSION_REPO - -# EXTENSION_REVISION=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '.plugins[] | select(.repository.url == $EXTENSION_REPO) | .repository.revision' che-theia-plugins.yaml) -# export EXTENSION_REVISION - -# echo Extension repo is $EXTENSION_REPO -# echo Extension revision is $EXTENSION_REVISION -# } - function cloneExtension() { EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") export EXTENSION_PROJECT_NAME @@ -153,8 +141,8 @@ function checkTestsLogs() { fi } -installDeps getExtensionRepo +installDeps cloneExtension buildProject prepareDevfile diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index 35bb1fa688..be5aeed301 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -321,7 +321,7 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.13.0 + revision: 0.14.0 featured: true sidecar: directory: node @@ -331,7 +331,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From b54efe8be589f0dd7a8569d7d0c3876c3d7baa9b Mon Sep 17 00:00:00 2001 From: svor Date: Fri, 19 Feb 2021 21:03:28 +0200 Subject: [PATCH 114/157] test Signed-off-by: svor --- .ci/prepare-extension-project.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 0353424588..c7128e8189 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -44,6 +44,10 @@ function getExtensionRepo() { echo Extension repo is $EXTENSION_REPO echo --- REVISION --- echo Extension revision is $EXTENSION_REVISION + if [ "$EXTENSION_REPO" == null ]; + then + exit 0 + fi } function cloneExtension() { @@ -61,7 +65,7 @@ function prepareDevfile() { # Get Extension's ID EXTENSION_ID=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' $GITHUB_WORKSPACE/che-theia-plugins.yaml) if [ "$EXTENSION_ID" == null ]; - then + then # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name PACKAGE_JSON=/tmp/projects/$EXTENSION_PROJECT_NAME/package.json EXTENSION_NAME=$(yq -r '.name' $PACKAGE_JSON) @@ -141,8 +145,8 @@ function checkTestsLogs() { fi } -getExtensionRepo installDeps +getExtensionRepo cloneExtension buildProject prepareDevfile From a5f81fef28a88106792af4e9ea0d37857ff6fa2b Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 15:57:41 +0200 Subject: [PATCH 115/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 46 +++++++++++++++++++ .ci/prepare-extension-project.sh | 29 ------------ .../vscode-extension-tests-check.yaml | 3 ++ che-theia-plugins.yaml | 2 +- 4 files changed, 50 insertions(+), 30 deletions(-) create mode 100644 .ci/get-changed-plugin.sh diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh new file mode 100644 index 0000000000..845ad58acc --- /dev/null +++ b/.ci/get-changed-plugin.sh @@ -0,0 +1,46 @@ +#!/bin/bash +# shellcheck disable=SC2016 +# +# Copyright (c) 2012-2021 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation + +set -e + +sudo pip install yq + +function getExtensionRepoAndRevision() { + CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') + echo "$CHANGED_LINES" + for number in $CHANGED_LINES + do + LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) + echo --- LINE --- + echo "$LINE" + if [[ $LINE == *"revision:"* ]]; then + break + fi + exit 0 + done + EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) + EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) + export EXTENSION_REPO + export EXTENSION_REVISION + + echo --- REPOSITORY --- + echo Extension repo is "$EXTENSION_REPO" + echo --- REVISION --- + echo Extension revision is "$EXTENSION_REVISION" + if [ "$EXTENSION_REPO" == null ]; + then + exit 0 + fi +} + +getExtensionRepoAndRevision \ No newline at end of file diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index c7128e8189..960fc722a5 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -14,7 +14,6 @@ set -e function installDeps() { - sudo pip install yq sudo pip install selenium wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz tar -xvzf geckodriver* @@ -22,34 +21,6 @@ function installDeps() { sudo mv geckodriver /usr/local/bin/ } -function getExtensionRepo() { - CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') - echo "$CHANGED_LINES" - for number in $CHANGED_LINES - do - LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) - echo --- LINE --- - echo "$LINE" - if [[ $LINE == *"revision:"* ]]; then - break - fi - exit 0 - done - EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) - EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) - export EXTENSION_REPO - export EXTENSION_REVISION - - echo --- REPOSITORY --- - echo Extension repo is $EXTENSION_REPO - echo --- REVISION --- - echo Extension revision is $EXTENSION_REVISION - if [ "$EXTENSION_REPO" == null ]; - then - exit 0 - fi -} - function cloneExtension() { EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") export EXTENSION_PROJECT_NAME diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index c450b91b6d..60fa4d4bdd 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -26,6 +26,9 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} + - name: Get changed plug-in + run: | + ./.ci/get-changed-plugin.sh - uses: actions/setup-node@v1 with: node-version: '12' diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index be5aeed301..bc34e8bd46 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -326,7 +326,7 @@ plugins: sidecar: directory: node name: vscode-yaml - memoryLimit: 256Mi + memoryLimit: 512Mi cpuLimit: 500m cpuRequest: 30m extensions: From de67e0b6ec4c7a470056b825817a0ca4e2e466f3 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 15:59:55 +0200 Subject: [PATCH 116/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .ci/get-changed-plugin.sh diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh old mode 100644 new mode 100755 From 4793b0c7a2a4927af9177731d76a23e38bd98d85 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 16:01:05 +0200 Subject: [PATCH 117/157] update Signed-off-by: svor --- che-theia-plugins.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index bc34e8bd46..78d2be8a30 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -326,7 +326,7 @@ plugins: sidecar: directory: node name: vscode-yaml - memoryLimit: 512Mi + memoryLimit: 524Mi cpuLimit: 500m cpuRequest: 30m extensions: From 6cc4d19a86c7752c70e555ff86cfddb3b8ee2f47 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 17:53:37 +0200 Subject: [PATCH 118/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 4 ---- .../vscode-extension-tests-check.yaml | 24 ++++++++++++++++++- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index 845ad58acc..54f5050fd5 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -37,10 +37,6 @@ function getExtensionRepoAndRevision() { echo Extension repo is "$EXTENSION_REPO" echo --- REVISION --- echo Extension revision is "$EXTENSION_REVISION" - if [ "$EXTENSION_REPO" == null ]; - then - exit 0 - fi } getExtensionRepoAndRevision \ No newline at end of file diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 60fa4d4bdd..43282bc626 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -18,7 +18,29 @@ on: - '.github/workflows/vscode-extension-tests-check.yaml' - '.ci/prepare-extension-project.sh' jobs: - extension-tests: + job01: + name: Get changes + runs-on: ubuntu-latest + outputs: + run_rest_jobs: ${{ steps.set_output.outputs.run_jobs }} + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Get changed plug-in + run: | + ./.ci/get-changed-plugin.sh + if [[$EXTENSION_REPO == "null"]]; then + echo "::set-output name=run_jobs::false" + else + echo "::set-output name=run_jobs::true" + fi + job02: + name: Run tests + needs: [job01] + if: needs.job01.outputs.run_rest_jobs == 'true' runs-on: ubuntu-20.04 steps: - name: Checkout From 277caf7deb1d7085fc07339e4c0afb422c8be707 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 17:57:44 +0200 Subject: [PATCH 119/157] update Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 43282bc626..4a9b3fde8d 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -32,6 +32,8 @@ jobs: - name: Get changed plug-in run: | ./.ci/get-changed-plugin.sh + - name: Set outputs + run: | if [[$EXTENSION_REPO == "null"]]; then echo "::set-output name=run_jobs::false" else From a6136056fb35d6adc8684362f551f4544cd7f2db Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 18:00:23 +0200 Subject: [PATCH 120/157] update Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 4a9b3fde8d..c9fde50483 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -34,7 +34,7 @@ jobs: ./.ci/get-changed-plugin.sh - name: Set outputs run: | - if [[$EXTENSION_REPO == "null"]]; then + if ["$EXTENSION_REPO" == null]; then echo "::set-output name=run_jobs::false" else echo "::set-output name=run_jobs::true" From c1af3d1bf00922abbd91986ec08d979d6aa35341 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 18:02:49 +0200 Subject: [PATCH 121/157] update Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index c9fde50483..2cee0f0d32 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -34,7 +34,7 @@ jobs: ./.ci/get-changed-plugin.sh - name: Set outputs run: | - if ["$EXTENSION_REPO" == null]; then + if [ "$EXTENSION_REPO" == null ]; then echo "::set-output name=run_jobs::false" else echo "::set-output name=run_jobs::true" From e635213fe5b746d43401922b2d31587a9a06df28 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 18:09:24 +0200 Subject: [PATCH 122/157] update Signed-off-by: svor --- .../vscode-extension-tests-check.yaml | 29 ++----------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 2cee0f0d32..53cd9c2936 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -18,31 +18,7 @@ on: - '.github/workflows/vscode-extension-tests-check.yaml' - '.ci/prepare-extension-project.sh' jobs: - job01: - name: Get changes - runs-on: ubuntu-latest - outputs: - run_rest_jobs: ${{ steps.set_output.outputs.run_jobs }} - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} - - name: Get changed plug-in - run: | - ./.ci/get-changed-plugin.sh - - name: Set outputs - run: | - if [ "$EXTENSION_REPO" == null ]; then - echo "::set-output name=run_jobs::false" - else - echo "::set-output name=run_jobs::true" - fi - job02: - name: Run tests - needs: [job01] - if: needs.job01.outputs.run_rest_jobs == 'true' + extension-tests: runs-on: ubuntu-20.04 steps: - name: Checkout @@ -52,11 +28,12 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Get changed plug-in run: | - ./.ci/get-changed-plugin.sh + ./.ci/prepare-extension-project.sh - uses: actions/setup-node@v1 with: node-version: '12' - name: image-build + if: env.EXTENSION_REPO != 'null' run: | export SKIP_FORMAT=true export SKIP_LINT=true From 55d82b734050683bf5692b3bcc3b0416d4aa7692 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 18:11:57 +0200 Subject: [PATCH 123/157] update Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 53cd9c2936..066642bef2 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -28,7 +28,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Get changed plug-in run: | - ./.ci/prepare-extension-project.sh + ./.ci/get-changed-plugin.sh - uses: actions/setup-node@v1 with: node-version: '12' From db49d95db3ad751f6e2ebb3cff1c67adbc17a1e3 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 22 Feb 2021 18:35:46 +0200 Subject: [PATCH 124/157] update Signed-off-by: svor --- .ci/prepare-extension-project.sh | 1 - .github/workflows/vscode-extension-tests-check.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 960fc722a5..ffc51e90f3 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -117,7 +117,6 @@ function checkTestsLogs() { } installDeps -getExtensionRepo cloneExtension buildProject prepareDevfile diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 066642bef2..60fa4d4bdd 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -33,7 +33,6 @@ jobs: with: node-version: '12' - name: image-build - if: env.EXTENSION_REPO != 'null' run: | export SKIP_FORMAT=true export SKIP_LINT=true From 514820e34a197388421b53f23fe3045f0464e497 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 10:45:56 +0200 Subject: [PATCH 125/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 2 ++ .../vscode-extension-tests-check.yaml | 22 +++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index 54f5050fd5..89596aeea8 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -37,6 +37,8 @@ function getExtensionRepoAndRevision() { echo Extension repo is "$EXTENSION_REPO" echo --- REVISION --- echo Extension revision is "$EXTENSION_REVISION" + echo "export EXTENSION_REPO=${EXTENSION_REPO}" > ~/.bashrc + echo "export EXTENSION_REVISION=${EXTENSION_REVISION}" > ~/.bashrc } getExtensionRepoAndRevision \ No newline at end of file diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 60fa4d4bdd..a2af381e09 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -18,8 +18,10 @@ on: - '.github/workflows/vscode-extension-tests-check.yaml' - '.ci/prepare-extension-project.sh' jobs: - extension-tests: + get-changes: runs-on: ubuntu-20.04 + outputs: + changed-repo: ${{ steps.changes.outputs.repo }} steps: - name: Checkout uses: actions/checkout@v2 @@ -27,8 +29,21 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - name: Get changed plug-in + id: changes run: | - ./.ci/get-changed-plugin.sh + ./.ci/get-changed-plugin.sh && + source ~/.bashrc && + echo "::set-output name=repo::${EXTENSION_REPO}" + extension-tests: + runs-on: ubuntu-20.04 + needs: get-changes + if: needs.get-changes.outputs.changed-repo != 'null' + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-node@v1 with: node-version: '12' @@ -59,6 +74,9 @@ jobs: with: # use custom image built by this PR plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + - name: Get changes + run: | + ./.ci/get-changed-plugin.sh - name: Run VSCode extension's tests run: | ./.ci/prepare-extension-project.sh From d8adeb3f8af761aaa571c301236e2115d12e1a42 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 10:48:49 +0200 Subject: [PATCH 126/157] getChanges Signed-off-by: svor --- .ci/get-changed-plugin.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index 89596aeea8..d8d5424ce9 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -26,7 +26,6 @@ function getExtensionRepoAndRevision() { if [[ $LINE == *"revision:"* ]]; then break fi - exit 0 done EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) From 0742852d82fc76d11ef8ff4c1fe475461620746d Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 10:49:52 +0200 Subject: [PATCH 127/157] update Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index a2af381e09..0106963d13 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -54,7 +54,6 @@ jobs: export SKIP_TEST=true docker pull quay.io/eclipse/che-plugin-registry:nightly BUILDER=docker ./build.sh --tag happy-path - # save locally built image docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - name: Start minikube From a01c814362d297604ffadc5ca208b821403bbcb5 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 11:02:32 +0200 Subject: [PATCH 128/157] update Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 0106963d13..fd77d6c2c6 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -18,10 +18,10 @@ on: - '.github/workflows/vscode-extension-tests-check.yaml' - '.ci/prepare-extension-project.sh' jobs: - get-changes: + job1: runs-on: ubuntu-20.04 outputs: - changed-repo: ${{ steps.changes.outputs.repo }} + job-status: ${{ steps.step2.outputs.status }} steps: - name: Checkout uses: actions/checkout@v2 @@ -29,15 +29,16 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - name: Get changed plug-in - id: changes + id: step2 run: | ./.ci/get-changed-plugin.sh && source ~/.bashrc && - echo "::set-output name=repo::${EXTENSION_REPO}" + echo "-----1 $EXTENSION_REPO" && + echo "::set-output name=status::${EXTENSION_REPO}" extension-tests: runs-on: ubuntu-20.04 - needs: get-changes - if: needs.get-changes.outputs.changed-repo != 'null' + needs: job1 + if: needs.job1.outputs.job-status != 'null' steps: - name: Checkout uses: actions/checkout@v2 From d26650ac569ad2801811680236686a819bf2f7b7 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 11:09:12 +0200 Subject: [PATCH 129/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 5 +++-- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index d8d5424ce9..53e393b5fe 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -26,11 +26,12 @@ function getExtensionRepoAndRevision() { if [[ $LINE == *"revision:"* ]]; then break fi + exit 0 done EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) - export EXTENSION_REPO - export EXTENSION_REVISION + # export EXTENSION_REPO + # export EXTENSION_REVISION echo --- REPOSITORY --- echo Extension repo is "$EXTENSION_REPO" diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index fd77d6c2c6..fabfb7cdea 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -38,7 +38,7 @@ jobs: extension-tests: runs-on: ubuntu-20.04 needs: job1 - if: needs.job1.outputs.job-status != 'null' + if: needs.job1.outputs.job-status != '' steps: - name: Checkout uses: actions/checkout@v2 From 055ecc5f5a30bf8577addaff3733d09d9585e0bc Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 11:12:06 +0200 Subject: [PATCH 130/157] update Signed-off-by: svor --- che-theia-plugins.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index 78d2be8a30..35bb1fa688 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -321,17 +321,17 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.14.0 + revision: 0.13.0 featured: true sidecar: directory: node name: vscode-yaml - memoryLimit: 524Mi + memoryLimit: 256Mi cpuLimit: 500m cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From 0fd4e60e3ba80073a62864a8c347130aad60afe2 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 11:19:32 +0200 Subject: [PATCH 131/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 4 ++-- .github/workflows/vscode-extension-tests-check.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index 53e393b5fe..a697b3e27f 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -38,7 +38,7 @@ function getExtensionRepoAndRevision() { echo --- REVISION --- echo Extension revision is "$EXTENSION_REVISION" echo "export EXTENSION_REPO=${EXTENSION_REPO}" > ~/.bashrc - echo "export EXTENSION_REVISION=${EXTENSION_REVISION}" > ~/.bashrc } -getExtensionRepoAndRevision \ No newline at end of file +getExtensionRepoAndRevision +source ~/.bashrc diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index fabfb7cdea..683cb0b20f 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -32,6 +32,7 @@ jobs: id: step2 run: | ./.ci/get-changed-plugin.sh && + env | grep EXTENSION_REPO && source ~/.bashrc && echo "-----1 $EXTENSION_REPO" && echo "::set-output name=status::${EXTENSION_REPO}" From 0a3dc8f828fbd978e57552a6666096bdb2424340 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 11:23:26 +0200 Subject: [PATCH 132/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 48 ++++++++----------- .../vscode-extension-tests-check.yaml | 2 +- 2 files changed, 22 insertions(+), 28 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index a697b3e27f..e6159e0cd1 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -15,30 +15,24 @@ set -e sudo pip install yq -function getExtensionRepoAndRevision() { - CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') - echo "$CHANGED_LINES" - for number in $CHANGED_LINES - do - LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) - echo --- LINE --- - echo "$LINE" - if [[ $LINE == *"revision:"* ]]; then - break - fi - exit 0 - done - EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) - EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) - # export EXTENSION_REPO - # export EXTENSION_REVISION - - echo --- REPOSITORY --- - echo Extension repo is "$EXTENSION_REPO" - echo --- REVISION --- - echo Extension revision is "$EXTENSION_REVISION" - echo "export EXTENSION_REPO=${EXTENSION_REPO}" > ~/.bashrc -} - -getExtensionRepoAndRevision -source ~/.bashrc +CHANGED_LINES=$(git diff -U0 HEAD "$(git merge-base HEAD origin/master)" che-theia-plugins.yaml | grep @@ | cut -d ' ' -f 3 | sed 's/+//') +echo "$CHANGED_LINES" +for number in $CHANGED_LINES +do + LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) + echo --- LINE --- + echo "$LINE" + if [[ $LINE == *"revision:"* ]]; then + break + fi + exit 0 +done +EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) +EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) +# export EXTENSION_REPO +# export EXTENSION_REVISION +echo --- REPOSITORY --- +echo Extension repo is "$EXTENSION_REPO" +echo --- REVISION --- +echo Extension revision is "$EXTENSION_REVISION" +echo "export EXTENSION_REPO=${EXTENSION_REPO}" > ~/.bashrc diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 683cb0b20f..bfce0a80e8 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -34,7 +34,7 @@ jobs: ./.ci/get-changed-plugin.sh && env | grep EXTENSION_REPO && source ~/.bashrc && - echo "-----1 $EXTENSION_REPO" && + echo "----- $EXTENSION_REPO" && echo "::set-output name=status::${EXTENSION_REPO}" extension-tests: runs-on: ubuntu-20.04 From 5293c2dbe33a1f3a62002786d964768dbb047a45 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 11:28:27 +0200 Subject: [PATCH 133/157] update Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index bfce0a80e8..fdcad58f4a 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -32,7 +32,6 @@ jobs: id: step2 run: | ./.ci/get-changed-plugin.sh && - env | grep EXTENSION_REPO && source ~/.bashrc && echo "----- $EXTENSION_REPO" && echo "::set-output name=status::${EXTENSION_REPO}" From 534f9f502dfa78440f055f4aa3cb814b733e15af Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 12:15:52 +0200 Subject: [PATCH 134/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 1 + .ci/prepare-extension-project.sh | 1 + .github/workflows/vscode-extension-tests-check.yaml | 2 ++ 3 files changed, 4 insertions(+) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index e6159e0cd1..cad75d4d94 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -36,3 +36,4 @@ echo Extension repo is "$EXTENSION_REPO" echo --- REVISION --- echo Extension revision is "$EXTENSION_REVISION" echo "export EXTENSION_REPO=${EXTENSION_REPO}" > ~/.bashrc +echo "export EXTENSION_REVISION=${EXTENSION_REVISION}" > ~/.bashrc diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index ffc51e90f3..41a1327af8 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -22,6 +22,7 @@ function installDeps() { } function cloneExtension() { + echo "EXTENSION REPO -----> $EXTENSION_REPO" EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") export EXTENSION_PROJECT_NAME diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index fdcad58f4a..2e4f5ecef8 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -79,4 +79,6 @@ jobs: ./.ci/get-changed-plugin.sh - name: Run VSCode extension's tests run: | + ./.ci/get-changed-plugin.sh && + source ~/.bashrc & ./.ci/prepare-extension-project.sh From 486218e1be82e3ffd0231ac756b22151884c826b Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 19:43:10 +0200 Subject: [PATCH 135/157] set env Signed-off-by: svor --- .ci/get-changed-plugin.sh | 6 ++---- .ci/prepare-extension-project.sh | 3 +++ .../vscode-extension-tests-check.yaml | 21 +++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index cad75d4d94..fc693092f7 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -29,11 +29,9 @@ do done EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) -# export EXTENSION_REPO -# export EXTENSION_REVISION echo --- REPOSITORY --- echo Extension repo is "$EXTENSION_REPO" echo --- REVISION --- echo Extension revision is "$EXTENSION_REVISION" -echo "export EXTENSION_REPO=${EXTENSION_REPO}" > ~/.bashrc -echo "export EXTENSION_REVISION=${EXTENSION_REVISION}" > ~/.bashrc +echo "extension_repo=${EXTENSION_REPO}" >> "$GITHUB_ENV" +echo "extension_revision=${EXTENSION_REVISION}" >> "$GITHUB_ENV" diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 41a1327af8..3e8ad4b130 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -22,7 +22,10 @@ function installDeps() { } function cloneExtension() { + EXTENSION_REPO="${{ env.extension_repo }}" + EXTENSION_REVISION="${{ env.extension_revision }}" echo "EXTENSION REPO -----> $EXTENSION_REPO" + echo "EXTENSION REVISION -----> $EXTENSION_REVISION" EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") export EXTENSION_PROJECT_NAME diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 2e4f5ecef8..c8ede80c90 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -18,10 +18,10 @@ on: - '.github/workflows/vscode-extension-tests-check.yaml' - '.ci/prepare-extension-project.sh' jobs: - job1: + check-changes: runs-on: ubuntu-20.04 outputs: - job-status: ${{ steps.step2.outputs.status }} + plugin: ${{ steps.changes.outputs.plugin }} steps: - name: Checkout uses: actions/checkout@v2 @@ -29,16 +29,17 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - name: Get changed plug-in - id: step2 + id: changes run: | - ./.ci/get-changed-plugin.sh && - source ~/.bashrc && - echo "----- $EXTENSION_REPO" && - echo "::set-output name=status::${EXTENSION_REPO}" + ./.ci/get-changed-plugin.sh + - name: Save plug-in name + run: | + echo "::set-output name=plugin::${{ env.extension_repo }}" && + echo "AAAA -->> ${{ env.extension_repo }}" extension-tests: runs-on: ubuntu-20.04 - needs: job1 - if: needs.job1.outputs.job-status != '' + needs: check-changes + if: needs.check-changes.outputs.plugin != '' steps: - name: Checkout uses: actions/checkout@v2 @@ -79,6 +80,4 @@ jobs: ./.ci/get-changed-plugin.sh - name: Run VSCode extension's tests run: | - ./.ci/get-changed-plugin.sh && - source ~/.bashrc & ./.ci/prepare-extension-project.sh From fd6bce2b6c389ee772bc12b5a75f5f97c9a5df7e Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 19:52:08 +0200 Subject: [PATCH 136/157] set env Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index c8ede80c90..7ccecb2bb1 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -34,8 +34,9 @@ jobs: ./.ci/get-changed-plugin.sh - name: Save plug-in name run: | - echo "::set-output name=plugin::${{ env.extension_repo }}" && - echo "AAAA -->> ${{ env.extension_repo }}" + export EXTENSION_REPO=${{ env.extension_repo }} && + echo "AAAA -->> ${EXTENSION_REPO}" && + echo "::set-output name=plugin::${EXTENSION_REPO}" extension-tests: runs-on: ubuntu-20.04 needs: check-changes From df814e1f9a256dbd38971860f5c0d9a82e478868 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 19:53:54 +0200 Subject: [PATCH 137/157] set env Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 7ccecb2bb1..a7f5a04e9d 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -21,7 +21,7 @@ jobs: check-changes: runs-on: ubuntu-20.04 outputs: - plugin: ${{ steps.changes.outputs.plugin }} + plugin: ${{ steps.save.outputs.plugin }} steps: - name: Checkout uses: actions/checkout@v2 @@ -29,10 +29,10 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - name: Get changed plug-in - id: changes run: | ./.ci/get-changed-plugin.sh - name: Save plug-in name + id: save run: | export EXTENSION_REPO=${{ env.extension_repo }} && echo "AAAA -->> ${EXTENSION_REPO}" && From 39de34d67e584b40b6b1558be577a42c7152c75d Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 20:36:49 +0200 Subject: [PATCH 138/157] set env2 Signed-off-by: svor --- .ci/get-changed-plugin.sh | 4 ++-- .github/workflows/vscode-extension-tests-check.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index fc693092f7..f68e21dbc6 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -33,5 +33,5 @@ echo --- REPOSITORY --- echo Extension repo is "$EXTENSION_REPO" echo --- REVISION --- echo Extension revision is "$EXTENSION_REVISION" -echo "extension_repo=${EXTENSION_REPO}" >> "$GITHUB_ENV" -echo "extension_revision=${EXTENSION_REVISION}" >> "$GITHUB_ENV" +echo "::set-env name=EXTENSION_REVISION::$EXTENSION_REVISION" +echo "::set-env name=EXTENSION_REPO::$EXTENSION_REPO" diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index a7f5a04e9d..c143635544 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -22,6 +22,8 @@ jobs: runs-on: ubuntu-20.04 outputs: plugin: ${{ steps.save.outputs.plugin }} + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: - name: Checkout uses: actions/checkout@v2 @@ -34,13 +36,13 @@ jobs: - name: Save plug-in name id: save run: | - export EXTENSION_REPO=${{ env.extension_repo }} && - echo "AAAA -->> ${EXTENSION_REPO}" && echo "::set-output name=plugin::${EXTENSION_REPO}" extension-tests: runs-on: ubuntu-20.04 needs: check-changes if: needs.check-changes.outputs.plugin != '' + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: - name: Checkout uses: actions/checkout@v2 From ab6dfbd14fb80aa558dba47c9ab9c2a97caeccd3 Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 20:57:08 +0200 Subject: [PATCH 139/157] set env2 Signed-off-by: svor --- .ci/prepare-extension-project.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 3e8ad4b130..cb524b3ffb 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -22,8 +22,6 @@ function installDeps() { } function cloneExtension() { - EXTENSION_REPO="${{ env.extension_repo }}" - EXTENSION_REVISION="${{ env.extension_revision }}" echo "EXTENSION REPO -----> $EXTENSION_REPO" echo "EXTENSION REVISION -----> $EXTENSION_REVISION" EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") From e635c1af061cc3eadb421c097e1fc1467afeb40c Mon Sep 17 00:00:00 2001 From: svor Date: Tue, 23 Feb 2021 22:10:19 +0200 Subject: [PATCH 140/157] cleanup Signed-off-by: svor --- .ci/get-changed-plugin.sh | 5 +--- .ci/prepare-extension-project.sh | 28 +++++++++---------- .../vscode-extension-tests-check.yaml | 2 +- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index f68e21dbc6..54cca9c80e 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -29,9 +29,6 @@ do done EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) -echo --- REPOSITORY --- -echo Extension repo is "$EXTENSION_REPO" -echo --- REVISION --- -echo Extension revision is "$EXTENSION_REVISION" + echo "::set-env name=EXTENSION_REVISION::$EXTENSION_REVISION" echo "::set-env name=EXTENSION_REPO::$EXTENSION_REPO" diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index cb524b3ffb..4a6bcb58be 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -1,5 +1,5 @@ #!/bin/bash -# shellcheck disable=SC1091,SC1090 +# shellcheck disable=SC2016 # # Copyright (c) 2012-2021 Red Hat, Inc. # This program and the accompanying materials are made @@ -27,30 +27,30 @@ function cloneExtension() { EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") export EXTENSION_PROJECT_NAME - mkdir -p /tmp/projects/$EXTENSION_PROJECT_NAME - git clone ${EXTENSION_REPO} /tmp/projects/$EXTENSION_PROJECT_NAME - cd /tmp/projects/$EXTENSION_PROJECT_NAME - git checkout tags/${EXTENSION_REVISION} + mkdir -p /tmp/projects/"$EXTENSION_PROJECT_NAME" + git clone "${EXTENSION_REPO}" /tmp/projects/"$EXTENSION_PROJECT_NAME" + cd /tmp/projects/"$EXTENSION_PROJECT_NAME" + git checkout tags/"${EXTENSION_REVISION}" git status } function prepareDevfile() { # Get Extension's ID - EXTENSION_ID=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' $GITHUB_WORKSPACE/che-theia-plugins.yaml) + EXTENSION_ID=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' "$GITHUB_WORKSPACE"/che-theia-plugins.yaml) if [ "$EXTENSION_ID" == null ]; then # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name PACKAGE_JSON=/tmp/projects/$EXTENSION_PROJECT_NAME/package.json - EXTENSION_NAME=$(yq -r '.name' $PACKAGE_JSON) - EXTENSION_PUBLISHER=$(yq -r '.publisher' $PACKAGE_JSON) + EXTENSION_NAME=$(yq -r '.name' "$PACKAGE_JSON") + EXTENSION_PUBLISHER=$(yq -r '.publisher' "$PACKAGE_JSON") EXTENSION_ID=$EXTENSION_PUBLISHER/$EXTENSION_NAME fi EXTENSION_ID=$EXTENSION_ID/latest # Add Extension's ID into devfile template - sed -i -e "s|@|$EXTENSION_ID|g" $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml + sed -i -e "s|@|$EXTENSION_ID|g" "$GITHUB_WORKSPACE"/.ci/templates/extension-tests-devfile.yaml echo ---- Devfile ---- - cat $GITHUB_WORKSPACE/.ci/templates/extension-tests-devfile.yaml + cat "$GITHUB_WORKSPACE"/.ci/templates/extension-tests-devfile.yaml } function buildProject() { @@ -62,7 +62,7 @@ function prepareWorkspace() { chectl workspace:create --start --devfile=https://raw.githubusercontent.com/svor/che-vscode-extension-tests/main/devfile.yaml > workspace_url.txt WORKSPACE_URL=$(tail -n 1 workspace_url.txt) export WORKSPACE_URL - echo Workspace URL is $WORKSPACE_URL + echo Workspace URL is "$WORKSPACE_URL" pods=$(kubectl get pod -n admin-che -l che.workspace_id --field-selector=status.phase==Running 2>&1) while [ "$pods" == 'No resources found in admin-che namespace.' ]; @@ -89,15 +89,15 @@ function prepareWorkspace() { copySources # Start the python3 selenium script that will connect to the workspace to run tests - python3 $GITHUB_WORKSPACE/.ci/tests-runner.py "${WORKSPACE_URL}" + python3 "$GITHUB_WORKSPACE"/.ci/tests-runner.py "${WORKSPACE_URL}" } function copySources() { echo "----- Copy Sources --------" - kubectl cp /tmp/projects/$EXTENSION_PROJECT_NAME admin-che/"${WORKSPACE_NAME}":/projects -c $THEIA_IDE_CONTAINER_NAME + kubectl cp /tmp/projects/"$EXTENSION_PROJECT_NAME" admin-che/"${WORKSPACE_NAME}":/projects -c "$THEIA_IDE_CONTAINER_NAME" echo "----- Sources were copied --------" ### Check if copy - kubectl exec ${WORKSPACE_NAME} -n admin-che -c $THEIA_IDE_CONTAINER_NAME -- ls -la /projects + kubectl exec "${WORKSPACE_NAME}" -n admin-che -c "$THEIA_IDE_CONTAINER_NAME" -- ls -la /projects } function checkTestsLogs() { diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index c143635544..15a3b9e7ba 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -37,7 +37,7 @@ jobs: id: save run: | echo "::set-output name=plugin::${EXTENSION_REPO}" - extension-tests: + test-extension: runs-on: ubuntu-20.04 needs: check-changes if: needs.check-changes.outputs.plugin != '' From dce68369a7c0c00537ef2e62acb44c886bcc3444 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 12:41:45 +0200 Subject: [PATCH 141/157] use env Signed-off-by: svor --- .../vscode-extension-tests-check.yaml | 34 +++++-------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 15a3b9e7ba..42ce6df2ae 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -18,25 +18,6 @@ on: - '.github/workflows/vscode-extension-tests-check.yaml' - '.ci/prepare-extension-project.sh' jobs: - check-changes: - runs-on: ubuntu-20.04 - outputs: - plugin: ${{ steps.save.outputs.plugin }} - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} - - name: Get changed plug-in - run: | - ./.ci/get-changed-plugin.sh - - name: Save plug-in name - id: save - run: | - echo "::set-output name=plugin::${EXTENSION_REPO}" test-extension: runs-on: ubuntu-20.04 needs: check-changes @@ -49,10 +30,15 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} + - name: Get changes + run: | + ./.ci/get-changed-plugin.sh - uses: actions/setup-node@v1 + if: env.EXTENSION_REPO != '' with: node-version: '12' - name: image-build + if: env.EXTENSION_REPO != '' run: | export SKIP_FORMAT=true export SKIP_LINT=true @@ -62,10 +48,10 @@ jobs: # save locally built image docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path - name: Start minikube - id: run-minikube + if: env.EXTENSION_REPO != '' uses: che-incubator/setup-minikube-action@next - name: load-image-minikube-registry - id: load-image-minikube-registry + if: env.EXTENSION_REPO != '' run: | # load image in the docker registry eval $(minikube docker-env) @@ -73,14 +59,12 @@ jobs: # display images docker images - name: Deploy Eclipse Che - id: deploy-che + if: env.EXTENSION_REPO != '' uses: che-incubator/che-deploy-action@next with: # use custom image built by this PR plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path - - name: Get changes - run: | - ./.ci/get-changed-plugin.sh - name: Run VSCode extension's tests + if: env.EXTENSION_REPO != '' run: | ./.ci/prepare-extension-project.sh From ae8897ed730ba1c19d69424b95f33162d38cfa07 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 12:46:11 +0200 Subject: [PATCH 142/157] use env Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 42ce6df2ae..66502f0863 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -20,8 +20,6 @@ on: jobs: test-extension: runs-on: ubuntu-20.04 - needs: check-changes - if: needs.check-changes.outputs.plugin != '' env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: From d241259b2247ae75ee4425313467d9f0ee081f36 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 13:13:36 +0200 Subject: [PATCH 143/157] cleanup Signed-off-by: svor --- .ci/get-changed-plugin.sh | 2 -- .ci/prepare-extension-project.sh | 2 -- che-theia-plugins.yaml | 6 +++--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index 54cca9c80e..bdd0fdd13b 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -20,8 +20,6 @@ echo "$CHANGED_LINES" for number in $CHANGED_LINES do LINE=$(sed "$number!d" che-theia-plugins.yaml | xargs) - echo --- LINE --- - echo "$LINE" if [[ $LINE == *"revision:"* ]]; then break fi diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 4a6bcb58be..4dd79f8ef1 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -22,8 +22,6 @@ function installDeps() { } function cloneExtension() { - echo "EXTENSION REPO -----> $EXTENSION_REPO" - echo "EXTENSION REVISION -----> $EXTENSION_REVISION" EXTENSION_PROJECT_NAME=$(basename "$EXTENSION_REPO") export EXTENSION_PROJECT_NAME diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index 35bb1fa688..a009d9f770 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -321,17 +321,17 @@ plugins: https://github.com/che-incubator/che-theia-openshift-auth/releases/download/0.0.1/che-openshift-authentication-plugin-0.0.1.vsix - repository: url: 'https://github.com/redhat-developer/vscode-yaml' - revision: 0.13.0 + revision: 0.14.0 featured: true sidecar: - directory: node + directory: node1 name: vscode-yaml memoryLimit: 256Mi cpuLimit: 500m cpuRequest: 30m extensions: - >- - https://open-vsx.org/api/redhat/vscode-yaml/0.13.0/file/redhat.vscode-yaml-0.13.0.vsix + https://open-vsx.org/api/redhat/vscode-yaml/0.14.0/file/redhat.vscode-yaml-0.14.0.vsix - id: redhat/java11 repository: url: 'https://github.com/redhat-developer/vscode-java' From 66bcb868e340eaed791181f1ceffdcc52c579b1e Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 13:16:20 +0200 Subject: [PATCH 144/157] cleanup Signed-off-by: svor --- che-theia-plugins.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index a009d9f770..be5aeed301 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -324,7 +324,7 @@ plugins: revision: 0.14.0 featured: true sidecar: - directory: node1 + directory: node name: vscode-yaml memoryLimit: 256Mi cpuLimit: 500m From 490f2b7a248197b90e9b7cb1fb4c16460cca50b8 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 13:20:02 +0200 Subject: [PATCH 145/157] cleanup Signed-off-by: svor --- .ci/get-changed-plugin.sh | 3 +++ .github/workflows/vscode-extension-tests-check.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index bdd0fdd13b..df1b079d59 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -28,5 +28,8 @@ done EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) +echo "revision ---> $EXTENSION_REVISION" +echo "repo ---> $EXTENSION_REPO" + echo "::set-env name=EXTENSION_REVISION::$EXTENSION_REVISION" echo "::set-env name=EXTENSION_REPO::$EXTENSION_REPO" diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 66502f0863..6db4c83731 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -35,7 +35,7 @@ jobs: if: env.EXTENSION_REPO != '' with: node-version: '12' - - name: image-build + - name: Build image if: env.EXTENSION_REPO != '' run: | export SKIP_FORMAT=true @@ -48,7 +48,7 @@ jobs: - name: Start minikube if: env.EXTENSION_REPO != '' uses: che-incubator/setup-minikube-action@next - - name: load-image-minikube-registry + - name: Load image if: env.EXTENSION_REPO != '' run: | # load image in the docker registry From afa5237f8b08c959558f0afd39ae2400a39f51e1 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 13:25:16 +0200 Subject: [PATCH 146/157] update Signed-off-by: svor --- .ci/get-changed-plugin.sh | 4 ++++ .ci/prepare-extension-project.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index df1b079d59..656adaa1c5 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -28,6 +28,10 @@ done EXTENSION_REVISION=$(echo "$LINE" | cut -d ' ' -f 2) EXTENSION_REPO=$(yq -r --arg EXTENSION_REVISION "$EXTENSION_REVISION" '[.plugins[] | select(.repository.revision == $EXTENSION_REVISION )] | .[0] | .repository.url' che-theia-plugins.yaml) +if [[ $EXTENSION_REPO == null ]]; then + EXTENSION_REPO='' +fi + echo "revision ---> $EXTENSION_REVISION" echo "repo ---> $EXTENSION_REPO" diff --git a/.ci/prepare-extension-project.sh b/.ci/prepare-extension-project.sh index 4dd79f8ef1..05a1474e60 100755 --- a/.ci/prepare-extension-project.sh +++ b/.ci/prepare-extension-project.sh @@ -47,7 +47,7 @@ function prepareDevfile() { # Add Extension's ID into devfile template sed -i -e "s|@|$EXTENSION_ID|g" "$GITHUB_WORKSPACE"/.ci/templates/extension-tests-devfile.yaml - echo ---- Devfile ---- + echo ----- Devfile ----- cat "$GITHUB_WORKSPACE"/.ci/templates/extension-tests-devfile.yaml } From e11c946061d80ab92938cd69315f877eeb53136c Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 14:50:10 +0200 Subject: [PATCH 147/157] test shellcheck Signed-off-by: svor --- .ci/get-changed-plugin.sh | 4 ++-- .ci/{prepare-extension-project.sh => run-extension-tests.sh} | 0 .github/workflows/vscode-extension-tests-check.yaml | 4 +--- che-theia-plugins.yaml | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) rename .ci/{prepare-extension-project.sh => run-extension-tests.sh} (100%) diff --git a/.ci/get-changed-plugin.sh b/.ci/get-changed-plugin.sh index 656adaa1c5..e27e23d4ed 100755 --- a/.ci/get-changed-plugin.sh +++ b/.ci/get-changed-plugin.sh @@ -32,8 +32,8 @@ if [[ $EXTENSION_REPO == null ]]; then EXTENSION_REPO='' fi -echo "revision ---> $EXTENSION_REVISION" -echo "repo ---> $EXTENSION_REPO" +echo "Extension revision: $EXTENSION_REVISION" +echo "Extension repository: $EXTENSION_REPO" echo "::set-env name=EXTENSION_REVISION::$EXTENSION_REVISION" echo "::set-env name=EXTENSION_REPO::$EXTENSION_REPO" diff --git a/.ci/prepare-extension-project.sh b/.ci/run-extension-tests.sh similarity index 100% rename from .ci/prepare-extension-project.sh rename to .ci/run-extension-tests.sh diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 6db4c83731..54920826bf 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -15,8 +15,6 @@ on: push: paths: - 'che-theia-plugins.yaml' - - '.github/workflows/vscode-extension-tests-check.yaml' - - '.ci/prepare-extension-project.sh' jobs: test-extension: runs-on: ubuntu-20.04 @@ -65,4 +63,4 @@ jobs: - name: Run VSCode extension's tests if: env.EXTENSION_REPO != '' run: | - ./.ci/prepare-extension-project.sh + ./.ci/run-extension-tests.sh diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index be5aeed301..af7a627841 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -612,7 +612,7 @@ plugins: https://download.jboss.org/jbosstools/vscode/3rdparty/vscode-proto3/vscode-proto3-0.4.2-c4d9ee.vsix - repository: url: 'https://github.com/timonwong/vscode-shellcheck' - revision: v0.13.2 + revision: v0.13.1 sidecar: directory: shellcheck name: shellcheck @@ -621,7 +621,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://github.com/timonwong/vscode-shellcheck/releases/download/v0.13.2/shellcheck-0.13.2.vsix + https://github.com/timonwong/vscode-shellcheck/releases/download/v0.13.1/shellcheck-0.13.1.vsix - repository: url: 'https://github.com/pizzafactory-contorno/vscode-libra-move/' revision: v0.0.10-ddc0d3d From fff00d0598a906494896559cdd320da82fabb0a7 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 15:13:29 +0200 Subject: [PATCH 148/157] tests shellcheck Signed-off-by: svor --- .ci/run-extension-tests.sh | 1 + .github/workflows/vscode-extension-tests-check.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.ci/run-extension-tests.sh b/.ci/run-extension-tests.sh index 05a1474e60..9ebb2dd5af 100755 --- a/.ci/run-extension-tests.sh +++ b/.ci/run-extension-tests.sh @@ -53,6 +53,7 @@ function prepareDevfile() { function buildProject() { yarn install + yarn compile yarn build } diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 54920826bf..671f34c323 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -15,6 +15,7 @@ on: push: paths: - 'che-theia-plugins.yaml' + - 'run-extension-tests.sh' jobs: test-extension: runs-on: ubuntu-20.04 From 011d0d5d7b64c1bb026c46804c954a490e022f32 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 15:16:04 +0200 Subject: [PATCH 149/157] tests shellcheck Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 671f34c323..e2ca549386 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -15,7 +15,7 @@ on: push: paths: - 'che-theia-plugins.yaml' - - 'run-extension-tests.sh' + - '.ci/run-extension-tests.sh' jobs: test-extension: runs-on: ubuntu-20.04 From 56bb3ea6d96949e9915c2465039116c747505bef Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 15:17:04 +0200 Subject: [PATCH 150/157] tests shellcheck Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index e2ca549386..5d249e5eff 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -15,6 +15,7 @@ on: push: paths: - 'che-theia-plugins.yaml' + - '.github/workflows/vscode-extension-tests-check.yaml' - '.ci/run-extension-tests.sh' jobs: test-extension: From cb4a224c447b461ae8307e30de3ab9e55c1d944a Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 16:09:28 +0200 Subject: [PATCH 151/157] tests shellcheck Signed-off-by: svor --- .ci/run-extension-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/run-extension-tests.sh b/.ci/run-extension-tests.sh index 9ebb2dd5af..4f326ed5ac 100755 --- a/.ci/run-extension-tests.sh +++ b/.ci/run-extension-tests.sh @@ -34,7 +34,7 @@ function cloneExtension() { function prepareDevfile() { # Get Extension's ID - EXTENSION_ID=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' "$GITHUB_WORKSPACE"/che-theia-plugins.yaml) + EXTENSION_ID=$(jq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' "$GITHUB_WORKSPACE"/che-theia-plugins.yaml) if [ "$EXTENSION_ID" == null ]; then # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name From 234138fd33b13e3b00a184424ec7c2755a34f294 Mon Sep 17 00:00:00 2001 From: svor Date: Wed, 24 Feb 2021 16:48:23 +0200 Subject: [PATCH 152/157] tests shellcheck Signed-off-by: svor --- .ci/run-extension-tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/run-extension-tests.sh b/.ci/run-extension-tests.sh index 4f326ed5ac..5a2a99c1ab 100755 --- a/.ci/run-extension-tests.sh +++ b/.ci/run-extension-tests.sh @@ -34,13 +34,13 @@ function cloneExtension() { function prepareDevfile() { # Get Extension's ID - EXTENSION_ID=$(jq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' "$GITHUB_WORKSPACE"/che-theia-plugins.yaml) + EXTENSION_ID=$(yq -r --arg EXTENSION_REPO "$EXTENSION_REPO" '[.plugins[] | select(.repository.url == $EXTENSION_REPO)] | .[1] | .id' "$GITHUB_WORKSPACE"/che-theia-plugins.yaml) if [ "$EXTENSION_ID" == null ]; then # If ID wasn't set in che-theia-plugins.yaml let's parse package.json and build ID as publisher/name PACKAGE_JSON=/tmp/projects/$EXTENSION_PROJECT_NAME/package.json - EXTENSION_NAME=$(yq -r '.name' "$PACKAGE_JSON") - EXTENSION_PUBLISHER=$(yq -r '.publisher' "$PACKAGE_JSON") + EXTENSION_NAME=$(jq -r '.name' "$PACKAGE_JSON") + EXTENSION_PUBLISHER=$(jq -r '.publisher' "$PACKAGE_JSON") EXTENSION_ID=$EXTENSION_PUBLISHER/$EXTENSION_NAME fi EXTENSION_ID=$EXTENSION_ID/latest From 0cedfbd63229d5db203ed32f88c0adf4bbabe634 Mon Sep 17 00:00:00 2001 From: svor Date: Thu, 25 Feb 2021 11:26:01 +0200 Subject: [PATCH 153/157] upadate Signed-off-by: svor --- .ci/run-extension-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ci/run-extension-tests.sh b/.ci/run-extension-tests.sh index 5a2a99c1ab..b4bfa0cd44 100755 --- a/.ci/run-extension-tests.sh +++ b/.ci/run-extension-tests.sh @@ -87,6 +87,8 @@ function prepareWorkspace() { ### Copy extension's sources into theia container copySources + sleep 10 + # Start the python3 selenium script that will connect to the workspace to run tests python3 "$GITHUB_WORKSPACE"/.ci/tests-runner.py "${WORKSPACE_URL}" } From fdb0165ad84b1b90f4ade7710cfc222e886d745f Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 1 Mar 2021 11:20:43 +0200 Subject: [PATCH 154/157] cleanup Signed-off-by: svor --- .ci/run-extension-tests.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.ci/run-extension-tests.sh b/.ci/run-extension-tests.sh index b4bfa0cd44..6813064061 100755 --- a/.ci/run-extension-tests.sh +++ b/.ci/run-extension-tests.sh @@ -51,10 +51,9 @@ function prepareDevfile() { cat "$GITHUB_WORKSPACE"/.ci/templates/extension-tests-devfile.yaml } -function buildProject() { +function compileExtension() { yarn install yarn compile - yarn build } function prepareWorkspace() { @@ -121,7 +120,7 @@ function checkTestsLogs() { installDeps cloneExtension -buildProject +compileExtension prepareDevfile prepareWorkspace checkTestsLogs From ff6c5e8e07316b495ce908d34309180106d563de Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 1 Mar 2021 12:16:58 +0200 Subject: [PATCH 155/157] cleanup Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 5d249e5eff..0eef674b9d 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -42,9 +42,9 @@ jobs: export SKIP_LINT=true export SKIP_TEST=true docker pull quay.io/eclipse/che-plugin-registry:nightly - BUILDER=docker ./build.sh --tag happy-path + BUILDER=docker ./build.sh --tag vscode-extension # save locally built image - docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:happy-path + docker save -o docker-image.tar quay.io/eclipse/che-plugin-registry:vscode-extension - name: Start minikube if: env.EXTENSION_REPO != '' uses: che-incubator/setup-minikube-action@next @@ -61,7 +61,7 @@ jobs: uses: che-incubator/che-deploy-action@next with: # use custom image built by this PR - plugin-registry-image: quay.io/eclipse/che-plugin-registry:happy-path + plugin-registry-image: quay.io/eclipse/che-plugin-registry:vscode-extension - name: Run VSCode extension's tests if: env.EXTENSION_REPO != '' run: | From 81e7339674d854e79ef5922fb157d05e647e4440 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 1 Mar 2021 13:06:42 +0200 Subject: [PATCH 156/157] run if che-theia-plugins was changed Signed-off-by: svor --- .github/workflows/vscode-extension-tests-check.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index 0eef674b9d..b1c9d96d44 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -15,8 +15,6 @@ on: push: paths: - 'che-theia-plugins.yaml' - - '.github/workflows/vscode-extension-tests-check.yaml' - - '.ci/run-extension-tests.sh' jobs: test-extension: runs-on: ubuntu-20.04 From d4deda3b62720626b4597305ff066de020d79c43 Mon Sep 17 00:00:00 2001 From: svor Date: Mon, 1 Mar 2021 14:35:23 +0200 Subject: [PATCH 157/157] cleanup Signed-off-by: svor --- .ci/tests-runner.py | 2 +- .github/workflows/vscode-extension-tests-check.yaml | 2 -- che-theia-plugins.yaml | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.ci/tests-runner.py b/.ci/tests-runner.py index ff1aa97080..842dddfda0 100644 --- a/.ci/tests-runner.py +++ b/.ci/tests-runner.py @@ -52,4 +52,4 @@ wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="/projects:/projects/test.log"]'))) print("----- Workspace is ready -----") except Exception as e: - print("Loading took too much time!", e) \ No newline at end of file + print("Loading took too much time!", e) diff --git a/.github/workflows/vscode-extension-tests-check.yaml b/.github/workflows/vscode-extension-tests-check.yaml index b1c9d96d44..854573224f 100644 --- a/.github/workflows/vscode-extension-tests-check.yaml +++ b/.github/workflows/vscode-extension-tests-check.yaml @@ -7,8 +7,6 @@ # SPDX-License-Identifier: EPL-2.0 # -# che-plugin-registry VSCode extension's tests workflow -# matrix jobs with alpine and ubi8 name: VSCode Extension's Tests on: diff --git a/che-theia-plugins.yaml b/che-theia-plugins.yaml index af7a627841..be5aeed301 100644 --- a/che-theia-plugins.yaml +++ b/che-theia-plugins.yaml @@ -612,7 +612,7 @@ plugins: https://download.jboss.org/jbosstools/vscode/3rdparty/vscode-proto3/vscode-proto3-0.4.2-c4d9ee.vsix - repository: url: 'https://github.com/timonwong/vscode-shellcheck' - revision: v0.13.1 + revision: v0.13.2 sidecar: directory: shellcheck name: shellcheck @@ -621,7 +621,7 @@ plugins: cpuRequest: 30m extensions: - >- - https://github.com/timonwong/vscode-shellcheck/releases/download/v0.13.1/shellcheck-0.13.1.vsix + https://github.com/timonwong/vscode-shellcheck/releases/download/v0.13.2/shellcheck-0.13.2.vsix - repository: url: 'https://github.com/pizzafactory-contorno/vscode-libra-move/' revision: v0.0.10-ddc0d3d