You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/02/07 06:18:17 UTC

[skywalking] branch ci/skip updated (8b70ca2 -> 18f2d19)

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a change to branch ci/skip
in repository https://gitbox.apache.org/repos/asf/skywalking.git.


 discard 8b70ca2  Skip CI in some cases to save resources
     new 18f2d19  Skip CI in some cases to save resources

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (8b70ca2)
            \
             N -- N -- N   refs/heads/ci/skip (18f2d19)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/ci-it.yaml       | 23 +++++++++++++++++++++++
 .github/workflows/e2e.cluster.yaml |  4 ++++
 2 files changed, 27 insertions(+)


[skywalking] 01/01: Skip CI in some cases to save resources

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch ci/skip
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 18f2d19579a2d8f2174fc614a78958bf0597a33d
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Sat Feb 6 20:45:56 2021 +0800

    Skip CI in some cases to save resources
---
 .github/actions/plugins-test/action.yml |  2 +-
 .github/actions/skip/action.yml         | 72 +++++++++++++++++++++++++++++++++
 .github/workflows/ci-it.yaml            | 23 +++++++++++
 .github/workflows/e2e.cluster.yaml      |  4 ++
 .github/workflows/e2e.compat.yaml       |  5 +++
 .github/workflows/e2e.event.yaml        |  4 ++
 .github/workflows/e2e.go.yaml           |  4 ++
 .github/workflows/e2e.istio.yaml        | 31 +++++++++++++-
 .github/workflows/e2e.jdk-versions.yaml |  6 +++
 .github/workflows/e2e.js.yaml           |  4 ++
 .github/workflows/e2e.kafka.yaml        |  4 ++
 .github/workflows/e2e.log.yaml          |  4 ++
 .github/workflows/e2e.nodejs.yaml       |  4 ++
 .github/workflows/e2e.php.yaml          |  4 ++
 .github/workflows/e2e.profiling.yaml    |  4 ++
 .github/workflows/e2e.python.yaml       |  4 ++
 .github/workflows/e2e.so11y.yaml        |  4 ++
 .github/workflows/e2e.storages.yaml     |  4 ++
 .github/workflows/e2e.ttl.yaml          |  4 ++
 .github/workflows/e2e.yaml              |  8 ++++
 20 files changed, 196 insertions(+), 3 deletions(-)

diff --git a/.github/actions/plugins-test/action.yml b/.github/actions/plugins-test/action.yml
index f1dfa1c..1869e52 100644
--- a/.github/actions/plugins-test/action.yml
+++ b/.github/actions/plugins-test/action.yml
@@ -43,7 +43,7 @@ runs:
       shell: bash
       run: |
         echo "::group::Add checkstyle plugin to the pom.xml"
-        sed -i "/<\/sourceDirectories>/i <sourceDirectory>scenarios\/""${{ matrix.case }}""<\/sourceDirectory>" test/plugin/pom.xml
+        sed -i "/<\/sourceDirectories>/i <sourceDirectory>scenarios\/""${{ inputs.test_case }}""<\/sourceDirectory>" test/plugin/pom.xml
         echo "::endgroup::"
     - name: Build SkyWalking Agent
       shell: bash
