Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized message gray plugin workflow test case #1735

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/actions/scenarios/mq-grayscale/rocketmq/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ runs:
dynamic.config.dynamicConfigType: KIE
dynamic.config.serverAddress: 127.0.0.1:30110
SERVICE_META_ENVIRONMENT: development
SERVICE_META_SERVICE: ${{ matrix.test-model }}
run: |
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=grayscale-rocketmq-producer -jar \
sermant-integration-tests/mq-grayscale-rocketmq-test/grayscale-rocketmq-producer-demo/target/grayscale-rocketmq-producer-demo.jar > ${{ env.logDir }}/${{ matrix.rocketMqClientVersion }}-rocketmq-producer-base.log 2>&1 &
Expand All @@ -26,6 +27,7 @@ runs:
dynamic.config.serverAddress: 127.0.0.1:30110
SERVICE_META_ENVIRONMENT: development
SERVICE_META_VERSION: 1.0.1
SERVICE_META_SERVICE: ${{ matrix.test-model }}
run: |
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=grayscale-rocketmq-producer -Dserver.port=9040 -jar \
sermant-integration-tests/mq-grayscale-rocketmq-test/grayscale-rocketmq-producer-demo/target/grayscale-rocketmq-producer-demo.jar > ${{ env.logDir }}/${{ matrix.rocketMqClientVersion }}-rocketmq-producer-gray.log 2>&1 &
Expand All @@ -35,6 +37,7 @@ runs:
dynamic.config.dynamicConfigType: KIE
dynamic.config.serverAddress: 127.0.0.1:30110
SERVICE_META_ENVIRONMENT: development
SERVICE_META_SERVICE: ${{ matrix.test-model }}
run: |
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=grayscale-rocketmq-consumer -jar \
sermant-integration-tests/mq-grayscale-rocketmq-test/grayscale-rocketmq-consumer-demo/target/grayscale-rocketmq-consumer-demo.jar > ${{ env.logDir }}/${{ matrix.rocketMqClientVersion }}-rocketmq-consumer-base.log 2>&1 &
Expand All @@ -46,6 +49,7 @@ runs:
dynamic.config.serverAddress: 127.0.0.1:30110
SERVICE_META_ENVIRONMENT: development
SERVICE_META_VERSION: 1.0.1
SERVICE_META_SERVICE: ${{ matrix.test-model }}
run: |
nohup java -javaagent:sermant-agent-${{ env.sermantVersion }}/agent/sermant-agent.jar=appName=grayscale-rocketmq-consumer -Dserver.port=9010 -jar \
sermant-integration-tests/mq-grayscale-rocketmq-test/grayscale-rocketmq-consumer-demo/target/grayscale-rocketmq-consumer-demo.jar > ${{ env.logDir }}/${{ matrix.rocketMqClientVersion }}-rocketmq-consumer-gray.log 2>&1 &
Expand Down Expand Up @@ -75,7 +79,7 @@ runs:
with:
processor-keyword: grayscale-rocketmq
- name: if failure then upload error log
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: (test-for-grayscale-rocketmq)-(${{ matrix.test-model }}})-logs
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/message_gray_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-auto-only-base:
name: Test for pull base only for auto rule
name: Test base only for auto rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-plugin-false]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['AUTO_ONLY_BASE']
Expand All @@ -140,10 +140,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-auto-exc-only-base:
name: Test for pull base only for auto exclude rule
name: Test base only for auto exclude rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-auto-only-base]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['AUTO_EXC_ONLY_BASE']
Expand All @@ -161,10 +161,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-auto-base-gray:
name: Test for pull base gray for auto rule
name: Test pull base gray for auto rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-auto-exc-only-base]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['AUTO_BASE_GRAY_PULL']
Expand All @@ -182,10 +182,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-auto-base-gray-lite:
name: Test for pull base gray for auto rule
name: Test lite pull base gray for auto rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-auto-exc-only-base]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['AUTO_BASE_GRAY_LITE_PULL']
Expand All @@ -203,10 +203,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-auto-base-gray-push:
name: Test for pull base gray for auto rule
name: Test push base gray for auto rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-auto-exc-only-base]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['AUTO_BASE_GRAY_PUSH']
Expand All @@ -224,10 +224,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-auto-exc-base-gray:
name: Test for pull base gray for auto exclude rule
name: Test base gray for auto exclude rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-auto-base-gray]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['AUTO_EXC_BASE_GRAY']
Expand All @@ -245,10 +245,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-base-only-base:
name: Test for pull base only for base rule
name: Test base only for base rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-auto-exc-base-gray]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['BASE_ONLY_BASE']
Expand All @@ -266,10 +266,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-base-exc-only-base:
name: Test for pull base only for base exclude rule
name: Test base only for base exclude rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-base-only-base]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['BASE_EXC_ONLY_BASE']
Expand All @@ -287,10 +287,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-base-base-gray:
name: Test for pull base gray for base rule
name: Test base gray for base rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-base-exc-only-base]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['BASE_BASE_GRAY']
Expand All @@ -308,10 +308,10 @@ jobs:
- name: message gray test for test-model=${{ matrix.test-model }} rocketMqClientVersion=${{ matrix.rocketMqClientVersion }}
uses: ./.github/actions/scenarios/mq-grayscale/rocketmq
test-for-base-exc-base-gray:
name: Test for pull base gray for base exclude rule
name: Test base gray for base exclude rule
runs-on: ubuntu-latest
if: needs.set-execution-conditions.outputs.enableMqGrayscaleRocketMqAction=='true'
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache, test-for-base-base-gray]
needs: [set-execution-conditions, build-agent-and-cache, download-midwares-and-cache]
strategy:
matrix:
test-model: ['BASE_EXC_BASE_GRAY']
Expand Down
Loading
Loading