From 5f4fa08d93242b67f9d314f4d1310cf3510f80c2 Mon Sep 17 00:00:00 2001 From: daizhenyu <1449308021@qq.com> Date: Wed, 17 Jul 2024 16:00:10 +0800 Subject: [PATCH] xDS Service Discovery Integration Log - 2 Signed-off-by: daizhenyu <1449308021@qq.com> --- .github/actions/common/xds-service/action.yml | 6 +- .github/workflows/Codecov.yml | 116 +-- .../workflows/agentcore_integration_test.yml | 344 +++---- .../workflows/backend_integration_test.yml | 138 +-- .github/workflows/create_release.yml | 120 +-- ...ase_write_prohibition_integration_test.yml | 418 ++++----- .github/workflows/dubbo_integration_test.yml | 406 ++++---- .github/workflows/maven.yml | 104 +-- ...q_consume_prohibition_integration_test.yml | 378 ++++---- .../publish_maven_central_warehouse.yml | 106 +-- .../workflows/spring_integration_test_1.yml | 322 +++---- .../workflows/spring_integration_test_2.yml | 282 +++--- .../tagtransmission_integration_test.yml | 866 +++++++++--------- .../product/spring-client/start.sh | 3 +- .../product/spring-server/start.sh | 2 +- .../script/spring-client.yaml | 4 +- .../discovery/XdsServiceDiscoveryTest.java | 2 +- 17 files changed, 1811 insertions(+), 1806 deletions(-) diff --git a/.github/actions/common/xds-service/action.yml b/.github/actions/common/xds-service/action.yml index cd4084f974..5aa3f84d83 100644 --- a/.github/actions/common/xds-service/action.yml +++ b/.github/actions/common/xds-service/action.yml @@ -48,4 +48,8 @@ runs: uses: actions/cache@v3 with: path: sermant-integration-tests/xds-service-test/product/ - key: ${{ runner.os }}-xds-service-product-${{ github.run_id }} \ No newline at end of file + key: ${{ runner.os }}-xds-service-product-${{ github.run_id }} + - name: entry + uses: ./.github/actions/common/entry + with: + log-dir: ./logs/xds-service \ No newline at end of file diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml index e3166e0ded..5af398a820 100644 --- a/.github/workflows/Codecov.yml +++ b/.github/workflows/Codecov.yml @@ -1,58 +1,58 @@ -name: Unit test and code coverage -on: [push, pull_request] -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - java_version: [8] - os: [ubuntu-latest] - permissions: - checks: write - contents: write - pull-requests: write - statuses: write - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up JDK ${{ matrix.java_version }} - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java_version }} - distribution: 'adopt' - cache: maven - - name: Cache Maven packages - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - name: download sc - run: | - curl -o apache-servicecomb-service-center-2.1.0-linux-amd64.tar.gz -L https://github.com/apache/servicecomb-service-center/releases/download/v2.1.0/apache-servicecomb-service-center-2.1.0-linux-amd64.tar.gz - tar -zxf apache-servicecomb-service-center-2.1.0-linux-amd64.tar.gz - sh apache-servicecomb-service-center-2.1.0-linux-amd64/start-service-center.sh - - name: download zookeeper - run: | - curl -o apache-zookeeper-3.6.3-bin.tar.gz -L https://archive.apache.org/dist/zookeeper/zookeeper-3.6.3/apache-zookeeper-3.6.3-bin.tar.gz - tar -zxf apache-zookeeper-3.6.3-bin.tar.gz - bash apache-zookeeper-3.6.3-bin/bin/zkServer.sh start apache-zookeeper-3.6.3-bin/conf/zoo_sample.cfg - - name: download nacos - run: | - curl -o nacos-server-2.1.0.tar.gz -L https://github.com/alibaba/nacos/releases/download/2.1.0/nacos-server-2.1.0.tar.gz - tar -zxf nacos-server-2.1.0.tar.gz - bash nacos/bin/startup.sh -m standalone - - name: Build with Maven - run: mvn test - - name: Generate code coverage report - uses: codecov/codecov-action@v4 - with: - files: ${{ github.workspace }}/report/target/jacoco/jacoco.xml - flags: unittests - fail_ci_if_error: true # optional (default = false) - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} +#name: Unit test and code coverage +#on: [push, pull_request] +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# build: +# runs-on: ubuntu-latest +# strategy: +# fail-fast: false +# matrix: +# java_version: [8] +# os: [ubuntu-latest] +# permissions: +# checks: write +# contents: write +# pull-requests: write +# statuses: write +# steps: +# - name: Checkout +# uses: actions/checkout@v3 +# - name: Set up JDK ${{ matrix.java_version }} +# uses: actions/setup-java@v3 +# with: +# java-version: ${{ matrix.java_version }} +# distribution: 'adopt' +# cache: maven +# - name: Cache Maven packages +# uses: actions/cache@v3 +# with: +# path: ~/.m2 +# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} +# restore-keys: ${{ runner.os }}-m2 +# - name: download sc +# run: | +# curl -o apache-servicecomb-service-center-2.1.0-linux-amd64.tar.gz -L https://github.com/apache/servicecomb-service-center/releases/download/v2.1.0/apache-servicecomb-service-center-2.1.0-linux-amd64.tar.gz +# tar -zxf apache-servicecomb-service-center-2.1.0-linux-amd64.tar.gz +# sh apache-servicecomb-service-center-2.1.0-linux-amd64/start-service-center.sh +# - name: download zookeeper +# run: | +# curl -o apache-zookeeper-3.6.3-bin.tar.gz -L https://archive.apache.org/dist/zookeeper/zookeeper-3.6.3/apache-zookeeper-3.6.3-bin.tar.gz +# tar -zxf apache-zookeeper-3.6.3-bin.tar.gz +# bash apache-zookeeper-3.6.3-bin/bin/zkServer.sh start apache-zookeeper-3.6.3-bin/conf/zoo_sample.cfg +# - name: download nacos +# run: | +# curl -o nacos-server-2.1.0.tar.gz -L https://github.com/alibaba/nacos/releases/download/2.1.0/nacos-server-2.1.0.tar.gz +# tar -zxf nacos-server-2.1.0.tar.gz +# bash nacos/bin/startup.sh -m standalone +# - name: Build with Maven +# run: mvn test +# - name: Generate code coverage report +# uses: codecov/codecov-action@v4 +# with: +# files: ${{ github.workspace }}/report/target/jacoco/jacoco.xml +# flags: unittests +# fail_ci_if_error: true # optional (default = false) +# env: +# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/agentcore_integration_test.yml b/.github/workflows/agentcore_integration_test.yml index bcd09d0824..4e1fb684ba 100644 --- a/.github/workflows/agentcore_integration_test.yml +++ b/.github/workflows/agentcore_integration_test.yml @@ -1,175 +1,175 @@ -name: Agent-core Integration Test -env: - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-integration-tests/agentcore-test/**' - - '.github/workflows/agentcore*.yml' - - '.github/actions/common/agentcore/action.yml' - - '.github/actions/scenarios/agentcore/action.yml' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download midwares and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: cache local cse - uses: actions/cache@v3 - with: - path: Local-CSE-2.1.3-linux-amd64.zip - key: ${{ runner.os }}-local-cse - restore-keys: | - ${{ runner.os }}-local-cse - - name: download cse - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse - - name: cache zookeeper - uses: actions/cache@v3 - with: - path: apache-zookeeper-3.6.3-bin.tar.gz - key: ${{ runner.os }}-apache-zookeeper-3.6.3 - restore-keys: | - ${{ runner.os }}-apache-zookeeper-3.6.3 - - name: download zookeeper - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - - name: cache nacos server - uses: actions/cache@v3 - with: - path: nacos-server-2.1.0.tar.gz - key: ${{ runner.os }}-nacos-server-2.1.0 - restore-keys: | - ${{ runner.os }}-nacos-server-2.1.0 - - name: download nacos - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos210 - build-agent-and-cache: - name: build agent and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 8 - uses: actions/setup-java@v2 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-injector/d' pom.xml - mvn package -DskipTests -Ptest --file pom.xml - - name: move test plugin - run: | - mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/agentcore-test-plugin/plugin - mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-first-plugin/plugin - mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-second-plugin/plugin - mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-third-plugin/plugin - cp ./sermant-integration-tests/agentcore-test/agentcore-test-plugin/target/agentcore-test-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/agentcore-test-plugin/plugin/ - cp -r ./sermant-integration-tests/agentcore-test/config sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/agentcore-test-plugin/ - cp ./sermant-integration-tests/agentcore-test/dynamic-test-first-plugin/target/dynamic-test-first-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-first-plugin/plugin/ - cp ./sermant-integration-tests/agentcore-test/dynamic-test-second-plugin/target/dynamic-test-second-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-second-plugin/plugin/ - cp ./sermant-integration-tests/agentcore-test/dynamic-test-third-plugin/target/dynamic-test-third-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-third-plugin/plugin/ - cp ./sermant-integration-tests/agentcore-test/agentcore-test-application/target/agentcore-test-application-1.0.0-jar-with-dependencies.jar sermant-agent-${{ env.sermantVersion }}/agent/ - sed -i '/plugins:/a \ - agentcore-test-plugin' sermant-agent-${{ env.sermantVersion }}/agent/config/plugins.yaml - test-for-agentcore-common: - name: Test for agentcore common - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/agentcore - - name: start agentcore common test - uses: ./.github/actions/scenarios/agentcore/common - test-for-agentcore-dynamic-config: - name: Test for agentcore dynamic config - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - serviceAddress: "127.0.0.1:8848" - dynamicConfigType: "NACOS" - - serviceAddress: "127.0.0.1:2181" - dynamicConfigType: "ZOOKEEPER" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/agentcore - - name: test dynamic config for ${{ matrix.dynamicConfigType }} - uses: ./.github/actions/scenarios/agentcore/dynamic-config - test-for-agentcore-dynamic: - name: Test for agentcore dynamic - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/agentcore - - name: start dynamic test - uses: ./.github/actions/scenarios/agentcore/dynamic - test-for-agentcore-premain-startup: - name: Test for agentcore premain startup - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/agentcore - - name: start dynamic test - uses: ./.github/actions/scenarios/agentcore/premain - test-for-agentcore-agentmain-startup: - name: Test for agentcore agentmain startup - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/agentcore - - name: start dynamic test - uses: ./.github/actions/scenarios/agentcore/agentmain +#name: Agent-core Integration Test +#env: +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-integration-tests/agentcore-test/**' +# - '.github/workflows/agentcore*.yml' +# - '.github/actions/common/agentcore/action.yml' +# - '.github/actions/scenarios/agentcore/action.yml' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download midwares and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: cache local cse +# uses: actions/cache@v3 +# with: +# path: Local-CSE-2.1.3-linux-amd64.zip +# key: ${{ runner.os }}-local-cse +# restore-keys: | +# ${{ runner.os }}-local-cse +# - name: download cse +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse +# - name: cache zookeeper +# uses: actions/cache@v3 +# with: +# path: apache-zookeeper-3.6.3-bin.tar.gz +# key: ${{ runner.os }}-apache-zookeeper-3.6.3 +# restore-keys: | +# ${{ runner.os }}-apache-zookeeper-3.6.3 +# - name: download zookeeper +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# - name: cache nacos server +# uses: actions/cache@v3 +# with: +# path: nacos-server-2.1.0.tar.gz +# key: ${{ runner.os }}-nacos-server-2.1.0 +# restore-keys: | +# ${{ runner.os }}-nacos-server-2.1.0 +# - name: download nacos +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos210 +# build-agent-and-cache: +# name: build agent and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - name: Set up JDK 8 +# uses: actions/setup-java@v2 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-injector/d' pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# - name: move test plugin +# run: | +# mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/agentcore-test-plugin/plugin +# mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-first-plugin/plugin +# mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-second-plugin/plugin +# mkdir -p sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-third-plugin/plugin +# cp ./sermant-integration-tests/agentcore-test/agentcore-test-plugin/target/agentcore-test-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/agentcore-test-plugin/plugin/ +# cp -r ./sermant-integration-tests/agentcore-test/config sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/agentcore-test-plugin/ +# cp ./sermant-integration-tests/agentcore-test/dynamic-test-first-plugin/target/dynamic-test-first-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-first-plugin/plugin/ +# cp ./sermant-integration-tests/agentcore-test/dynamic-test-second-plugin/target/dynamic-test-second-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-second-plugin/plugin/ +# cp ./sermant-integration-tests/agentcore-test/dynamic-test-third-plugin/target/dynamic-test-third-plugin-1.0.0.jar sermant-agent-${{ env.sermantVersion }}/agent/pluginPackage/dynamic-test-third-plugin/plugin/ +# cp ./sermant-integration-tests/agentcore-test/agentcore-test-application/target/agentcore-test-application-1.0.0-jar-with-dependencies.jar sermant-agent-${{ env.sermantVersion }}/agent/ +# sed -i '/plugins:/a \ - agentcore-test-plugin' sermant-agent-${{ env.sermantVersion }}/agent/config/plugins.yaml +# test-for-agentcore-common: +# name: Test for agentcore common +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/agentcore +# - name: start agentcore common test +# uses: ./.github/actions/scenarios/agentcore/common +# test-for-agentcore-dynamic-config: +# name: Test for agentcore dynamic config +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - serviceAddress: "127.0.0.1:8848" +# dynamicConfigType: "NACOS" +# - serviceAddress: "127.0.0.1:2181" +# dynamicConfigType: "ZOOKEEPER" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/agentcore +# - name: test dynamic config for ${{ matrix.dynamicConfigType }} +# uses: ./.github/actions/scenarios/agentcore/dynamic-config +# test-for-agentcore-dynamic: +# name: Test for agentcore dynamic +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/agentcore +# - name: start dynamic test +# uses: ./.github/actions/scenarios/agentcore/dynamic +# test-for-agentcore-premain-startup: +# name: Test for agentcore premain startup +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/agentcore +# - name: start dynamic test +# uses: ./.github/actions/scenarios/agentcore/premain +# test-for-agentcore-agentmain-startup: +# name: Test for agentcore agentmain startup +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/agentcore +# - name: start dynamic test +# uses: ./.github/actions/scenarios/agentcore/agentmain diff --git a/.github/workflows/backend_integration_test.yml b/.github/workflows/backend_integration_test.yml index f507eb7c9c..a54a4ae905 100644 --- a/.github/workflows/backend_integration_test.yml +++ b/.github/workflows/backend_integration_test.yml @@ -1,71 +1,71 @@ -name: Backend Integration Test -env: - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-backend/**' - - '.github/workflows/backend*.yml' - - '.github/actions/scenarios/backend/memory/action.yml' - - '.github/actions/scenarios/backend/redis/action.yml' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download midwares and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: cache middlewares - uses: actions/cache@v3 - with: - path: | - apache-zookeeper-*/ - key: ${{ runner.os }}-middlewares-${{ github.run_id }} - - name: download middlewares - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - tar -zxf apache-zookeeper-3.6.3-bin.tar.gz - build-agent-and-cache: - name: build agent and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 8 - uses: actions/setup-java@v2 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-backend-lite/d' pom.xml - sed -i '/sermant-integration-tests/d' pom.xml - sed -i '/sermant-injector/d' pom.xml - mvn package -DskipTests -Ptest --file pom.xml - test-for-backend: - name: Test for backend - runs-on: ubuntu-latest - needs: [ build-agent-and-cache, download-midwares-and-cache ] - steps: - - uses: actions/checkout@v2 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: start backend use memory test - uses: ./.github/actions/scenarios/backend/memory - - name: start backend use redis test - uses: ./.github/actions/scenarios/backend/redis +#name: Backend Integration Test +#env: +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-backend/**' +# - '.github/workflows/backend*.yml' +# - '.github/actions/scenarios/backend/memory/action.yml' +# - '.github/actions/scenarios/backend/redis/action.yml' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download midwares and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - name: cache middlewares +# uses: actions/cache@v3 +# with: +# path: | +# apache-zookeeper-*/ +# key: ${{ runner.os }}-middlewares-${{ github.run_id }} +# - name: download middlewares +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# tar -zxf apache-zookeeper-3.6.3-bin.tar.gz +# build-agent-and-cache: +# name: build agent and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - name: Set up JDK 8 +# uses: actions/setup-java@v2 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-backend-lite/d' pom.xml +# sed -i '/sermant-integration-tests/d' pom.xml +# sed -i '/sermant-injector/d' pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# test-for-backend: +# name: Test for backend +# runs-on: ubuntu-latest +# needs: [ build-agent-and-cache, download-midwares-and-cache ] +# steps: +# - uses: actions/checkout@v2 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: start backend use memory test +# uses: ./.github/actions/scenarios/backend/memory +# - name: start backend use redis test +# uses: ./.github/actions/scenarios/backend/redis diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index e2e73812a2..73cedab5b9 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -1,60 +1,60 @@ -on: - push: - tags: - - 'v*' - -name: Create Release - -env: - tag: ${{ github.ref }} - -jobs: - auto-create-release: - name: Auto Create Release - runs-on: windows-latest - steps: - - name: save env version - shell: bash - run: | - str=${{env.tag}} - echo "version=${str##*v}" >> $GITHUB_ENV - - name: Checkout Source - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: Create License Binary Suffix - run: | - mvn license:aggregate-add-third-party - - name: set version - run: | - mvn versions:set -DnewVersion='${{ env.version }}' - - name: Build with Maven - run: | - mvn clean package -P agent -P package -DskipTests - mkdir ${{ github.workspace }}/package - cp ${{ github.workspace }}/sermant-agent-*.tar.gz ${{ github.workspace }}/package/sermant-${{ env.version }}.tar.gz - ls ${{ github.workspace }}/package - - name: Create Release # automatically release new version - id: create_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - name: Upload Release - id: upload-release-asset - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/package/sermant-${{ env.version }}.tar.gz - asset_name: sermant-${{ env.version }}.tar.gz - asset_content_type: application/tar \ No newline at end of file +#on: +# push: +# tags: +# - 'v*' +# +#name: Create Release +# +#env: +# tag: ${{ github.ref }} +# +#jobs: +# auto-create-release: +# name: Auto Create Release +# runs-on: windows-latest +# steps: +# - name: save env version +# shell: bash +# run: | +# str=${{env.tag}} +# echo "version=${str##*v}" >> $GITHUB_ENV +# - name: Checkout Source +# uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: Create License Binary Suffix +# run: | +# mvn license:aggregate-add-third-party +# - name: set version +# run: | +# mvn versions:set -DnewVersion='${{ env.version }}' +# - name: Build with Maven +# run: | +# mvn clean package -P agent -P package -DskipTests +# mkdir ${{ github.workspace }}/package +# cp ${{ github.workspace }}/sermant-agent-*.tar.gz ${{ github.workspace }}/package/sermant-${{ env.version }}.tar.gz +# ls ${{ github.workspace }}/package +# - name: Create Release # automatically release new version +# id: create_release +# uses: actions/create-release@v1.1.4 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: ${{ github.ref }} +# release_name: Release ${{ github.ref }} +# draft: false +# prerelease: false +# - name: Upload Release +# id: upload-release-asset +# uses: actions/upload-release-asset@v1.0.2 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ${{ github.workspace }}/package/sermant-${{ env.version }}.tar.gz +# asset_name: sermant-${{ env.version }}.tar.gz +# asset_content_type: application/tar \ No newline at end of file diff --git a/.github/workflows/database_write_prohibition_integration_test.yml b/.github/workflows/database_write_prohibition_integration_test.yml index 17ef0e4f6d..cb3034df8c 100644 --- a/.github/workflows/database_write_prohibition_integration_test.yml +++ b/.github/workflows/database_write_prohibition_integration_test.yml @@ -1,209 +1,209 @@ -name: database-write-prohibition integration test -env: - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-integration-tests/database-write-prohibition-test/**' - - 'sermant-plugins/sermant-database-write-prohibition/**' - - '.github/workflows/database_write_prohibition_integration_test.yml' - - '.github/actions/common/database-write-prohibition/**' - - '.github/actions/scenarios/database-write-prohibition/**' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download midwares and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: cache zookeeper - uses: actions/cache@v3 - with: - path: apache-zookeeper-3.6.3-bin.tar.gz - key: ${{ runner.os }}-apache-zookeeper-3.6.3 - restore-keys: | - ${{ runner.os }}-apache-zookeeper-3.6.3 - - name: download zookeeper - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - build-agent-and-cache: - name: build agent and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-backend/d' pom.xml - sed -i '/sermant-integration-tests/d' pom.xml - sed -i '/sermant-injector/d' pom.xml - mvn package -DskipTests -Ptest --file pom.xml - test-for-database-write-prohibition-mongodb: - name: Test for database-write-prohibition mongodb - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - mongodbClientVersion: "3.7.0" - - mongodbClientVersion: "3.8.2" - - mongodbClientVersion: "3.9.1" - - mongodbClientVersion: "3.10.2" - - mongodbClientVersion: "3.11.3" - - mongodbClientVersion: "3.12.14" - - mongodbClientVersion: "4.0.6" - - mongodbClientVersion: "4.1.2" - - mongodbClientVersion: "4.2.3" - - mongodbClientVersion: "4.3.4" - - mongodbClientVersion: "4.4.2" - - mongodbClientVersion: "4.5.1" - - mongodbClientVersion: "4.6.1" - - mongodbClientVersion: "4.7.2" - - mongodbClientVersion: "4.8.2" - - mongodbClientVersion: "4.9.1" - - mongodbClientVersion: "4.10.2" - - mongodbClientVersion: "4.11.1" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/database-write-prohibition - - name: database-write-prohibition-mongodb test for mongodbClientVersion=${{ matrix.mongodbClientVersion }} - uses: ./.github/actions/scenarios/database-write-prohibition/mongodb - test-for-database-write-prohibition-mysql: - name: Test for database-write-prohibition mysql - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - mysqlClientVersion: "2.6.2" - - mysqlClientVersion: "2.7.6" - - mysqlClientVersion: "2.7.12" - - mysqlClientVersion: "3.0.6" - - mysqlClientVersion: "3.0.11" - - mysqlClientVersion: "3.1.4" - - mysqlClientVersion: "3.2.0" - - mysqlClientVersion: "3.3.3" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/database-write-prohibition - - name: database-write-prohibition-mysql test for mysqlClientVersion=${{ matrix.mysqlClientVersion }} - uses: ./.github/actions/scenarios/database-write-prohibition/mysql - test-for-postgresql: - name: Test for postgresql - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - postgresqlVersion: "9.4-1200-jdbc4" - - postgresqlVersion: "9.4-1203-jdbc4" - - postgresqlVersion: "9.4-1206-jdbc4" - - postgresqlVersion: "9.4-1200-jdbc41" - - postgresqlVersion: "9.4-1203-jdbc41" - - postgresqlVersion: "9.4-1206-jdbc41" - - postgresqlVersion: "9.4.1207" - - postgresqlVersion: "9.4.1210" - - postgresqlVersion: "9.4.1212" - - postgresqlVersion: "42.0.0" - - postgresqlVersion: "42.1.0" - - postgresqlVersion: "42.1.2" - - postgresqlVersion: "42.1.4" - - postgresqlVersion: "42.2.0" - - postgresqlVersion: "42.2.3" - - postgresqlVersion: "42.2.6" - - postgresqlVersion: "42.2.9" - - postgresqlVersion: "42.2.12" - - postgresqlVersion: "42.2.15" - - postgresqlVersion: "42.2.18" - - postgresqlVersion: "42.2.21" - - postgresqlVersion: "42.2.24" - - postgresqlVersion: "42.2.27" - - postgresqlVersion: "42.2.29" - - postgresqlVersion: "42.3.0" - - postgresqlVersion: "42.3.3" - - postgresqlVersion: "42.3.6" - - postgresqlVersion: "42.3.8" - - postgresqlVersion: "42.3.10" - - postgresqlVersion: "42.4.0" - - postgresqlVersion: "42.4.3" - - postgresqlVersion: "42.4.5" - - postgresqlVersion: "42.5.0" - - postgresqlVersion: "42.5.3" - - postgresqlVersion: "42.5.6" - - postgresqlVersion: "42.6.0" - - postgresqlVersion: "42.6.2" - - postgresqlVersion: "42.7.0" - - postgresqlVersion: "42.7.2" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - datasourcePassword=$(openssl rand -base64 16 | tr -dc 'a-zA-Z0-9' | head -c 10)A1a#$ - echo "datasourcePassword=$datasourcePassword" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/database-write-prohibition - - name: database-write-prohibition test for postgresqlVersion=${{ matrix.postgresqlVersion }} - uses: ./.github/actions/scenarios/database-write-prohibition/postgresql/ - test-for-opengauss: - name: Test for opengauss - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - opengaussVersion: "3.0.0" - - opengaussVersion: "3.0.5" - - opengaussVersion: "3.0.5-og" - - opengaussVersion: "3.1.0" - - opengaussVersion: "3.1.0-og" - - opengaussVersion: "3.1.1" - - opengaussVersion: "3.1.1-og" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - datasourcePassword=$(openssl rand -base64 16 | tr -dc 'a-zA-Z0-9' | head -c 10)A1a#$ - echo "datasourcePassword=$datasourcePassword" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/database-write-prohibition - - name: database-write-prohibition test for opengaussVersion=${{ matrix.opengaussVersion }} - uses: ./.github/actions/scenarios/database-write-prohibition/opengauss/ \ No newline at end of file +#name: database-write-prohibition integration test +#env: +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-integration-tests/database-write-prohibition-test/**' +# - 'sermant-plugins/sermant-database-write-prohibition/**' +# - '.github/workflows/database_write_prohibition_integration_test.yml' +# - '.github/actions/common/database-write-prohibition/**' +# - '.github/actions/scenarios/database-write-prohibition/**' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download midwares and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: cache zookeeper +# uses: actions/cache@v3 +# with: +# path: apache-zookeeper-3.6.3-bin.tar.gz +# key: ${{ runner.os }}-apache-zookeeper-3.6.3 +# restore-keys: | +# ${{ runner.os }}-apache-zookeeper-3.6.3 +# - name: download zookeeper +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# build-agent-and-cache: +# name: build agent and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-backend/d' pom.xml +# sed -i '/sermant-integration-tests/d' pom.xml +# sed -i '/sermant-injector/d' pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# test-for-database-write-prohibition-mongodb: +# name: Test for database-write-prohibition mongodb +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - mongodbClientVersion: "3.7.0" +# - mongodbClientVersion: "3.8.2" +# - mongodbClientVersion: "3.9.1" +# - mongodbClientVersion: "3.10.2" +# - mongodbClientVersion: "3.11.3" +# - mongodbClientVersion: "3.12.14" +# - mongodbClientVersion: "4.0.6" +# - mongodbClientVersion: "4.1.2" +# - mongodbClientVersion: "4.2.3" +# - mongodbClientVersion: "4.3.4" +# - mongodbClientVersion: "4.4.2" +# - mongodbClientVersion: "4.5.1" +# - mongodbClientVersion: "4.6.1" +# - mongodbClientVersion: "4.7.2" +# - mongodbClientVersion: "4.8.2" +# - mongodbClientVersion: "4.9.1" +# - mongodbClientVersion: "4.10.2" +# - mongodbClientVersion: "4.11.1" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/database-write-prohibition +# - name: database-write-prohibition-mongodb test for mongodbClientVersion=${{ matrix.mongodbClientVersion }} +# uses: ./.github/actions/scenarios/database-write-prohibition/mongodb +# test-for-database-write-prohibition-mysql: +# name: Test for database-write-prohibition mysql +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - mysqlClientVersion: "2.6.2" +# - mysqlClientVersion: "2.7.6" +# - mysqlClientVersion: "2.7.12" +# - mysqlClientVersion: "3.0.6" +# - mysqlClientVersion: "3.0.11" +# - mysqlClientVersion: "3.1.4" +# - mysqlClientVersion: "3.2.0" +# - mysqlClientVersion: "3.3.3" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/database-write-prohibition +# - name: database-write-prohibition-mysql test for mysqlClientVersion=${{ matrix.mysqlClientVersion }} +# uses: ./.github/actions/scenarios/database-write-prohibition/mysql +# test-for-postgresql: +# name: Test for postgresql +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - postgresqlVersion: "9.4-1200-jdbc4" +# - postgresqlVersion: "9.4-1203-jdbc4" +# - postgresqlVersion: "9.4-1206-jdbc4" +# - postgresqlVersion: "9.4-1200-jdbc41" +# - postgresqlVersion: "9.4-1203-jdbc41" +# - postgresqlVersion: "9.4-1206-jdbc41" +# - postgresqlVersion: "9.4.1207" +# - postgresqlVersion: "9.4.1210" +# - postgresqlVersion: "9.4.1212" +# - postgresqlVersion: "42.0.0" +# - postgresqlVersion: "42.1.0" +# - postgresqlVersion: "42.1.2" +# - postgresqlVersion: "42.1.4" +# - postgresqlVersion: "42.2.0" +# - postgresqlVersion: "42.2.3" +# - postgresqlVersion: "42.2.6" +# - postgresqlVersion: "42.2.9" +# - postgresqlVersion: "42.2.12" +# - postgresqlVersion: "42.2.15" +# - postgresqlVersion: "42.2.18" +# - postgresqlVersion: "42.2.21" +# - postgresqlVersion: "42.2.24" +# - postgresqlVersion: "42.2.27" +# - postgresqlVersion: "42.2.29" +# - postgresqlVersion: "42.3.0" +# - postgresqlVersion: "42.3.3" +# - postgresqlVersion: "42.3.6" +# - postgresqlVersion: "42.3.8" +# - postgresqlVersion: "42.3.10" +# - postgresqlVersion: "42.4.0" +# - postgresqlVersion: "42.4.3" +# - postgresqlVersion: "42.4.5" +# - postgresqlVersion: "42.5.0" +# - postgresqlVersion: "42.5.3" +# - postgresqlVersion: "42.5.6" +# - postgresqlVersion: "42.6.0" +# - postgresqlVersion: "42.6.2" +# - postgresqlVersion: "42.7.0" +# - postgresqlVersion: "42.7.2" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# datasourcePassword=$(openssl rand -base64 16 | tr -dc 'a-zA-Z0-9' | head -c 10)A1a#$ +# echo "datasourcePassword=$datasourcePassword" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/database-write-prohibition +# - name: database-write-prohibition test for postgresqlVersion=${{ matrix.postgresqlVersion }} +# uses: ./.github/actions/scenarios/database-write-prohibition/postgresql/ +# test-for-opengauss: +# name: Test for opengauss +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - opengaussVersion: "3.0.0" +# - opengaussVersion: "3.0.5" +# - opengaussVersion: "3.0.5-og" +# - opengaussVersion: "3.1.0" +# - opengaussVersion: "3.1.0-og" +# - opengaussVersion: "3.1.1" +# - opengaussVersion: "3.1.1-og" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# datasourcePassword=$(openssl rand -base64 16 | tr -dc 'a-zA-Z0-9' | head -c 10)A1a#$ +# echo "datasourcePassword=$datasourcePassword" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/database-write-prohibition +# - name: database-write-prohibition test for opengaussVersion=${{ matrix.opengaussVersion }} +# uses: ./.github/actions/scenarios/database-write-prohibition/opengauss/ \ No newline at end of file diff --git a/.github/workflows/dubbo_integration_test.yml b/.github/workflows/dubbo_integration_test.yml index 71b0187352..101d45c0c5 100644 --- a/.github/workflows/dubbo_integration_test.yml +++ b/.github/workflows/dubbo_integration_test.yml @@ -1,203 +1,203 @@ -name: Dubbo Integration Test -env: - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-integration-tests/**' - - 'sermant-plugins/sermant-dynamic-config/**' - - 'sermant-plugins/sermant-flowcontrol/**' - - 'sermant-plugins/sermant-loadbalancer/**' - - 'sermant-plugins/sermant-router/**' - - 'sermant-plugins/sermant-service-registry/**' - - 'sermant-plugins/sermant-springboot-registry/**' - - 'sermant-plugins/sermant-monitor/**' - - 'sermant-plugins/sermant-service-visibility/**' - - '.github/workflows/dubbo_integration*.yml' - - '.github/actions/**' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download and cache middlewares - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: cache middlewares - uses: actions/cache@v3 - with: - path: | - apache-zookeeper-*/ - Local-CSE-2.1.3-linux-amd64.zip - key: ${{ runner.os }}-middlewares-${{ github.run_id }} - - name: download middlewares - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - tar -zxf apache-zookeeper-3.6.3-bin.tar.gz - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh - build-agent-and-cache: - name: package and cache agent - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-backend-lite/d' pom.xml - sed -i '/sermant-integration-tests/d' pom.xml - sed -i '/sermant-injector/d' pom.xml - mvn package -DskipTests -Ptest --file pom.xml - test-for-dubbo: - name: Test for dubbo - runs-on: ubuntu-latest - needs: [download-midwares-and-cache, build-agent-and-cache] - strategy: - matrix: - dubbo-version: ['2-5','2-6','2-7'] - dubbo-versions: ['0','3','6','9','12'] - include: - - dubbo-version: '2-5' - dubbo-versions: '10' - - dubbo-version: '2-7' - dubbo-versions: '15' - exclude: - - dubbo-version: '2-5' - dubbo-versions: '9' - - dubbo-version: '2-5' - dubbo-versions: '12' - - dubbo-version: '2-7' - dubbo-versions: '3' - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/dubbo - - name: (dubbo router) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableDubboRouter == 'true' - uses: ./.github/actions/scenarios/dubbo/router - - name: monitor test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableMonitor == 'true' - uses: ./.github/actions/scenarios/dubbo/monitor - - name: visibility test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableVisibility == 'true' - uses: ./.github/actions/scenarios/dubbo/visibility - - name: (dubbo common) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableDubboCommon == 'true' - uses: ./.github/actions/scenarios/dubbo/dubbo-common - - name: (dubbo lane) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableDubboLane == 'true' - uses: ./.github/actions/scenarios/dubbo/lane - - name: removal test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableRemoval == 'true' - uses: ./.github/actions/scenarios/dubbo/removal - test-for-dubbo3: - name: Test for dubbo3.x - runs-on: ubuntu-latest - needs: [ download-midwares-and-cache, build-agent-and-cache ] - strategy: - matrix: - registry-model: [ 'all','interface','instance' ] - dubbo-version: [ '3-0','3-1','3-2' ] - dubbo-versions: [ '0','3','6','9','12' ] - include: - - dubbo-version: '3-0' - dubbo-versions: '15' - registry-model: 'all' - - dubbo-version: '3-0' - dubbo-versions: '15' - registry-model: 'interface' - - dubbo-version: '3-0' - dubbo-versions: '15' - registry-model: 'instance' - - dubbo-version: '3-1' - dubbo-versions: '11' - registry-model: 'all' - - dubbo-version: '3-1' - dubbo-versions: '11' - registry-model: 'interface' - - dubbo-version: '3-1' - dubbo-versions: '11' - registry-model: 'instance' - - dubbo-version: '3-2' - dubbo-versions: '11' - registry-model: 'all' - - dubbo-version: '3-2' - dubbo-versions: '11' - registry-model: 'interface' - - dubbo-version: '3-2' - dubbo-versions: '11' - registry-model: 'instance' - exclude: - - dubbo-version: '3-0' - dubbo-versions: '0' - registry-model: 'all' - - dubbo-version: '3-0' - dubbo-versions: '0' - registry-model: 'interface' - - dubbo-version: '3-0' - dubbo-versions: '0' - registry-model: 'instance' - - dubbo-version: '3-0' - dubbo-versions: '3' - registry-model: 'all' - - dubbo-version: '3-0' - dubbo-versions: '3' - registry-model: 'interface' - - dubbo-version: '3-0' - dubbo-versions: '3' - registry-model: 'instance' - - dubbo-version: '3-1' - dubbo-versions: '12' - registry-model: 'all' - - dubbo-version: '3-1' - dubbo-versions: '12' - registry-model: 'interface' - - dubbo-version: '3-1' - dubbo-versions: '12' - registry-model: 'instance' - - dubbo-version: '3-2' - dubbo-versions: '12' - registry-model: 'all' - - dubbo-version: '3-2' - dubbo-versions: '12' - registry-model: 'interface' - - dubbo-version: '3-2' - dubbo-versions: '12' - registry-model: 'instance' - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/dubbo - - name: (dubbo3.x router) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableDubboRouter == 'true' - uses: ./.github/actions/scenarios/dubbo/router-dubbo3 - - name: (dubbo3.x lane) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} - if: env.enableDubboLane == 'true' - uses: ./.github/actions/scenarios/dubbo/lane-dubbo3 \ No newline at end of file +#name: Dubbo Integration Test +#env: +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-integration-tests/**' +# - 'sermant-plugins/sermant-dynamic-config/**' +# - 'sermant-plugins/sermant-flowcontrol/**' +# - 'sermant-plugins/sermant-loadbalancer/**' +# - 'sermant-plugins/sermant-router/**' +# - 'sermant-plugins/sermant-service-registry/**' +# - 'sermant-plugins/sermant-springboot-registry/**' +# - 'sermant-plugins/sermant-monitor/**' +# - 'sermant-plugins/sermant-service-visibility/**' +# - '.github/workflows/dubbo_integration*.yml' +# - '.github/actions/**' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download and cache middlewares +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: cache middlewares +# uses: actions/cache@v3 +# with: +# path: | +# apache-zookeeper-*/ +# Local-CSE-2.1.3-linux-amd64.zip +# key: ${{ runner.os }}-middlewares-${{ github.run_id }} +# - name: download middlewares +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# tar -zxf apache-zookeeper-3.6.3-bin.tar.gz +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh +# build-agent-and-cache: +# name: package and cache agent +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-backend-lite/d' pom.xml +# sed -i '/sermant-integration-tests/d' pom.xml +# sed -i '/sermant-injector/d' pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# test-for-dubbo: +# name: Test for dubbo +# runs-on: ubuntu-latest +# needs: [download-midwares-and-cache, build-agent-and-cache] +# strategy: +# matrix: +# dubbo-version: ['2-5','2-6','2-7'] +# dubbo-versions: ['0','3','6','9','12'] +# include: +# - dubbo-version: '2-5' +# dubbo-versions: '10' +# - dubbo-version: '2-7' +# dubbo-versions: '15' +# exclude: +# - dubbo-version: '2-5' +# dubbo-versions: '9' +# - dubbo-version: '2-5' +# dubbo-versions: '12' +# - dubbo-version: '2-7' +# dubbo-versions: '3' +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/dubbo +# - name: (dubbo router) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableDubboRouter == 'true' +# uses: ./.github/actions/scenarios/dubbo/router +# - name: monitor test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableMonitor == 'true' +# uses: ./.github/actions/scenarios/dubbo/monitor +# - name: visibility test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableVisibility == 'true' +# uses: ./.github/actions/scenarios/dubbo/visibility +# - name: (dubbo common) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableDubboCommon == 'true' +# uses: ./.github/actions/scenarios/dubbo/dubbo-common +# - name: (dubbo lane) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableDubboLane == 'true' +# uses: ./.github/actions/scenarios/dubbo/lane +# - name: removal test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableRemoval == 'true' +# uses: ./.github/actions/scenarios/dubbo/removal +# test-for-dubbo3: +# name: Test for dubbo3.x +# runs-on: ubuntu-latest +# needs: [ download-midwares-and-cache, build-agent-and-cache ] +# strategy: +# matrix: +# registry-model: [ 'all','interface','instance' ] +# dubbo-version: [ '3-0','3-1','3-2' ] +# dubbo-versions: [ '0','3','6','9','12' ] +# include: +# - dubbo-version: '3-0' +# dubbo-versions: '15' +# registry-model: 'all' +# - dubbo-version: '3-0' +# dubbo-versions: '15' +# registry-model: 'interface' +# - dubbo-version: '3-0' +# dubbo-versions: '15' +# registry-model: 'instance' +# - dubbo-version: '3-1' +# dubbo-versions: '11' +# registry-model: 'all' +# - dubbo-version: '3-1' +# dubbo-versions: '11' +# registry-model: 'interface' +# - dubbo-version: '3-1' +# dubbo-versions: '11' +# registry-model: 'instance' +# - dubbo-version: '3-2' +# dubbo-versions: '11' +# registry-model: 'all' +# - dubbo-version: '3-2' +# dubbo-versions: '11' +# registry-model: 'interface' +# - dubbo-version: '3-2' +# dubbo-versions: '11' +# registry-model: 'instance' +# exclude: +# - dubbo-version: '3-0' +# dubbo-versions: '0' +# registry-model: 'all' +# - dubbo-version: '3-0' +# dubbo-versions: '0' +# registry-model: 'interface' +# - dubbo-version: '3-0' +# dubbo-versions: '0' +# registry-model: 'instance' +# - dubbo-version: '3-0' +# dubbo-versions: '3' +# registry-model: 'all' +# - dubbo-version: '3-0' +# dubbo-versions: '3' +# registry-model: 'interface' +# - dubbo-version: '3-0' +# dubbo-versions: '3' +# registry-model: 'instance' +# - dubbo-version: '3-1' +# dubbo-versions: '12' +# registry-model: 'all' +# - dubbo-version: '3-1' +# dubbo-versions: '12' +# registry-model: 'interface' +# - dubbo-version: '3-1' +# dubbo-versions: '12' +# registry-model: 'instance' +# - dubbo-version: '3-2' +# dubbo-versions: '12' +# registry-model: 'all' +# - dubbo-version: '3-2' +# dubbo-versions: '12' +# registry-model: 'interface' +# - dubbo-version: '3-2' +# dubbo-versions: '12' +# registry-model: 'instance' +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/dubbo +# - name: (dubbo3.x router) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableDubboRouter == 'true' +# uses: ./.github/actions/scenarios/dubbo/router-dubbo3 +# - name: (dubbo3.x lane) test for ${{ matrix.dubbo-version }}-${{ matrix.dubbo-versions }} +# if: env.enableDubboLane == 'true' +# uses: ./.github/actions/scenarios/dubbo/lane-dubbo3 \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index fa7dda4792..c25e5f7c0c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,52 +1,52 @@ -name: CI - -on: - push: - pull_request: - branches: - - '*' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - - checkstyle: - name: Checkstyle - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: reviewdog/action-setup@v1 - with: - reviewdog_version: v0.18.1 - - name: download checkstyle - run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.41.1/checkstyle-8.41.1-all.jar - - name: checkstyle - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - java -jar checkstyle.jar -c checkstyle.xml -f xml . | reviewdog -f=checkstyle -name="Checkstyle Check" -reporter=github-pr-check -level=error - - build: - runs-on: windows-latest - name: build - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: Create License Binary Suffix - run: | - mvn license:aggregate-add-third-party - - name: Build with Maven - run: | - mvn clean package -P agent -P package -DskipTests - mkdir ${{ github.workspace }}/package - cp ${{ github.workspace }}/sermant-agent-*.tar ${{ github.workspace }}/package - - name: upload package - uses: actions/upload-artifact@v1 - with: - name: sermant - path: ${{ github.workspace }}/package +#name: CI +# +#on: +# push: +# pull_request: +# branches: +# - '*' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# +# checkstyle: +# name: Checkstyle +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - uses: reviewdog/action-setup@v1 +# with: +# reviewdog_version: v0.18.1 +# - name: download checkstyle +# run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.41.1/checkstyle-8.41.1-all.jar +# - name: checkstyle +# env: +# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# java -jar checkstyle.jar -c checkstyle.xml -f xml . | reviewdog -f=checkstyle -name="Checkstyle Check" -reporter=github-pr-check -level=error +# +# build: +# runs-on: windows-latest +# name: build +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: Create License Binary Suffix +# run: | +# mvn license:aggregate-add-third-party +# - name: Build with Maven +# run: | +# mvn clean package -P agent -P package -DskipTests +# mkdir ${{ github.workspace }}/package +# cp ${{ github.workspace }}/sermant-agent-*.tar ${{ github.workspace }}/package +# - name: upload package +# uses: actions/upload-artifact@v1 +# with: +# name: sermant +# path: ${{ github.workspace }}/package diff --git a/.github/workflows/mq_consume_prohibition_integration_test.yml b/.github/workflows/mq_consume_prohibition_integration_test.yml index dcf095a43a..03ac881bc2 100644 --- a/.github/workflows/mq_consume_prohibition_integration_test.yml +++ b/.github/workflows/mq_consume_prohibition_integration_test.yml @@ -1,189 +1,189 @@ -name: mq-consume-prohibition integration test -env: - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-integration-tests/mq-consume-prohibition-test/**' - - 'sermant-plugins/sermant-mq-consume-prohibition/**' - - '.github/workflows/mq_consume_prohibition_integration_test.yml' - - '.github/actions/common/mq-consume-prohibition/**' - - '.github/actions/scenarios/mq-consume-prohibition/**' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download midwares and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: cache zookeeper - uses: actions/cache@v3 - with: - path: apache-zookeeper-3.6.3-bin.tar.gz - key: ${{ runner.os }}-apache-zookeeper-3.6.3 - restore-keys: | - ${{ runner.os }}-apache-zookeeper-3.6.3 - - name: download zookeeper - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - - name: cache rocketmq - uses: actions/cache@v3 - with: - path: rocketmq-all-5.1.4-bin-release.zip - key: ${{ runner.os }}-rocketmq-all-5.1.4-bin-release - restore-keys: | - ${{ runner.os }}-rocketmq-all-5.1.4-bin-release - - name: download rocketmq - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh rocketmq514 - - name: cache kafka - uses: actions/cache@v3 - with: - path: kafka_2.13-2.7.0.tgz - key: ${{ runner.os }}-kafka_2.13-2.7.0 - restore-keys: | - ${{ runner.os }}-kafka_2.13-2.7.0 - - name: download kafka - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh kafka - build-agent-and-cache: - name: build agent and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-backend/d' pom.xml - sed -i '/sermant-integration-tests/d' pom.xml - sed -i '/sermant-injector/d' pom.xml - mvn package -DskipTests -Ptest --file pom.xml - test-for-mq-consume-prohibition-kafka: - name: Test for mq-consume-prohibition kafka - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - kafkaVersion: "2.0.1" - - kafkaVersion: "2.1.1" - - kafkaVersion: "2.2.2" - - kafkaVersion: "2.3.1" - - kafkaVersion: "2.4.0" - - kafkaVersion: "2.5.1" - - kafkaVersion: "2.6.3" - - kafkaVersion: "2.7.2" - - kafkaVersion: "2.8.2" - - kafkaVersion: "3.0.2" - - kafkaVersion: "3.1.2" - - kafkaVersion: "3.2.2" - - kafkaVersion: "3.3.2" - - kafkaVersion: "3.4.1" - - kafkaVersion: "3.5.2" - - kafkaVersion: "3.6.1" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/mq-consume-prohibition - - name: mq-consume-prohibition test for kafkaVersion=${{ matrix.kafkaVersion }} - uses: ./.github/actions/scenarios/mq-consume-prohibition/kafka - test-for-rocketmq-one-topic: - name: Test for rocketmq consumer with one topic - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - rocketMqVersion: "4.6.1" - - rocketMqVersion: "4.7.1" - - rocketMqVersion: "4.8.0" - - rocketMqVersion: "4.9.7" - - rocketMqVersion: "5.0.0" - - rocketMqVersion: "5.1.4" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/mq-consume-prohibition - - name: mq-consume-prohibition-rocketmq test for rocketMqVersion=${{ matrix.rocketMqVersion }} - uses: ./.github/actions/scenarios/mq-consume-prohibition/rocketmq/rocketmq-one-topic - test-for-rocketmq-two-topic: - name: Test for rocketmq consumer with two topic - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - rocketMqVersion: "4.6.1" - - rocketMqVersion: "4.7.1" - - rocketMqVersion: "4.8.0" - - rocketMqVersion: "4.9.7" - - rocketMqVersion: "5.0.0" - - rocketMqVersion: "5.1.4" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/mq-consume-prohibition - - name: mq-consume-prohibition test for rocketMqVersion=${{ matrix.rocketMqVersion }} - uses: ./.github/actions/scenarios/mq-consume-prohibition/rocketmq/rocketmq-two-topic - test-for-rocketmq-two-consumer: - name: Test for rocketmq consumer with two consumer - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - rocketMqVersion: "4.6.1" - - rocketMqVersion: "4.7.1" - - rocketMqVersion: "4.8.0" - - rocketMqVersion: "4.9.7" - - rocketMqVersion: "5.0.0" - - rocketMqVersion: "5.1.4" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/mq-consume-prohibition - - name: mq-consume-prohibition test for rocketMqVersion=${{ matrix.rocketMqVersion }} - uses: ./.github/actions/scenarios/mq-consume-prohibition/rocketmq/rocketmq-two-consumer \ No newline at end of file +#name: mq-consume-prohibition integration test +#env: +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-integration-tests/mq-consume-prohibition-test/**' +# - 'sermant-plugins/sermant-mq-consume-prohibition/**' +# - '.github/workflows/mq_consume_prohibition_integration_test.yml' +# - '.github/actions/common/mq-consume-prohibition/**' +# - '.github/actions/scenarios/mq-consume-prohibition/**' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download midwares and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: cache zookeeper +# uses: actions/cache@v3 +# with: +# path: apache-zookeeper-3.6.3-bin.tar.gz +# key: ${{ runner.os }}-apache-zookeeper-3.6.3 +# restore-keys: | +# ${{ runner.os }}-apache-zookeeper-3.6.3 +# - name: download zookeeper +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# - name: cache rocketmq +# uses: actions/cache@v3 +# with: +# path: rocketmq-all-5.1.4-bin-release.zip +# key: ${{ runner.os }}-rocketmq-all-5.1.4-bin-release +# restore-keys: | +# ${{ runner.os }}-rocketmq-all-5.1.4-bin-release +# - name: download rocketmq +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh rocketmq514 +# - name: cache kafka +# uses: actions/cache@v3 +# with: +# path: kafka_2.13-2.7.0.tgz +# key: ${{ runner.os }}-kafka_2.13-2.7.0 +# restore-keys: | +# ${{ runner.os }}-kafka_2.13-2.7.0 +# - name: download kafka +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh kafka +# build-agent-and-cache: +# name: build agent and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-backend/d' pom.xml +# sed -i '/sermant-integration-tests/d' pom.xml +# sed -i '/sermant-injector/d' pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# test-for-mq-consume-prohibition-kafka: +# name: Test for mq-consume-prohibition kafka +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - kafkaVersion: "2.0.1" +# - kafkaVersion: "2.1.1" +# - kafkaVersion: "2.2.2" +# - kafkaVersion: "2.3.1" +# - kafkaVersion: "2.4.0" +# - kafkaVersion: "2.5.1" +# - kafkaVersion: "2.6.3" +# - kafkaVersion: "2.7.2" +# - kafkaVersion: "2.8.2" +# - kafkaVersion: "3.0.2" +# - kafkaVersion: "3.1.2" +# - kafkaVersion: "3.2.2" +# - kafkaVersion: "3.3.2" +# - kafkaVersion: "3.4.1" +# - kafkaVersion: "3.5.2" +# - kafkaVersion: "3.6.1" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/mq-consume-prohibition +# - name: mq-consume-prohibition test for kafkaVersion=${{ matrix.kafkaVersion }} +# uses: ./.github/actions/scenarios/mq-consume-prohibition/kafka +# test-for-rocketmq-one-topic: +# name: Test for rocketmq consumer with one topic +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - rocketMqVersion: "4.6.1" +# - rocketMqVersion: "4.7.1" +# - rocketMqVersion: "4.8.0" +# - rocketMqVersion: "4.9.7" +# - rocketMqVersion: "5.0.0" +# - rocketMqVersion: "5.1.4" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/mq-consume-prohibition +# - name: mq-consume-prohibition-rocketmq test for rocketMqVersion=${{ matrix.rocketMqVersion }} +# uses: ./.github/actions/scenarios/mq-consume-prohibition/rocketmq/rocketmq-one-topic +# test-for-rocketmq-two-topic: +# name: Test for rocketmq consumer with two topic +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - rocketMqVersion: "4.6.1" +# - rocketMqVersion: "4.7.1" +# - rocketMqVersion: "4.8.0" +# - rocketMqVersion: "4.9.7" +# - rocketMqVersion: "5.0.0" +# - rocketMqVersion: "5.1.4" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/mq-consume-prohibition +# - name: mq-consume-prohibition test for rocketMqVersion=${{ matrix.rocketMqVersion }} +# uses: ./.github/actions/scenarios/mq-consume-prohibition/rocketmq/rocketmq-two-topic +# test-for-rocketmq-two-consumer: +# name: Test for rocketmq consumer with two consumer +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - rocketMqVersion: "4.6.1" +# - rocketMqVersion: "4.7.1" +# - rocketMqVersion: "4.8.0" +# - rocketMqVersion: "4.9.7" +# - rocketMqVersion: "5.0.0" +# - rocketMqVersion: "5.1.4" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/mq-consume-prohibition +# - name: mq-consume-prohibition test for rocketMqVersion=${{ matrix.rocketMqVersion }} +# uses: ./.github/actions/scenarios/mq-consume-prohibition/rocketmq/rocketmq-two-consumer \ No newline at end of file diff --git a/.github/workflows/publish_maven_central_warehouse.yml b/.github/workflows/publish_maven_central_warehouse.yml index 415c214a49..12df5112bf 100644 --- a/.github/workflows/publish_maven_central_warehouse.yml +++ b/.github/workflows/publish_maven_central_warehouse.yml @@ -1,53 +1,53 @@ -on: - workflow_dispatch: - inputs: - version: - description: 'Version number to be released this time' - required: true - -name: publish - -env: - version: ${{ inputs.version }} - -jobs: - publish: - name: publish Maven central warehouse - runs-on: ubuntu-latest - steps: - - name: Checkout Source - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - server-id: sermant - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - - name: set version - run: | - mvn versions:set -DnewVersion='${{ env.version }}' - - name: Install secret key - run: | - cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import - gpg --list-secret-keys --keyid-format LONG - - name: publish agentCore - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - run: | - cd ${{ github.workspace }}/sermant-agentcore - mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_SECRET_KEY_PASSWORD }} clean deploy -P release -DskipTests - - name: install - run: | - cd ${{ github.workspace }} - mvn clean install -DskipTests - - name: publish plugin - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - run: | - cd ${{ github.workspace }} - mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_SECRET_KEY_PASSWORD }} clean deploy -P release -DskipTests \ No newline at end of file +#on: +# workflow_dispatch: +# inputs: +# version: +# description: 'Version number to be released this time' +# required: true +# +#name: publish +# +#env: +# version: ${{ inputs.version }} +# +#jobs: +# publish: +# name: publish Maven central warehouse +# runs-on: ubuntu-latest +# steps: +# - name: Checkout Source +# uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# server-id: sermant +# server-username: MAVEN_USERNAME +# server-password: MAVEN_PASSWORD +# - name: set version +# run: | +# mvn versions:set -DnewVersion='${{ env.version }}' +# - name: Install secret key +# run: | +# cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import +# gpg --list-secret-keys --keyid-format LONG +# - name: publish agentCore +# env: +# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} +# MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} +# run: | +# cd ${{ github.workspace }}/sermant-agentcore +# mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_SECRET_KEY_PASSWORD }} clean deploy -P release -DskipTests +# - name: install +# run: | +# cd ${{ github.workspace }} +# mvn clean install -DskipTests +# - name: publish plugin +# env: +# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} +# MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} +# run: | +# cd ${{ github.workspace }} +# mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_SECRET_KEY_PASSWORD }} clean deploy -P release -DskipTests \ No newline at end of file diff --git a/.github/workflows/spring_integration_test_1.yml b/.github/workflows/spring_integration_test_1.yml index c4ff489770..c29f86c8ba 100644 --- a/.github/workflows/spring_integration_test_1.yml +++ b/.github/workflows/spring_integration_test_1.yml @@ -1,161 +1,161 @@ -name: Spring Integration Test1 -env: - projectSpringBootVersion: 2.2.0.RELEASE - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-integration-tests/**' - - 'sermant-plugins/sermant-dynamic-config/**' - - 'sermant-plugins/sermant-flowcontrol/**' - - 'sermant-plugins/sermant-monitor/**' - - 'sermant-plugins/sermant-loadbalancer/**' - - 'sermant-plugins/sermant-router/**' - - 'sermant-plugins/sermant-service-registry/**' - - 'sermant-plugins/sermant-springboot-registry/**' - - 'sermant-plugins/sermant-service-visibility/**' - - '.github/workflows/spring_integration*.yml' - - '.github/actions/**' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download midwares and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: cache local cse - uses: actions/cache@v3 - with: - path: Local-CSE-2.1.3-linux-amd64.zip - key: ${{ runner.os }}-local-cse - restore-keys: | - ${{ runner.os }}-local-cse - - name: download cse - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse - - name: cache zookeeper - uses: actions/cache@v3 - with: - path: apache-zookeeper-3.6.3-bin.tar.gz - key: ${{ runner.os }}-apache-zookeeper-3.6.3 - restore-keys: | - ${{ runner.os }}-apache-zookeeper-3.6.3 - - name: download zookeeper - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - - name: cache nacos server - uses: actions/cache@v3 - with: - path: nacos-server-1.4.2.tar.gz - key: ${{ runner.os }}-nacos-server-1.4.2 - restore-keys: | - ${{ runner.os }}-nacos-server-1.4.2 - - name: download nacos - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos - build-agent-and-cache: - name: build agent and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-backend-lite/d' pom.xml - sed -i '/sermant-integration-tests/d' pom.xml - sed -i '/sermant-injector/d' pom.xml - mvn package -DskipTests -Ptest --file pom.xml - test-for-spring: - name: Test for spring - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - springBootVersion: "1.5.0.RELEASE" - springCloudVersion: "Edgware.SR2" - nacosVersion: "1.5.0.RELEASE" - - springBootVersion: "2.0.2.RELEASE" - springCloudVersion: "Finchley.RELEASE" - httpClientVersion: "4.1.3" - nacosVersion: "2.0.0.RELEASE" - jettyClientVersion: "1.0.1" - - springBootVersion: "2.1.0.RELEASE" - springCloudVersion: "Greenwich.RELEASE" - httpClientVersion: "4.2.6" - nacosVersion: "2.1.0.RELEASE" - jettyClientVersion: "1.0.1" - - springBootVersion: "2.2.0.RELEASE" - springCloudVersion: "Hoxton.RELEASE" - httpClientVersion: "4.3.6" - nacosVersion: "2.2.0.RELEASE" - jettyClientVersion: "1.0.3" - - springBootVersion: "2.3.0.RELEASE" - springCloudVersion: "Hoxton.RELEASE" - httpClientVersion: "4.4.1" - nacosVersion: "2.2.8.RELEASE" - jettyClientVersion: "1.1.2" - - springBootVersion: "2.4.0" - springCloudVersion: "2020.0.0" - httpClientVersion: "4.5.6" - nacosVersion: "2021.0.1.0" - jettyClientVersion: "1.1.4" - - springBootVersion: "2.6.2" - springCloudVersion: "2021.0.0" - httpClientVersion: "4.5.10" - nacosVersion: "2021.1" - jettyClientVersion: "1.1.10" - - springBootVersion: "2.7.2" - springCloudVersion: "2021.0.3" - httpClientVersion: "4.5.13" - jettyClientVersion: "1.1.12" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/spring - - name: (graceful) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableGraceful == 'true' - uses: ./.github/actions/scenarios/spring/graceful - - name: (spring common) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableSpringCommon == 'true' - uses: ./.github/actions/scenarios/spring/spring-common - - name: (nacos dynamic config) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: ${{ matrix.nacosVersion != '' && env.enableDynamicConfig == 'true' }} - uses: ./.github/actions/scenarios/spring/dynamic-config-nacos - - name: (zk dynamic config) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableDynamicConfig == 'true' - uses: ./.github/actions/scenarios/spring/dynamic-config-zk - - name: monitor test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableMonitor == 'true' - uses: ./.github/actions/scenarios/spring/monitor - - name: visibility test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableVisibility == 'true' - uses: ./.github/actions/scenarios/spring/visibility - - name: removal test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableRemoval == 'true' - uses: ./.github/actions/scenarios/spring/removal +#name: Spring Integration Test1 +#env: +# projectSpringBootVersion: 2.2.0.RELEASE +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-integration-tests/**' +# - 'sermant-plugins/sermant-dynamic-config/**' +# - 'sermant-plugins/sermant-flowcontrol/**' +# - 'sermant-plugins/sermant-monitor/**' +# - 'sermant-plugins/sermant-loadbalancer/**' +# - 'sermant-plugins/sermant-router/**' +# - 'sermant-plugins/sermant-service-registry/**' +# - 'sermant-plugins/sermant-springboot-registry/**' +# - 'sermant-plugins/sermant-service-visibility/**' +# - '.github/workflows/spring_integration*.yml' +# - '.github/actions/**' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download midwares and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: cache local cse +# uses: actions/cache@v3 +# with: +# path: Local-CSE-2.1.3-linux-amd64.zip +# key: ${{ runner.os }}-local-cse +# restore-keys: | +# ${{ runner.os }}-local-cse +# - name: download cse +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse +# - name: cache zookeeper +# uses: actions/cache@v3 +# with: +# path: apache-zookeeper-3.6.3-bin.tar.gz +# key: ${{ runner.os }}-apache-zookeeper-3.6.3 +# restore-keys: | +# ${{ runner.os }}-apache-zookeeper-3.6.3 +# - name: download zookeeper +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# - name: cache nacos server +# uses: actions/cache@v3 +# with: +# path: nacos-server-1.4.2.tar.gz +# key: ${{ runner.os }}-nacos-server-1.4.2 +# restore-keys: | +# ${{ runner.os }}-nacos-server-1.4.2 +# - name: download nacos +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos +# build-agent-and-cache: +# name: build agent and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-backend-lite/d' pom.xml +# sed -i '/sermant-integration-tests/d' pom.xml +# sed -i '/sermant-injector/d' pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# test-for-spring: +# name: Test for spring +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - springBootVersion: "1.5.0.RELEASE" +# springCloudVersion: "Edgware.SR2" +# nacosVersion: "1.5.0.RELEASE" +# - springBootVersion: "2.0.2.RELEASE" +# springCloudVersion: "Finchley.RELEASE" +# httpClientVersion: "4.1.3" +# nacosVersion: "2.0.0.RELEASE" +# jettyClientVersion: "1.0.1" +# - springBootVersion: "2.1.0.RELEASE" +# springCloudVersion: "Greenwich.RELEASE" +# httpClientVersion: "4.2.6" +# nacosVersion: "2.1.0.RELEASE" +# jettyClientVersion: "1.0.1" +# - springBootVersion: "2.2.0.RELEASE" +# springCloudVersion: "Hoxton.RELEASE" +# httpClientVersion: "4.3.6" +# nacosVersion: "2.2.0.RELEASE" +# jettyClientVersion: "1.0.3" +# - springBootVersion: "2.3.0.RELEASE" +# springCloudVersion: "Hoxton.RELEASE" +# httpClientVersion: "4.4.1" +# nacosVersion: "2.2.8.RELEASE" +# jettyClientVersion: "1.1.2" +# - springBootVersion: "2.4.0" +# springCloudVersion: "2020.0.0" +# httpClientVersion: "4.5.6" +# nacosVersion: "2021.0.1.0" +# jettyClientVersion: "1.1.4" +# - springBootVersion: "2.6.2" +# springCloudVersion: "2021.0.0" +# httpClientVersion: "4.5.10" +# nacosVersion: "2021.1" +# jettyClientVersion: "1.1.10" +# - springBootVersion: "2.7.2" +# springCloudVersion: "2021.0.3" +# httpClientVersion: "4.5.13" +# jettyClientVersion: "1.1.12" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/spring +# - name: (graceful) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableGraceful == 'true' +# uses: ./.github/actions/scenarios/spring/graceful +# - name: (spring common) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableSpringCommon == 'true' +# uses: ./.github/actions/scenarios/spring/spring-common +# - name: (nacos dynamic config) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: ${{ matrix.nacosVersion != '' && env.enableDynamicConfig == 'true' }} +# uses: ./.github/actions/scenarios/spring/dynamic-config-nacos +# - name: (zk dynamic config) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableDynamicConfig == 'true' +# uses: ./.github/actions/scenarios/spring/dynamic-config-zk +# - name: monitor test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableMonitor == 'true' +# uses: ./.github/actions/scenarios/spring/monitor +# - name: visibility test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableVisibility == 'true' +# uses: ./.github/actions/scenarios/spring/visibility +# - name: removal test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableRemoval == 'true' +# uses: ./.github/actions/scenarios/spring/removal diff --git a/.github/workflows/spring_integration_test_2.yml b/.github/workflows/spring_integration_test_2.yml index eb5250adb5..65da47ade5 100644 --- a/.github/workflows/spring_integration_test_2.yml +++ b/.github/workflows/spring_integration_test_2.yml @@ -1,141 +1,141 @@ -name: Spring Integration Test2 -env: - projectSpringBootVersion: 2.2.0.RELEASE - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-integration-tests/**' - - 'sermant-plugins/sermant-router/**' - - 'sermant-plugins/sermant-service-registry/**' - - 'sermant-plugins/sermant-springboot-registry/**' - - '.github/workflows/spring_integration*.yml' - - '.github/actions/**' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download midwares and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: cache local cse - uses: actions/cache@v3 - with: - path: Local-CSE-2.1.3-linux-amd64.zip - key: ${{ runner.os }}-local-cse - restore-keys: | - ${{ runner.os }}-local-cse - - name: download cse - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse - - name: cache zookeeper - uses: actions/cache@v3 - with: - path: apache-zookeeper-3.6.3-bin.tar.gz - key: ${{ runner.os }}-apache-zookeeper-3.6.3 - restore-keys: | - ${{ runner.os }}-apache-zookeeper-3.6.3 - - name: download zookeeper - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - - name: cache nacos server - uses: actions/cache@v3 - with: - path: nacos-server-1.4.2.tar.gz - key: ${{ runner.os }}-nacos-server-1.4.2 - restore-keys: | - ${{ runner.os }}-nacos-server-1.4.2 - - name: download nacos - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos - build-agent-and-cache: - name: build agent and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-backend/d' pom.xml - sed -i '/sermant-backend-lite/d' pom.xml - sed -i '/sermant-integration-tests/d' pom.xml - sed -i '/sermant-injector/d' pom.xml - mvn package -DskipTests -Ptest --file pom.xml - test-for-spring: - name: Test for spring - runs-on: ubuntu-latest - needs: [ build-agent-and-cache, download-midwares-and-cache ] - strategy: - matrix: - include: - - springBootVersion: "1.5.0.RELEASE" - springCloudVersion: "Edgware.SR2" - nacosVersion: "1.5.0.RELEASE" - - springBootVersion: "2.0.2.RELEASE" - springCloudVersion: "Finchley.RELEASE" - httpClientVersion: "4.1.3" - nacosVersion: "2.0.0.RELEASE" - - springBootVersion: "2.1.0.RELEASE" - springCloudVersion: "Greenwich.RELEASE" - httpClientVersion: "4.2.6" - nacosVersion: "2.1.0.RELEASE" - - springBootVersion: "2.2.0.RELEASE" - springCloudVersion: "Hoxton.RELEASE" - httpClientVersion: "4.3.6" - nacosVersion: "2.2.0.RELEASE" - - springBootVersion: "2.3.0.RELEASE" - springCloudVersion: "Hoxton.RELEASE" - httpClientVersion: "4.4.1" - nacosVersion: "2.2.8.RELEASE" - - springBootVersion: "2.4.0" - springCloudVersion: "2020.0.0" - httpClientVersion: "4.5.6" - nacosVersion: "2021.0.1.0" - - springBootVersion: "2.6.2" - springCloudVersion: "2021.0.0" - httpClientVersion: "4.5.10" - nacosVersion: "2021.1" - - springBootVersion: "2.7.2" - springCloudVersion: "2021.0.3" - httpClientVersion: "4.5.13" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/spring - - name: (spring router) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableSpringRouter == 'true' - uses: ./.github/actions/scenarios/spring/router/spring-router - - name: (spring tag router) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableSpringTagRouter == 'true' - uses: ./.github/actions/scenarios/spring/router/spring-tag-router - - name: (spring tag az router) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableSpringTagRouter == 'true' - uses: ./.github/actions/scenarios/spring/router/spring-tag-az-router - - name: (spring lane) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} - if: env.enableSpringLane == 'true' - uses: ./.github/actions/scenarios/spring/lane +#name: Spring Integration Test2 +#env: +# projectSpringBootVersion: 2.2.0.RELEASE +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-integration-tests/**' +# - 'sermant-plugins/sermant-router/**' +# - 'sermant-plugins/sermant-service-registry/**' +# - 'sermant-plugins/sermant-springboot-registry/**' +# - '.github/workflows/spring_integration*.yml' +# - '.github/actions/**' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download midwares and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: cache local cse +# uses: actions/cache@v3 +# with: +# path: Local-CSE-2.1.3-linux-amd64.zip +# key: ${{ runner.os }}-local-cse +# restore-keys: | +# ${{ runner.os }}-local-cse +# - name: download cse +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse +# - name: cache zookeeper +# uses: actions/cache@v3 +# with: +# path: apache-zookeeper-3.6.3-bin.tar.gz +# key: ${{ runner.os }}-apache-zookeeper-3.6.3 +# restore-keys: | +# ${{ runner.os }}-apache-zookeeper-3.6.3 +# - name: download zookeeper +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# - name: cache nacos server +# uses: actions/cache@v3 +# with: +# path: nacos-server-1.4.2.tar.gz +# key: ${{ runner.os }}-nacos-server-1.4.2 +# restore-keys: | +# ${{ runner.os }}-nacos-server-1.4.2 +# - name: download nacos +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos +# build-agent-and-cache: +# name: build agent and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-backend/d' pom.xml +# sed -i '/sermant-backend-lite/d' pom.xml +# sed -i '/sermant-integration-tests/d' pom.xml +# sed -i '/sermant-injector/d' pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# test-for-spring: +# name: Test for spring +# runs-on: ubuntu-latest +# needs: [ build-agent-and-cache, download-midwares-and-cache ] +# strategy: +# matrix: +# include: +# - springBootVersion: "1.5.0.RELEASE" +# springCloudVersion: "Edgware.SR2" +# nacosVersion: "1.5.0.RELEASE" +# - springBootVersion: "2.0.2.RELEASE" +# springCloudVersion: "Finchley.RELEASE" +# httpClientVersion: "4.1.3" +# nacosVersion: "2.0.0.RELEASE" +# - springBootVersion: "2.1.0.RELEASE" +# springCloudVersion: "Greenwich.RELEASE" +# httpClientVersion: "4.2.6" +# nacosVersion: "2.1.0.RELEASE" +# - springBootVersion: "2.2.0.RELEASE" +# springCloudVersion: "Hoxton.RELEASE" +# httpClientVersion: "4.3.6" +# nacosVersion: "2.2.0.RELEASE" +# - springBootVersion: "2.3.0.RELEASE" +# springCloudVersion: "Hoxton.RELEASE" +# httpClientVersion: "4.4.1" +# nacosVersion: "2.2.8.RELEASE" +# - springBootVersion: "2.4.0" +# springCloudVersion: "2020.0.0" +# httpClientVersion: "4.5.6" +# nacosVersion: "2021.0.1.0" +# - springBootVersion: "2.6.2" +# springCloudVersion: "2021.0.0" +# httpClientVersion: "4.5.10" +# nacosVersion: "2021.1" +# - springBootVersion: "2.7.2" +# springCloudVersion: "2021.0.3" +# httpClientVersion: "4.5.13" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/spring +# - name: (spring router) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableSpringRouter == 'true' +# uses: ./.github/actions/scenarios/spring/router/spring-router +# - name: (spring tag router) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableSpringTagRouter == 'true' +# uses: ./.github/actions/scenarios/spring/router/spring-tag-router +# - name: (spring tag az router) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableSpringTagRouter == 'true' +# uses: ./.github/actions/scenarios/spring/router/spring-tag-az-router +# - name: (spring lane) test for springboot=${{ matrix.springBootVersion }} springCloudVersion=${{ matrix.springCloudVersion }} +# if: env.enableSpringLane == 'true' +# uses: ./.github/actions/scenarios/spring/lane diff --git a/.github/workflows/tagtransmission_integration_test.yml b/.github/workflows/tagtransmission_integration_test.yml index ca387a370f..700e89e95b 100644 --- a/.github/workflows/tagtransmission_integration_test.yml +++ b/.github/workflows/tagtransmission_integration_test.yml @@ -1,433 +1,433 @@ -name: Tagtransmission integration test -env: - sermantVersion: 1.0.0 -on: - push: - pull_request: - branches: - - '*' - paths: - - 'sermant-agentcore/**' - - 'sermant-integration-tests/tag-transmission-test/**' - - 'sermant-plugins/sermant-tag-transmission/**' - - '.github/workflows/tagtransmission_integration_test.yml' - - '.github/actions/common/tag-transmission/**' - - '.github/actions/scenarios/tag-transmission/**' -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} - cancel-in-progress: true -jobs: - download-midwares-and-cache: - name: download midwares and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: cache local cse - uses: actions/cache@v3 - with: - path: Local-CSE-2.1.3-linux-amd64.zip - key: ${{ runner.os }}-local-cse - restore-keys: | - ${{ runner.os }}-local-cse - - name: download cse - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse - - name: cache zookeeper - uses: actions/cache@v3 - with: - path: apache-zookeeper-3.6.3-bin.tar.gz - key: ${{ runner.os }}-apache-zookeeper-3.6.3 - restore-keys: | - ${{ runner.os }}-apache-zookeeper-3.6.3 - - name: download zookeeper - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk - - name: cache nacos server - uses: actions/cache@v3 - with: - path: nacos-server-1.4.2.tar.gz - key: ${{ runner.os }}-nacos-server-1.4.2 - restore-keys: | - ${{ runner.os }}-nacos-server-1.4.2 - - name: download nacos - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos - - name: cache rocketmq - uses: actions/cache@v3 - with: - path: rocketmq-all-4.8.0-bin-release.zip - key: ${{ runner.os }}-rocketmq-all-4.8.0-bin-release - restore-keys: | - ${{ runner.os }}-rocketmq-all-4.8.0-bin-release - - name: download rocketmq - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh rocketmq - - name: cache kafka - uses: actions/cache@v3 - with: - path: kafka_2.13-2.7.0.tgz - key: ${{ runner.os }}-kafka_2.13-2.7.0 - restore-keys: | - ${{ runner.os }}-kafka_2.13-2.7.0 - - name: download kafka - run: | - export ROOT_PATH=$(pwd) - bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh kafka - build-agent-and-cache: - name: build agent and cache - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'adopt' - cache: maven - - name: cache agent - uses: actions/cache@v3 - with: - path: sermant-agent-*/ - key: ${{ runner.os }}-agent-${{ github.run_id }} - - name: package agent - run: | - sed -i '/sermant-backend/d' pom.xml - sed -i '/sermant-integration-tests/d' pom.xml - sed -i '/sermant-injector/d' pom.xml - sed -i '/sermant-flowcontrol/d' sermant-plugins/pom.xml - mvn package -DskipTests -Ptest --file pom.xml - test-for-tag-transmission-httpclientv3: - name: Test for tag transmission httpclientv3 - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - httpClientVersion: "3.0.1" - - httpClientVersion: "3.1" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for httpClientVersion=${{ matrix.httpClientVersion }} - uses: ./.github/actions/scenarios/tag-transmission/httpclientv3 - test-for-tag-transmission-httpclientv4: - name: Test for tag transmission httpclientv4 - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - httpClientVersion: "4.3.6" - - httpClientVersion: "4.4.1" - - httpClientVersion: "4.5.14" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for httpClientVersion=${{ matrix.httpClientVersion }} - uses: ./.github/actions/scenarios/tag-transmission/httpclientv4 - test-for-tag-transmission-okhttp: - name: Test for tag transmission okhttp - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - okHttpVersion: "2.0.0" - - okHttpVersion: "2.1.0" - - okHttpVersion: "2.2.0" - - okHttpVersion: "2.3.0" - - okHttpVersion: "2.4.0" - - okHttpVersion: "2.5.0" - - okHttpVersion: "2.6.0" - - okHttpVersion: "2.7.5" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for okHttpVersion=${{ matrix.okHttpVersion }} - uses: ./.github/actions/scenarios/tag-transmission/okhttp - test-for-tag-transmission-grpc: - name: Test for tag transmission grpc - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - grpcVersion: "1.13.1" - - grpcVersion: "1.21.0" - - grpcVersion: "1.26.0" - - grpcVersion: "1.31.0" - - grpcVersion: "1.37.0" - - grpcVersion: "1.42.2" - - grpcVersion: "1.49.0" - - grpcVersion: "1.52.1" - - grpcVersion: "1.58.0" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for grpcVersion=${{ matrix.grpcVersion }} - uses: ./.github/actions/scenarios/tag-transmission/grpc - test-for-tag-transmission-sofarpc: - name: Test for tag transmission sofarpc - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - sofaRpcVersion: "5.3.4" - - sofaRpcVersion: "5.4.8" - - sofaRpcVersion: "5.5.9" - - sofaRpcVersion: "5.6.5" - - sofaRpcVersion: "5.7.10" - - sofaRpcVersion: "5.8.8" - - sofaRpcVersion: "5.9.2" - - sofaRpcVersion: "5.10.0" - - sofaRpcVersion: "5.11.1" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for sofaRpcVersion=${{ matrix.sofaRpcVersion }} - uses: ./.github/actions/scenarios/tag-transmission/sofarpc - test-for-tag-transmission-servicecomb: - name: Test for tag transmission servicecomb - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - serviceCombVersion: "2.1.6" - - serviceCombVersion: "2.2.4" - - serviceCombVersion: "2.3.6" - - serviceCombVersion: "2.5.3" - - serviceCombVersion: "2.6.3" - - serviceCombVersion: "2.7.10" - - serviceCombVersion: "2.8.12" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for servicecombVersion=${{ matrix.serviceCombVersion }} - uses: ./.github/actions/scenarios/tag-transmission/servicecomb - test-for-tag-transmission-alibabadubbo: - name: Test for tag transmission alibabadubbo - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - alibabaDubboVersion: "2.6.0" - - alibabaDubboVersion: "2.6.3" - - alibabaDubboVersion: "2.6.6" - - alibabaDubboVersion: "2.6.9" - - alibabaDubboVersion: "2.6.12" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for alibabaDubboVersion=${{ matrix.alibabaDubboVersion }} - uses: ./.github/actions/scenarios/tag-transmission/alibaba-dubbo - test-for-tag-transmission-apachedubbo: - name: Test for tag transmission apachedubbo - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - apacheDubboVersion: "2.7.5" - - apacheDubboVersion: "2.7.15" - - apacheDubboVersion: "2.7.23" - - apacheDubboVersion: "3.0.15" - - apacheDubboVersion: "3.1.11" - - apacheDubboVersion: "3.2.7" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for apacheDubboVersion=${{ matrix.apacheDubboVersion}} - uses: ./.github/actions/scenarios/tag-transmission/apache-dubbo - test-for-tag-transmission-crossthread: - name: Test for tag transmission crossthread - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for crossthread - uses: ./.github/actions/scenarios/tag-transmission/crossthread - test-for-tag-transmission-config: - name: Test for tag transmission config - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for config - uses: ./.github/actions/scenarios/tag-transmission/config - test-for-tag-transmission-kafka: - name: Test for tag transmission kafka - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - kafkaVersion: "2.3.1" - - kafkaVersion: "1.1.1" - - kafkaVersion: "2.7.2" - - kafkaVersion: "3.4.0" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for kafkaVersion=${{ matrix.kafkaVersion }} - uses: ./.github/actions/scenarios/tag-transmission/kafka - test-for-tag-transmission-rocketmq: - name: Test for tag transmission rocketmq - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - rocketMqVersion: "4.8.0" - - rocketMqVersion: "4.9.7" - - rocketMqVersion: "5.0.0" - - rocketMqVersion: "5.1.4" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for rocketMqVersion=${{ matrix.rocketMqVersion }} - uses: ./.github/actions/scenarios/tag-transmission/rocketmq - test-for-tag-transmission-jdkhttp-jetty: - name: Test for tag transmission jdkhttp and jetty - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - springBootVersion: "1.0.2.RELEASE" - - springBootVersion: "1.1.12.RELEASE" - - springBootVersion: "1.3.8.RELEASE" - - springBootVersion: "1.4.7.RELEASE" - - springBootVersion: "1.5.22.RELEASE" - - springBootVersion: "2.2.0.RELEASE" - - springBootVersion: "2.4.13" - - springBootVersion: "2.7.16" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for springBootVersion=${{ matrix.springBootVersion }} - uses: ./.github/actions/scenarios/tag-transmission/jdkhttp-jetty - test-for-tag-transmission-jdkhttp-tomcat: - name: Test for tag transmission jdkhttp and tomcat - runs-on: ubuntu-latest - needs: [build-agent-and-cache, download-midwares-and-cache] - strategy: - matrix: - include: - - springBootVersion: "1.0.2.RELEASE" - - springBootVersion: "1.1.12.RELEASE" - - springBootVersion: "1.3.8.RELEASE" - - springBootVersion: "1.4.7.RELEASE" - - springBootVersion: "1.5.22.RELEASE" - - springBootVersion: "2.2.0.RELEASE" - - springBootVersion: "2.4.13" - - springBootVersion: "2.7.16" - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 100 - - name: set java version to environment - run: | - echo "javaVersion=8" >> $GITHUB_ENV - - name: common operations - uses: ./.github/actions/common/tag-transmission - - name: tag transmission test for springBootVersion=${{ matrix.springBootVersion }} - uses: ./.github/actions/scenarios/tag-transmission/jdkhttp-tomcat \ No newline at end of file +#name: Tagtransmission integration test +#env: +# sermantVersion: 1.0.0 +#on: +# push: +# pull_request: +# branches: +# - '*' +# paths: +# - 'sermant-agentcore/**' +# - 'sermant-integration-tests/tag-transmission-test/**' +# - 'sermant-plugins/sermant-tag-transmission/**' +# - '.github/workflows/tagtransmission_integration_test.yml' +# - '.github/actions/common/tag-transmission/**' +# - '.github/actions/scenarios/tag-transmission/**' +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} +# cancel-in-progress: true +#jobs: +# download-midwares-and-cache: +# name: download midwares and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: cache local cse +# uses: actions/cache@v3 +# with: +# path: Local-CSE-2.1.3-linux-amd64.zip +# key: ${{ runner.os }}-local-cse +# restore-keys: | +# ${{ runner.os }}-local-cse +# - name: download cse +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh cse +# - name: cache zookeeper +# uses: actions/cache@v3 +# with: +# path: apache-zookeeper-3.6.3-bin.tar.gz +# key: ${{ runner.os }}-apache-zookeeper-3.6.3 +# restore-keys: | +# ${{ runner.os }}-apache-zookeeper-3.6.3 +# - name: download zookeeper +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh zk +# - name: cache nacos server +# uses: actions/cache@v3 +# with: +# path: nacos-server-1.4.2.tar.gz +# key: ${{ runner.os }}-nacos-server-1.4.2 +# restore-keys: | +# ${{ runner.os }}-nacos-server-1.4.2 +# - name: download nacos +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh nacos +# - name: cache rocketmq +# uses: actions/cache@v3 +# with: +# path: rocketmq-all-4.8.0-bin-release.zip +# key: ${{ runner.os }}-rocketmq-all-4.8.0-bin-release +# restore-keys: | +# ${{ runner.os }}-rocketmq-all-4.8.0-bin-release +# - name: download rocketmq +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh rocketmq +# - name: cache kafka +# uses: actions/cache@v3 +# with: +# path: kafka_2.13-2.7.0.tgz +# key: ${{ runner.os }}-kafka_2.13-2.7.0 +# restore-keys: | +# ${{ runner.os }}-kafka_2.13-2.7.0 +# - name: download kafka +# run: | +# export ROOT_PATH=$(pwd) +# bash ./sermant-integration-tests/scripts/tryDownloadMidware.sh kafka +# build-agent-and-cache: +# name: build agent and cache +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Set up JDK 8 +# uses: actions/setup-java@v3 +# with: +# java-version: '8' +# distribution: 'adopt' +# cache: maven +# - name: cache agent +# uses: actions/cache@v3 +# with: +# path: sermant-agent-*/ +# key: ${{ runner.os }}-agent-${{ github.run_id }} +# - name: package agent +# run: | +# sed -i '/sermant-backend/d' pom.xml +# sed -i '/sermant-integration-tests/d' pom.xml +# sed -i '/sermant-injector/d' pom.xml +# sed -i '/sermant-flowcontrol/d' sermant-plugins/pom.xml +# mvn package -DskipTests -Ptest --file pom.xml +# test-for-tag-transmission-httpclientv3: +# name: Test for tag transmission httpclientv3 +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - httpClientVersion: "3.0.1" +# - httpClientVersion: "3.1" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for httpClientVersion=${{ matrix.httpClientVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/httpclientv3 +# test-for-tag-transmission-httpclientv4: +# name: Test for tag transmission httpclientv4 +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - httpClientVersion: "4.3.6" +# - httpClientVersion: "4.4.1" +# - httpClientVersion: "4.5.14" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for httpClientVersion=${{ matrix.httpClientVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/httpclientv4 +# test-for-tag-transmission-okhttp: +# name: Test for tag transmission okhttp +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - okHttpVersion: "2.0.0" +# - okHttpVersion: "2.1.0" +# - okHttpVersion: "2.2.0" +# - okHttpVersion: "2.3.0" +# - okHttpVersion: "2.4.0" +# - okHttpVersion: "2.5.0" +# - okHttpVersion: "2.6.0" +# - okHttpVersion: "2.7.5" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for okHttpVersion=${{ matrix.okHttpVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/okhttp +# test-for-tag-transmission-grpc: +# name: Test for tag transmission grpc +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - grpcVersion: "1.13.1" +# - grpcVersion: "1.21.0" +# - grpcVersion: "1.26.0" +# - grpcVersion: "1.31.0" +# - grpcVersion: "1.37.0" +# - grpcVersion: "1.42.2" +# - grpcVersion: "1.49.0" +# - grpcVersion: "1.52.1" +# - grpcVersion: "1.58.0" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for grpcVersion=${{ matrix.grpcVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/grpc +# test-for-tag-transmission-sofarpc: +# name: Test for tag transmission sofarpc +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - sofaRpcVersion: "5.3.4" +# - sofaRpcVersion: "5.4.8" +# - sofaRpcVersion: "5.5.9" +# - sofaRpcVersion: "5.6.5" +# - sofaRpcVersion: "5.7.10" +# - sofaRpcVersion: "5.8.8" +# - sofaRpcVersion: "5.9.2" +# - sofaRpcVersion: "5.10.0" +# - sofaRpcVersion: "5.11.1" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for sofaRpcVersion=${{ matrix.sofaRpcVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/sofarpc +# test-for-tag-transmission-servicecomb: +# name: Test for tag transmission servicecomb +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - serviceCombVersion: "2.1.6" +# - serviceCombVersion: "2.2.4" +# - serviceCombVersion: "2.3.6" +# - serviceCombVersion: "2.5.3" +# - serviceCombVersion: "2.6.3" +# - serviceCombVersion: "2.7.10" +# - serviceCombVersion: "2.8.12" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for servicecombVersion=${{ matrix.serviceCombVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/servicecomb +# test-for-tag-transmission-alibabadubbo: +# name: Test for tag transmission alibabadubbo +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - alibabaDubboVersion: "2.6.0" +# - alibabaDubboVersion: "2.6.3" +# - alibabaDubboVersion: "2.6.6" +# - alibabaDubboVersion: "2.6.9" +# - alibabaDubboVersion: "2.6.12" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for alibabaDubboVersion=${{ matrix.alibabaDubboVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/alibaba-dubbo +# test-for-tag-transmission-apachedubbo: +# name: Test for tag transmission apachedubbo +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - apacheDubboVersion: "2.7.5" +# - apacheDubboVersion: "2.7.15" +# - apacheDubboVersion: "2.7.23" +# - apacheDubboVersion: "3.0.15" +# - apacheDubboVersion: "3.1.11" +# - apacheDubboVersion: "3.2.7" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for apacheDubboVersion=${{ matrix.apacheDubboVersion}} +# uses: ./.github/actions/scenarios/tag-transmission/apache-dubbo +# test-for-tag-transmission-crossthread: +# name: Test for tag transmission crossthread +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for crossthread +# uses: ./.github/actions/scenarios/tag-transmission/crossthread +# test-for-tag-transmission-config: +# name: Test for tag transmission config +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for config +# uses: ./.github/actions/scenarios/tag-transmission/config +# test-for-tag-transmission-kafka: +# name: Test for tag transmission kafka +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - kafkaVersion: "2.3.1" +# - kafkaVersion: "1.1.1" +# - kafkaVersion: "2.7.2" +# - kafkaVersion: "3.4.0" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for kafkaVersion=${{ matrix.kafkaVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/kafka +# test-for-tag-transmission-rocketmq: +# name: Test for tag transmission rocketmq +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - rocketMqVersion: "4.8.0" +# - rocketMqVersion: "4.9.7" +# - rocketMqVersion: "5.0.0" +# - rocketMqVersion: "5.1.4" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for rocketMqVersion=${{ matrix.rocketMqVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/rocketmq +# test-for-tag-transmission-jdkhttp-jetty: +# name: Test for tag transmission jdkhttp and jetty +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - springBootVersion: "1.0.2.RELEASE" +# - springBootVersion: "1.1.12.RELEASE" +# - springBootVersion: "1.3.8.RELEASE" +# - springBootVersion: "1.4.7.RELEASE" +# - springBootVersion: "1.5.22.RELEASE" +# - springBootVersion: "2.2.0.RELEASE" +# - springBootVersion: "2.4.13" +# - springBootVersion: "2.7.16" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for springBootVersion=${{ matrix.springBootVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/jdkhttp-jetty +# test-for-tag-transmission-jdkhttp-tomcat: +# name: Test for tag transmission jdkhttp and tomcat +# runs-on: ubuntu-latest +# needs: [build-agent-and-cache, download-midwares-and-cache] +# strategy: +# matrix: +# include: +# - springBootVersion: "1.0.2.RELEASE" +# - springBootVersion: "1.1.12.RELEASE" +# - springBootVersion: "1.3.8.RELEASE" +# - springBootVersion: "1.4.7.RELEASE" +# - springBootVersion: "1.5.22.RELEASE" +# - springBootVersion: "2.2.0.RELEASE" +# - springBootVersion: "2.4.13" +# - springBootVersion: "2.7.16" +# fail-fast: false +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 100 +# - name: set java version to environment +# run: | +# echo "javaVersion=8" >> $GITHUB_ENV +# - name: common operations +# uses: ./.github/actions/common/tag-transmission +# - name: tag transmission test for springBootVersion=${{ matrix.springBootVersion }} +# uses: ./.github/actions/scenarios/tag-transmission/jdkhttp-tomcat \ No newline at end of file diff --git a/sermant-integration-tests/xds-service-test/product/spring-client/start.sh b/sermant-integration-tests/xds-service-test/product/spring-client/start.sh index 557c4db68d..29f17a9873 100644 --- a/sermant-integration-tests/xds-service-test/product/spring-client/start.sh +++ b/sermant-integration-tests/xds-service-test/product/spring-client/start.sh @@ -1 +1,2 @@ -exec java -javaagent:/home/agent/sermant-agent.jar -jar -Dsermant_log_dir=/log/sermant-logs/sermant /home/spring-client.jar > /log/sermant-logs/client.log 2>&1 +exec java -javaagent:/home/agent/sermant-agent.jar -jar -Dsermant_log_dir=/logs/xds-service +/home/spring-client.jar > /logs/xds-service/spring-client.log 2>&1 diff --git a/sermant-integration-tests/xds-service-test/product/spring-server/start.sh b/sermant-integration-tests/xds-service-test/product/spring-server/start.sh index 9203dd1c8d..9388fab15e 100644 --- a/sermant-integration-tests/xds-service-test/product/spring-server/start.sh +++ b/sermant-integration-tests/xds-service-test/product/spring-server/start.sh @@ -1 +1 @@ -exec java -jar /home/spring-server.jar +exec java -jar /home/spring-server.jar > /logs/xds-service/spring-server.log 2>&1 diff --git a/sermant-integration-tests/xds-service-test/script/spring-client.yaml b/sermant-integration-tests/xds-service-test/script/spring-client.yaml index f23974d70e..97a3f098e0 100644 --- a/sermant-integration-tests/xds-service-test/script/spring-client.yaml +++ b/sermant-integration-tests/xds-service-test/script/spring-client.yaml @@ -20,7 +20,7 @@ spec: - containerPort: 8080 volumeMounts: - name: log-volume - mountPath: /log/sermant-logs + mountPath: /logs/xds-service env: - name: agent_service_dynamic_config_enable value: "false" @@ -29,7 +29,7 @@ spec: volumes: - name: log-volume hostPath: - path: /Users/daizhenyu/work/logs + path: /home/runner/work/Sermant/Sermant/logs/xds-service type: Directory imagePullSecrets: - name: default-secret diff --git a/sermant-integration-tests/xds-service-test/xds-service-integration-test/src/test/java/io/sermant/xds/service/discovery/XdsServiceDiscoveryTest.java b/sermant-integration-tests/xds-service-test/xds-service-integration-test/src/test/java/io/sermant/xds/service/discovery/XdsServiceDiscoveryTest.java index 5fe30ff263..bb25e5e471 100644 --- a/sermant-integration-tests/xds-service-test/xds-service-integration-test/src/test/java/io/sermant/xds/service/discovery/XdsServiceDiscoveryTest.java +++ b/sermant-integration-tests/xds-service-test/xds-service-integration-test/src/test/java/io/sermant/xds/service/discovery/XdsServiceDiscoveryTest.java @@ -40,7 +40,7 @@ public void testDiscoveryWithOneServerInstance() { Assertions.assertEquals(0, 1, "The returned result format is incorrect."); } Assertions.assertEquals("hello", resultStrings[0]); - Assertions.assertEquals("1", resultStrings[1]); + Assertions.assertEquals("2", resultStrings[1]); } /**