diff --git a/.github/actions/skip/action.yml b/.github/actions/skip/action.yml
new file mode 100644
index 0000000..c05190f
--- /dev/null
+++ b/.github/actions/skip/action.yml
@@ -0,0 +1,72 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+name: "Set Skip Env Var"
+description: "Action to set the SKIP_CI environment variable indicating that we should skip CI jobs"
+inputs:
+  paths:
+    description: >-
+      Set the SKIP_CI environment variable when and only when all the changed files located in one of the path,
+      the paths is shell-style pattern.
+    required: false
+    default: >-
+      "*.md"
+      "skywalking-ui"
+runs:
+  using: "composite"
+  steps:
+    - name: Check Changed Files And Set Env Var
+      shell: bash
+      run: |
+        BASE_SHA=$(jq -r '.pull_request.base.sha' $GITHUB_EVENT_PATH)
+        echo "Base sha is $BASE_SHA, head sha is $GITHUB_SHA"
+
+        git fetch --no-tags --progress --recurse-submodules --depth=1 origin ${BASE_SHA}:origin/${BASE_SHA}
+        BASE_SHA=origin/${BASE_SHA}
+        echo "Base sha is $BASE_SHA, head sha is $GITHUB_SHA"
+
+        if ! files=$(git --no-pager diff --name-only ${GITHUB_SHA} ${BASE_SHA}); then
+          exit 1
+        fi
+
+        echo "Ignore pattern:"
+        for pattern in $(echo '${{ inputs.paths }}'); do
+          echo $pattern
+        done
+
+        echo "Changed files:"
+        for file in ${files}; do
+          echo $file
+        done
+
+        echo "SKIP_CI=true" >> $GITHUB_ENV
+        for file in ${files}; do
+          matched=0
+          for pattern in $(echo '${{ inputs.paths }}'); do
+            pattern=$(echo "$pattern" | sed 's/"//g')
+            if eval "[[ '$file' == $pattern ]]"; then
+              matched=1
+              break
+            fi
+          done
+          if [[ "$matched" == "0" ]]; then
+            echo "$file doesn't match pattern $(echo '${{ inputs.paths }}'), stop checking"
+            echo "SKIP_CI=false" >> $GITHUB_ENV
+            break
+          fi
+        done
diff --git a/.github/workflows/ci-it.yaml b/.github/workflows/ci-it.yaml
index db1700d..a317881 100644
--- a/.github/workflows/ci-it.yaml
+++ b/.github/workflows/ci-it.yaml
@@ -33,11 +33,15 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Check License Header
+        if: env.SKIP_CI != 'true'
         uses: apache/skywalking-eyes@9bd5feb86b5817aa6072b008f9866a2c3bbc8587
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -45,15 +49,19 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - uses: actions/setup-java@v1
+        if: env.SKIP_CI != 'true'
         with:
           java-version: 8
       - name: 'Check Javaagent Plugin List'
+        if: env.SKIP_CI != 'true'
         run: tools/plugin/check-javaagent-plugin-list.sh
       - name: 'Install & Test'
