Skip to content

Commit

Permalink
ci: adapt linelint for better git history
Browse files Browse the repository at this point in the history
Signed-off-by: ZhangJian He <[email protected]>
  • Loading branch information
hezhangjian committed Oct 11, 2024
1 parent d2ceb4f commit 8f9432b
Show file tree
Hide file tree
Showing 1,002 changed files with 1,031 additions and 1,052 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/enhancement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ body:
attributes:
label: Why is this needed?
validations:
required: true
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ body:
attributes:
label: Why is this needed?
validations:
required: true
required: true
2 changes: 1 addition & 1 deletion .github/actions/common/agentcore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ runs:
uses: actions/cache@v3
with:
path: sermant-agent-*/
key: ${{ runner.os }}-agent-${{ github.run_id }}
key: ${{ runner.os }}-agent-${{ github.run_id }}
2 changes: 1 addition & 1 deletion .github/actions/common/backend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ runs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: '3.10'
python-version: '3.10'
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ runs:
uses: ./.github/actions/common/entry
with:
log-dir: ./logs/database-write-prohibition/common
key: ${{ runner.os }}-agent-${{ github.run_id }}
key: ${{ runner.os }}-agent-${{ github.run_id }}
2 changes: 1 addition & 1 deletion .github/actions/common/dubbo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ runs:
- name: configuration for 2.7.x
if: matrix.dubbo-version == '2-7' || matrix.dubbo-version == '3-0' || matrix.dubbo-version == '3-1' || matrix.dubbo-version == '3-2'
shell: bash
run: echo "projectPath=2-7" >> $GITHUB_ENV
run: echo "projectPath=2-7" >> $GITHUB_ENV
2 changes: 0 additions & 2 deletions .github/actions/common/entry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ runs:
echo "logDir=${log_dir}" >> $GITHUB_ENV
echo "=======check log dir======"
ls -l ${log_dir}
3 changes: 0 additions & 3 deletions .github/actions/common/exit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ runs:
echo "========check process========"
jps -l
fi
2 changes: 1 addition & 1 deletion .github/actions/common/mq-consume-prohibition/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ runs:
uses: ./.github/actions/common/entry
with:
log-dir: ./logs/mq-consume-prohibition/common
key: ${{ runner.os }}-agent-${{ github.run_id }}
key: ${{ runner.os }}-agent-${{ github.run_id }}
48 changes: 24 additions & 24 deletions .github/actions/common/plugin-change-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ runs:
${{ env.enableSpringTestChange }} == 'true' ];then
echo "enableSpringVisibility=true" >> $GITHUB_ENV
fi
# ==========removal is needed to test?==========
if [ ${{ env.sermantAgentCoreChanged }} == 'true' -o ${{ env.sermantServiceRemovalChanged }} == 'true' -o \
${{ env.sermantSpringbootRegistryChanged }} == 'true' -o ${{ env.sermantServiceRegistryChanged }} == 'true' -o \
Expand All @@ -770,153 +770,153 @@ runs:
${{ env.enableDubboTestChange }} == 'true' ];then
echo "enableDubboVisibility=true" >> $GITHUB_ENV
fi
# ==========mongodb DataBase Write Prohibition is needed to test?==========
if [ ${{ env.mongodbDataBaseWriteProhibitionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableMongodbDataBaseWriteProhibitionAction=true" >> $GITHUB_ENV
fi
# ==========mysql DataBase Write Prohibition is needed to test?==========
if [ ${{ env.mysqlDataBaseWriteProhibitionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableMysqlDataBaseWriteProhibitionAction=true" >> $GITHUB_ENV
fi
# ==========opengauss DataBase Write Prohibition is needed to test?==========
if [ ${{ env.opengaussDataBaseWritePprohibitionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableOpengaussDataBaseWriteProhibitionAction=true" >> $GITHUB_ENV
fi
# ==========opengauss And Postgresql DataBase Write Prohibition is needed to test?==========
if [ ${{ env.opengaussAndPostgresqlDataBaseWritePprohibitionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableOpengaussAndPostgresqlDataBaseWriteProhibitionAction=true" >> $GITHUB_ENV
fi
# ==========kafka consume Prohibition is needed to test?==========
if [ ${{ env.kafkaConsumeProhibitionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableKafkaConsumeProhibitionAction=true" >> $GITHUB_ENV
fi
# ==========rocketmq consume Prohibition is needed to test?==========
if [ ${{ env.rocketmqConsumeProhibitionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableRocketmqConsumeProhibitionAction=true" >> $GITHUB_ENV
fi
# ==========alibaba Dubbo Tag Transmission is needed to test?==========
if [ ${{ env.alibabaDubboTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableAlibabaDubboTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========apache Dubbo Tag Transmission is needed to test?==========
if [ ${{ env.apacheDubboTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableApacheDubboTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========grpc Tag Transmission is needed to test?==========
if [ ${{ env.grpcTagTransmissionChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableGrpcTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========httpclientV3 Tag Transmission is needed to test?==========
if [ ${{ env.httpclientV3TagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableHttpclientV3TagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========httpclientV4 Tag Transmission is needed to test?==========
if [ ${{ env.httpclientV4TagTransmissionChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableHttpclientV4TagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========tomcat Tag Transmission is needed to test?==========
if [ ${{ env.tomcatTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableTomcatTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========jetty Tag Transmission is needed to test?==========
if [ ${{ env.jettyTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableJettyTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========kafka Tag Transmission is needed to test?==========
if [ ${{ env.kafkaTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableKafkaTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========okhttp Tag Transmission is needed to test?==========
if [ ${{ env.okhttpTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableOkhttpTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========rocketmq Tag Transmission is needed to test?==========
if [ ${{ env.rocketmqTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableRocketmqTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========servicecomb Tag Transmission is needed to test?==========
if [ ${{ env.servicecombTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableServicecombTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========sofarpc Tag Transmission is needed to test?==========
if [ ${{ env.sofarpcTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableSofarpcTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========config Tag Transmission is needed to test?==========
if [ ${{ env.configTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableConfigTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========crossthread Tag Transmission is needed to test?==========
if [ ${{ env.crossthreadTagTransmissionChanged }} == 'true' -o \
${{ env.sermantAgentCoreChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableCrossthreadTagTransmissionAction=true" >> $GITHUB_ENV
fi
# ==========dynamic config service is needed to test?==========
if [ ${{ env.sermantAgentCoreDynamicConfigServiceChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableDynamicConfigServicAction=true" >> $GITHUB_ENV
fi
# ==========xds service is needed to test?==========
if [ ${{ env.sermantAgentCoreXdsServiceChanged }} == 'true' -o \
${{ steps.changed-common-action.outputs.changed }} == 'true' -o ${{ env.triggerPushEvent }} == 'true' ];then
echo "enableXdsServicAction=true" >> $GITHUB_ENV
fi
fi
2 changes: 1 addition & 1 deletion .github/actions/common/spring/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ runs:
run: |
mv sermant-integration-tests/spring-test/spring-common-demos/spring-common-feign/feign-api/src/main/java/io/sermant/spring/feign/api/configuration/FeignClientSslConfigurationLowVersion.java sermant-integration-tests/spring-test/spring-common-demos/spring-common-feign/feign-api/src/main/java/io/sermant/spring/feign/api/configuration/FeignClientSslConfigurationLowVersion.java.lowVersion
mv sermant-integration-tests/spring-test/spring-common-demos/spring-common-feign/feign-api/src/main/java/io/sermant/spring/feign/api/configuration/FeignClientSslConfigurationHighVersion.java.highVersion sermant-integration-tests/spring-test/spring-common-demos/spring-common-feign/feign-api/src/main/java/io/sermant/spring/feign/api/configuration/FeignClientSslConfigurationHighVersion.java
ls sermant-integration-tests/spring-test/spring-common-demos/spring-common-feign/feign-api/src/main/java/io/sermant/spring/feign/api/configuration
ls sermant-integration-tests/spring-test/spring-common-demos/spring-common-feign/feign-api/src/main/java/io/sermant/spring/feign/api/configuration
2 changes: 1 addition & 1 deletion .github/actions/common/tag-transmission/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ runs:
- 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 &
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 &
2 changes: 1 addition & 1 deletion .github/actions/common/xds-service/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ runs:
uses: actions/cache@v3
with:
path: sermant-integration-tests/xds-service-test/product/
key: ${{ runner.os }}-xds-service-product-${{ github.run_id }}
key: ${{ runner.os }}-xds-service-product-${{ github.run_id }}
2 changes: 1 addition & 1 deletion .github/actions/scenarios/agentcore/premain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
log-dir: ./logs/agentcore-test/premain
- name: (install agent) modify plugins file
shell: bash
run: |
run: |
sed -i '/dynamic-test-first-plugin/d' sermant-agent-${{ env.sermantVersion }}/agent/config/plugins.yaml
sed -i '/dynamic-test-second-plugin/d' sermant-agent-${{ env.sermantVersion }}/agent/config/plugins.yaml
sed -i '/plugins:/a \ - dynamic-test-first-plugin' sermant-agent-${{ env.sermantVersion }}/agent/config/plugins.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/scenarios/backend/config/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
2 changes: 1 addition & 1 deletion .github/actions/scenarios/backend/event/memory/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
2 changes: 1 addition & 1 deletion .github/actions/scenarios/backend/event/redis/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
2 changes: 1 addition & 1 deletion .github/actions/scenarios/dubbo/removal/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
./*.log
./logs/**/*.log
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
2 changes: 1 addition & 1 deletion .github/actions/scenarios/tag-transmission/grpc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ runs:
./*.log
./logs/**
if-no-files-found: warn
retention-days: 2
retention-days: 2
Loading

0 comments on commit 8f9432b

Please sign in to comment.