-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
2,242 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: "Common operations" | ||
description: "do something common for tag transmission plugin test" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up JDK ${{ env.javaVersion }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ env.javaVersion }} | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: download zookeeper | ||
uses: actions/cache@v3 | ||
with: | ||
path: apache-zookeeper-3.6.3-bin.tar.gz | ||
key: ${{ runner.os }}-apache-zookeeper-3.6.3 | ||
- name: run zookeeper | ||
shell: bash | ||
run: | | ||
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 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: start cse | ||
shell: bash | ||
run: | | ||
export ROOT_PATH=$(pwd) | ||
bash ./sermant-integration-tests/scripts/startCse.sh | ||
- name: download 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: start nacos server | ||
shell: bash | ||
run: | | ||
tar -zxf nacos-server-1.4.2.tar.gz | ||
bash nacos/bin/startup.sh -m standalone | ||
- name: cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: download agent | ||
uses: actions/cache@v3 | ||
with: | ||
path: sermant-agent-*/ | ||
key: ${{ runner.os }}-agent-${{ github.run_id }} | ||
- name: plugin change check | ||
uses: ./.github/actions/common/plugin-change-check |
65 changes: 65 additions & 0 deletions
65
.github/actions/scenarios/tag-transmission/alibaba-dubbo/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: "Tag Transmission Plugin AlibabaDubbo Test" | ||
description: "Auto test for tag transmission by AlibabaDubbo" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: entry | ||
uses: ./.github/actions/common/entry | ||
with: | ||
log-dir: ./logs/tag-transmission/alibaba-dubbo | ||
- name: alibaba.dubbo.version != 2.6.0 | ||
if: matrix.alibabaDubboVersion != '2.6.0' | ||
shell: bash | ||
run: | | ||
sed -i '/<dependency>/{:a;N;/<\/dependency>/!ba};/<groupId>com.101tec<\/groupId>\s*<artifactId>zkclient<\/artifactId>/d' \ | ||
sermant-integration-tests/tag-transmission-test/alibaba-dubbo-consumer-demo/pom.xml | ||
sed -i '/<dependency>/{:a;N;/<\/dependency>/!ba};/<groupId>com.101tec<\/groupId>\s*<artifactId>zkclient<\/artifactId>/d' \ | ||
sermant-integration-tests/tag-transmission-test/alibaba-dubbo-provider-demo/pom.xml | ||
- name: package demos | ||
shell: bash | ||
run: | | ||
mvn package -Dalibaba.dubbo.version=${{ matrix.alibabaDubboVersion }} -DskipTests -Palibaba-dubbo-test --file \ | ||
sermant-integration-tests/tag-transmission-test/pom.xml | ||
- name: start common httpserver | ||
shell: bash | ||
run: | | ||
nohup java -jar sermant-integration-tests/tag-transmission-test/httpserver-common-demo/target/httpserver-common-demo.jar > ${{ env.logDir }}/httpserver-common-demo.log 2>&1 & | ||
- name: start alibabadubbo provider demo | ||
shell: bash | ||
run: | | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/alibaba-dubbo-provider \ | ||
sermant-integration-tests/tag-transmission-test/alibaba-dubbo-provider-demo/target/alibaba-dubbo-provider-demo.jar > ${{ env.logDir }}/alibaba-dubbo-provider.log 2>&1 & | ||
- name: start alibabadubbo consumer demo | ||
shell: bash | ||
run: | | ||
sleep 5s | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/alibaba-dubbo-consumer \ | ||
sermant-integration-tests/tag-transmission-test/alibaba-dubbo-consumer-demo/target/alibaba-dubbo-consumer-demo.jar > ${{ env.logDir }}/alibaba-dubbo-consumer.log 2>&1 & | ||
- name: waiting for services start | ||
shell: bash | ||
run: | | ||
ps -ef | grep java | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9040/common/httpServer 120 | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9041/alibabaDubbo/testAlibabaDubbo 120 | ||
- name: test alibabadubbo | ||
shell: bash | ||
run: | | ||
mvn test -Dtag.transmission.integration.test.type=ALIBABA_DUBBO --file \ | ||
sermant-integration-tests/tag-transmission-test/tag-transmission-integration-test/pom.xml | ||
- name: exit | ||
if: always() | ||
uses: ./.github/actions/common/exit | ||
with: | ||
processor-keyword: httpserver-common|alibaba-dubbo | ||
- name: if failure then upload error log | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ failure() || cancelled() }} | ||
with: | ||
name: (${{ github.job }})-tag-transmission-alibaba-dubbo-(${{ matrix.alibabaDubboVersion }}-logs | ||
path: | | ||
./*.log | ||
./logs/** | ||
if-no-files-found: warn | ||
retention-days: 2 |
57 changes: 57 additions & 0 deletions
57
.github/actions/scenarios/tag-transmission/apache-dubbo/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: "Tag Transmission Plugin ApacheDubbo Test" | ||
description: "Auto test for tag transmission by ApacheDubbo" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: entry | ||
uses: ./.github/actions/common/entry | ||
with: | ||
log-dir: ./logs/tag-transmission/apache-dubbo | ||
- name: package demos | ||
shell: bash | ||
run: | | ||
mvn package -Dapache.dubbo.version=${{ matrix.apacheDubboVersion }} -DskipTests -Papache-dubbo-test --file \ | ||
sermant-integration-tests/tag-transmission-test/pom.xml | ||
- name: start common httpserver | ||
shell: bash | ||
run: | | ||
nohup java -jar sermant-integration-tests/tag-transmission-test/httpserver-common-demo/target/httpserver-common-demo.jar > ${{ env.logDir }}/httpserver-common-demo.log 2>&1 & | ||
- name: start apachedubbo provider demo | ||
shell: bash | ||
run: | | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/apache-dubbo-provider \ | ||
sermant-integration-tests/tag-transmission-test/apache-dubbo-provider-demo/target/apache-dubbo-provider-demo.jar > ${{ env.logDir }}/apache-dubbo-provider.log 2>&1 & | ||
- name: start apachedubbo consumer demo | ||
shell: bash | ||
run: | | ||
sleep 5s | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/apache-dubbo-consumer \ | ||
sermant-integration-tests/tag-transmission-test/apache-dubbo-consumer-demo/target/apache-dubbo-consumer-demo.jar > ${{ env.logDir }}/apache-dubbo-consumer.log 2>&1 & | ||
- name: waiting for services start | ||
shell: bash | ||
run: | | ||
ps -ef | grep java | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9040/common/httpServer 120 | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9043/apacheDubbo/testApacheDubbo 120 | ||
- name: test apachedubbo | ||
shell: bash | ||
run: | | ||
mvn test -Dtag.transmission.integration.test.type=APACHE_DUBBO --file \ | ||
sermant-integration-tests/tag-transmission-test/tag-transmission-integration-test/pom.xml | ||
- name: exit | ||
if: always() | ||
uses: ./.github/actions/common/exit | ||
with: | ||
processor-keyword: httpserver-common|apache-dubbo | ||
- name: if failure then upload error log | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ failure() || cancelled() }} | ||
with: | ||
name: (${{ github.job }})-tag-transmission-apache-dubbo-(${{ matrix.apacheDubboVersion }}-logs | ||
path: | | ||
./*.log | ||
./logs/** | ||
if-no-files-found: warn | ||
retention-days: 2 |
50 changes: 50 additions & 0 deletions
50
.github/actions/scenarios/tag-transmission/config/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "Tag Transmission Plugin Config Test" | ||
description: "Auto test for tag transmission by Config" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: entry | ||
uses: ./.github/actions/common/entry | ||
with: | ||
log-dir: ./logs/tag-transmission/config | ||
- name: package demos | ||
shell: bash | ||
run: | | ||
mvn package -DskipTests -Pconfig-test --file \ | ||
sermant-integration-tests/tag-transmission-test/pom.xml | ||
- name: start common httpserver | ||
shell: bash | ||
run: | | ||
nohup java -jar sermant-integration-tests/tag-transmission-test/httpserver-common-demo/target/httpserver-common-demo.jar > ${{ env.logDir }}/httpserver-common-demo.log 2>&1 & | ||
- name: start config demo | ||
shell: bash | ||
run: | | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/crossthread \ | ||
sermant-integration-tests/tag-transmission-test/tomcat-demo/target/tomcat-demo.jar > ${{ env.logDir }}/tomcat.log 2>&1 & | ||
- name: waiting for services start | ||
shell: bash | ||
run: | | ||
ps -ef | grep java | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9040/common/httpServer 120 | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9052/tomcat/testConfig 120 | ||
- name: test config | ||
shell: bash | ||
run: | | ||
mvn test -Dtag.transmission.integration.test.type=CONFIG --file \ | ||
sermant-integration-tests/tag-transmission-test/tag-transmission-integration-test/pom.xml | ||
- name: exit | ||
if: always() | ||
uses: ./.github/actions/common/exit | ||
with: | ||
processor-keyword: httpserver-common|tomcat | ||
- name: if failure then upload error log | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ failure() || cancelled() }} | ||
with: | ||
name: (${{ github.job }})-tag-transmission-config-logs | ||
path: | | ||
./*.log | ||
./logs/** | ||
if-no-files-found: warn | ||
retention-days: 2 |
50 changes: 50 additions & 0 deletions
50
.github/actions/scenarios/tag-transmission/crossthread/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "Tag Transmission Plugin CrossThread Test" | ||
description: "Auto test for tag transmission by CrossThread" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: entry | ||
uses: ./.github/actions/common/entry | ||
with: | ||
log-dir: ./logs/tag-transmission/crossthread | ||
- name: package demos | ||
shell: bash | ||
run: | | ||
mvn package -DskipTests -Pcrossthread-test --file \ | ||
sermant-integration-tests/tag-transmission-test/pom.xml | ||
- name: start common httpserver | ||
shell: bash | ||
run: | | ||
nohup java -jar sermant-integration-tests/tag-transmission-test/httpserver-common-demo/target/httpserver-common-demo.jar > ${{ env.logDir }}/httpserver-common-demo.log 2>&1 & | ||
- name: start crossthread demo | ||
shell: bash | ||
run: | | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/crossthread \ | ||
sermant-integration-tests/tag-transmission-test/crossthread-demo/target/crossthread-demo.jar > ${{ env.logDir }}/crossthread.log 2>&1 & | ||
- name: waiting for services start | ||
shell: bash | ||
run: | | ||
ps -ef | grep java | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9040/common/httpServer 120 | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9045/thread/testNewThread 120 | ||
- name: test crossthread | ||
shell: bash | ||
run: | | ||
mvn test -Dtag.transmission.integration.test.type=CROSS_THREAD --file \ | ||
sermant-integration-tests/tag-transmission-test/tag-transmission-integration-test/pom.xml | ||
- name: exit | ||
if: always() | ||
uses: ./.github/actions/common/exit | ||
with: | ||
processor-keyword: httpserver-common|crossthread | ||
- name: if failure then upload error log | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ failure() || cancelled() }} | ||
with: | ||
name: (${{ github.job }})-tag-transmission-crossthread-logs | ||
path: | | ||
./*.log | ||
./logs/** | ||
if-no-files-found: warn | ||
retention-days: 2 |
56 changes: 56 additions & 0 deletions
56
.github/actions/scenarios/tag-transmission/grpc/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: "Tag Transmission Plugin Grpc Test" | ||
description: "Auto test for tag transmission by Grpc" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: entry | ||
uses: ./.github/actions/common/entry | ||
with: | ||
log-dir: ./logs/tag-transmission/grpc | ||
- name: package demos | ||
shell: bash | ||
run: | | ||
mvn package -Dgrpc.version=${{ matrix.grpcVersion }} -DskipTests -Pgrpc-test --file \ | ||
sermant-integration-tests/tag-transmission-test/pom.xml | ||
- name: start common httpserver | ||
shell: bash | ||
run: | | ||
nohup java -jar sermant-integration-tests/tag-transmission-test/httpserver-common-demo/target/httpserver-common-demo.jar > ${{ env.logDir }}/httpserver-common-demo.log 2>&1 & | ||
- name: start grpc client demo | ||
shell: bash | ||
run: | | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/grpc-client \ | ||
sermant-integration-tests/tag-transmission-test/grpc-client-demo/target/grpc-client-demo.jar > ${{ env.logDir }}/grpc-client.log 2>&1 & | ||
- name: start grpc server demo | ||
shell: bash | ||
run: | | ||
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=default -jar \ | ||
-Dsermant_log_dir=${{ env.logDir }}/grpc-server \ | ||
sermant-integration-tests/tag-transmission-test/grpc-server-demo/target/grpc-server-demo.jar > ${{ env.logDir }}/grpc-server.log 2>&1 & | ||
- name: waiting for services start | ||
shell: bash | ||
run: | | ||
ps -ef | grep java | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9040/common/httpServer 120 | ||
bash ./sermant-integration-tests/scripts/checkService.sh http://127.0.0.1:9046/grpc/testGrpcByStub 120 | ||
- name: test grpc | ||
shell: bash | ||
run: | | ||
mvn test -Dtag.transmission.integration.test.type=GRPC --file \ | ||
sermant-integration-tests/tag-transmission-test/tag-transmission-integration-test/pom.xml | ||
- name: exit | ||
if: always() | ||
uses: ./.github/actions/common/exit | ||
with: | ||
processor-keyword: httpserver-common|grpc | ||
- name: if failure then upload error log | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ failure() || cancelled() }} | ||
with: | ||
name: (${{ github.job }})-tag-transmission-grpc-(${{ matrix.grpcVersion }}-logs | ||
path: | | ||
./*.log | ||
./logs/** | ||
if-no-files-found: warn | ||
retention-days: 2 |
Oops, something went wrong.