+        if: env.SKIP_CI != 'true'
         run: |
           ./mvnw --batch-mode -P"agent,backend,ui,dist,CI-with-IT" clean cobertura:cobertura verify install javadoc:javadoc
           bash <(curl -s https://codecov.io/bash)
       - name: 'Check Dependencies Licenses'
+        if: env.SKIP_CI != 'true'
         run: tools/dependencies/check-LICENSE.sh
 
   CI-on-JDK11:
@@ -63,9 +71,13 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Check License Header
+        if: env.SKIP_CI != 'true'
         uses: apache/skywalking-eyes@9bd5feb86b5817aa6072b008f9866a2c3bbc8587
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -73,9 +85,11 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - uses: actions/setup-java@v1
+        if: env.SKIP_CI != 'true'
         with:
           java-version: 11
       - name: 'Install & Test'
+        if: env.SKIP_CI != 'true'
         run: ./mvnw --batch-mode -P"agent,backend,ui,dist" clean verify install
 
   CI-on-Windows:
@@ -85,10 +99,14 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - uses: actions/setup-java@v1
+        if: env.SKIP_CI != 'true'
         with:
           java-version: 8
       - name: 'Install & Test'
+        if: env.SKIP_CI != 'true'
         run: ./mvnw --batch-mode -P"agent,backend,ui,dist" clean verify install
 
 
@@ -99,7 +117,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -107,9 +128,11 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - uses: actions/setup-java@v1
+        if: env.SKIP_CI != 'true'
         with:
           java-version: 8
       - name: 'Install & Test'
+        if: env.SKIP_CI != 'true'
         run: |
           # Given packaging on Mac has a high possibility to fail, we retry one more time here
           ./mvnw --batch-mode -P"agent,backend,ui,dist" clean verify install || \
diff --git a/.github/workflows/e2e.cluster.yaml b/.github/workflows/e2e.cluster.yaml
index a282908..aed3e74 100644
--- a/.github/workflows/e2e.cluster.yaml
+++ b/.github/workflows/e2e.cluster.yaml
@@ -40,7 +40,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -48,6 +51,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.ClusterE2E
diff --git a/.github/workflows/e2e.compat.yaml b/.github/workflows/e2e.compat.yaml
index ef9e6b1..4dd2539 100644
--- a/.github/workflows/e2e.compat.yaml
+++ b/.github/workflows/e2e.compat.yaml
@@ -34,7 +34,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -42,10 +45,12 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Set Up Java
+        if: env.SKIP_CI != 'true'
         uses: actions/setup-java@v1
         with:
           java-version: 11
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.simple.SimpleE2E
diff --git a/.github/workflows/e2e.event.yaml b/.github/workflows/e2e.event.yaml
index ad648c6..04a464f 100644
--- a/.github/workflows/e2e.event.yaml
+++ b/.github/workflows/e2e.event.yaml
@@ -40,7 +40,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -48,6 +51,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.event.EventE2E
diff --git a/.github/workflows/e2e.go.yaml b/.github/workflows/e2e.go.yaml
index 5fe93c4..8c77839 100644
--- a/.github/workflows/e2e.go.yaml
+++ b/.github/workflows/e2e.go.yaml
@@ -36,7 +36,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -44,6 +47,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.GOE2E
diff --git a/.github/workflows/e2e.istio.yaml b/.github/workflows/e2e.istio.yaml
index bd72a5d..a054dbb 100644
--- a/.github/workflows/e2e.istio.yaml
+++ b/.github/workflows/e2e.istio.yaml
@@ -48,25 +48,34 @@ jobs:
         with:
           submodules: true
 
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
+
       - uses: actions/cache@v2
+        if: env.SKIP_CI != 'true'
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: ${{ runner.os }}-maven-
 
       - name: Build Docker Image
+        if: env.SKIP_CI != 'true'
         run: make docker
 
       - name: Prepare envrionment
+        if: env.SKIP_CI != 'true'
         run: bash ${SCRIPTS_DIR}/pre.sh
 
       - name: Install Minikube
+        if: env.SKIP_CI != 'true'
         run: bash ${SCRIPTS_DIR}/minikube.sh start
 
       - name: Install Istio
+        if: env.SKIP_CI != 'true'
         run: bash ${SCRIPTS_DIR}/istio.sh --set profile=demo --set meshConfig.defaultConfig.envoyAccessLogService.address=skywalking-oap.istio-system:11800 --set meshConfig.enableEnvoyAccessLogService=true
 
       - name: Install SkyWalking
+        if: env.SKIP_CI != 'true'
         run: |
           git clone https://github.com/apache/skywalking-kubernetes.git
           cd skywalking-kubernetes
@@ -96,6 +105,7 @@ jobs:
           kubectl get services -A -o wide
 
       - name: Deploy demo services
+        if: env.SKIP_CI != 'true'
         run: bash ${SCRIPTS_DIR}/demo.sh
 
       - name: Cluster Info
@@ -106,6 +116,7 @@ jobs:
           minikube status
 
       - name: Set up Minikube tunnel
+        if: env.SKIP_CI != 'true'
         run: |
           mkdir /tmp/minikube-tunnel
           minikube tunnel > /tmp/minikube-tunnel/a.log &
@@ -114,6 +125,7 @@ jobs:
           kubectl -n istio-system port-forward $POD_NAME 8080:8080 > /tmp/minikube-tunnel/b.log &
 
       - name: Run E2E test
+        if: env.SKIP_CI != 'true'
         run: |
           export GATEWAY_HOST=$(minikube ip)
           export GATEWAY_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
@@ -124,13 +136,15 @@ jobs:
 
       - name: Logs
         if: ${{ failure() }}
+        continue-on-error: true
         run: |
           kubectl -n istio-system logs --tail=10000 -l "app=skywalking,release=skywalking,component=ui"
           kubectl -n istio-system logs --tail=10000 -l "app=skywalking,release=skywalking,component=oap"
           cat /tmp/minikube-tunnel/*
 
       - name: Clean up
-        if: ${{ always() }}
+        if: env.SKIP_CI != 'true'
+        continue-on-error: true
         run: minikube delete
 
   metrics-service:
@@ -148,22 +162,30 @@ jobs:
         with:
           submodules: true
 
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
+
       - uses: actions/cache@v2
+        if: env.SKIP_CI != 'true'
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: ${{ runner.os }}-maven-
 
       - name: Build Docker Image
+        if: env.SKIP_CI != 'true'
         run: make docker
 
       - name: Prepare envrionment
+        if: env.SKIP_CI != 'true'
         run: bash ${SCRIPTS_DIR}/pre.sh
 
       - name: Install Minikube
+        if: env.SKIP_CI != 'true'
         run: bash ${SCRIPTS_DIR}/minikube.sh start
 
       - name: Install Istio
+        if: env.SKIP_CI != 'true'
         run: |
           bash ${SCRIPTS_DIR}/istio.sh \
             --set profile=demo \
@@ -171,6 +193,7 @@ jobs:
             --set values.telemetry.v2.enabled=false # disable the metadata-exchange extension intentionally to make sure metrics service doesn't rely on it
 
       - name: Install SkyWalking
+        if: env.SKIP_CI != 'true'
         run: |
           git clone https://github.com/apache/skywalking-kubernetes.git
           cd skywalking-kubernetes
@@ -196,6 +219,7 @@ jobs:
           kubectl get services -A -o wide
 
       - name: Deploy demo services
+        if: env.SKIP_CI != 'true'
         run: bash ${SCRIPTS_DIR}/demo.sh
 
       - name: Cluster Info
@@ -206,6 +230,7 @@ jobs:
           minikube status
 
       - name: Set up Minikube tunnel
+        if: env.SKIP_CI != 'true'
         run: |
           mkdir /tmp/minikube-tunnel
           minikube tunnel > /tmp/minikube-tunnel/a.log &
@@ -214,6 +239,7 @@ jobs:
           kubectl -n istio-system port-forward $POD_NAME 8080:8080 > /tmp/minikube-tunnel/b.log &
 
       - name: Run E2E test
+        if: env.SKIP_CI != 'true'
         run: |
           export GATEWAY_HOST=$(minikube ip)
           export GATEWAY_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
@@ -224,11 +250,12 @@ jobs:
 
       - name: Logs
         if: ${{ failure() }}
+        continue-on-error: true
         run: |
           kubectl -n istio-system logs --tail=10000 -l "app=skywalking,release=skywalking,component=ui"
           kubectl -n istio-system logs --tail=10000 -l "app=skywalking,release=skywalking,component=oap"
           cat /tmp/minikube-tunnel/*
 
       - name: Clean up
-        if: ${{ always() }}
+        if: env.SKIP_CI != 'true'
         run: minikube delete
diff --git a/.github/workflows/e2e.jdk-versions.yaml b/.github/workflows/e2e.jdk-versions.yaml
index 383d36f..6e40fbc 100644
--- a/.github/workflows/e2e.jdk-versions.yaml
+++ b/.github/workflows/e2e.jdk-versions.yaml
@@ -37,7 +37,11 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+          depth: 0
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -45,10 +49,12 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Set Up Java
+        if: env.SKIP_CI != 'true'
         uses: actions/setup-java@v1
         with:
           java-version: ${{ matrix.jdk }}
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.simple.SimpleE2E
diff --git a/.github/workflows/e2e.js.yaml b/.github/workflows/e2e.js.yaml
index f5c9776..5347ad9 100644
--- a/.github/workflows/e2e.js.yaml
+++ b/.github/workflows/e2e.js.yaml
@@ -40,7 +40,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -48,6 +51,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.browser.BrowserE2E
diff --git a/.github/workflows/e2e.kafka.yaml b/.github/workflows/e2e.kafka.yaml
index 0cf63b6..efbd3ed 100644
--- a/.github/workflows/e2e.kafka.yaml
+++ b/.github/workflows/e2e.kafka.yaml
@@ -48,7 +48,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -56,6 +59,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: ${{ matrix.case.class }}
diff --git a/.github/workflows/e2e.log.yaml b/.github/workflows/e2e.log.yaml
index 0f59108..66ed844 100644
--- a/.github/workflows/e2e.log.yaml
+++ b/.github/workflows/e2e.log.yaml
@@ -40,7 +40,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -48,6 +51,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.log.LogE2E
diff --git a/.github/workflows/e2e.nodejs.yaml b/.github/workflows/e2e.nodejs.yaml
index 371c5df..823f9b4 100644
--- a/.github/workflows/e2e.nodejs.yaml
+++ b/.github/workflows/e2e.nodejs.yaml
@@ -36,7 +36,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -44,6 +47,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.NodeJSE2E
diff --git a/.github/workflows/e2e.php.yaml b/.github/workflows/e2e.php.yaml
index d5af9cb..bf93b76 100644
--- a/.github/workflows/e2e.php.yaml
+++ b/.github/workflows/e2e.php.yaml
@@ -33,7 +33,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -41,6 +44,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.PHPE2E
diff --git a/.github/workflows/e2e.profiling.yaml b/.github/workflows/e2e.profiling.yaml
index 2c0ad77..7b53b2d 100644
--- a/.github/workflows/e2e.profiling.yaml
+++ b/.github/workflows/e2e.profiling.yaml
@@ -41,7 +41,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -49,6 +52,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.profile.ProfileE2E
diff --git a/.github/workflows/e2e.python.yaml b/.github/workflows/e2e.python.yaml
index 909d4cc..a18d75c 100644
--- a/.github/workflows/e2e.python.yaml
+++ b/.github/workflows/e2e.python.yaml
@@ -36,7 +36,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -44,6 +47,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.PythonE2E
diff --git a/.github/workflows/e2e.so11y.yaml b/.github/workflows/e2e.so11y.yaml
index 03bbacd..f9c8e95 100644
--- a/.github/workflows/e2e.so11y.yaml
+++ b/.github/workflows/e2e.so11y.yaml
@@ -36,7 +36,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -44,6 +47,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.SO11yE2E
diff --git a/.github/workflows/e2e.storages.yaml b/.github/workflows/e2e.storages.yaml
index 791a6d1..0600640 100644
--- a/.github/workflows/e2e.storages.yaml
+++ b/.github/workflows/e2e.storages.yaml
@@ -38,7 +38,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -46,6 +49,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.storage.StorageE2E
diff --git a/.github/workflows/e2e.ttl.yaml b/.github/workflows/e2e.ttl.yaml
index 495588f..35ecbfa 100644
--- a/.github/workflows/e2e.ttl.yaml
+++ b/.github/workflows/e2e.ttl.yaml
@@ -41,7 +41,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -49,6 +52,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.ttl.StorageTTLE2E
diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml
index 0f91cf2..ff4ac00 100644
--- a/.github/workflows/e2e.yaml
+++ b/.github/workflows/e2e.yaml
@@ -42,7 +42,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -50,6 +53,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: org.apache.skywalking.e2e.simple.SimpleE2E
@@ -78,7 +82,10 @@ jobs:
       - uses: actions/checkout@v2
         with:
           submodules: true
+      - name: Set Skip Env Var
+        uses: ./.github/actions/skip
       - name: Cache local Maven repository
+        if: env.SKIP_CI != 'true'
         uses: actions/cache@v2
         with:
           path: ~/.m2/repository
@@ -86,6 +93,7 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Run E2E Test
+        if: env.SKIP_CI != 'true'
         uses: ./.github/actions/e2e-test
         with:
           test_class: ${{ matrix.case.class }}