Skip to content

Update pipe-it.yml #7952

Update pipe-it.yml

Update pipe-it.yml #7952

Workflow file for this run

name: Pipe IT Debug (Final Stable)
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
jobs:
debug-specific-it:
runs-on: ubuntu-latest
name: Loop testIllegalPassword
strategy:
matrix:
java: [17]
cluster1: [HighPerformanceMode]
cluster2: [HighPerformanceMode]
steps:
- uses: actions/checkout@v5
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: corretto
java-version: ${{ matrix.java }}
- name: Cache Maven
uses: actions/cache@v5
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
# ===== 关键修复 1/2:只在最开始做一次全量构建,生成 template-node =====
- name: Build Once and Generate Template
run: |
mvn clean package \
-P with-integration-tests,MultiClusterIT2DualTreeManual \
-pl integration-test -am \
-DskipTests -ntp
# ===== 关键修复 2/2:循环里绝对不 clean,直接跑 test =====
- name: Run Test in Loop
run: |
attempt=1
while true; do
echo "--- Attempt $attempt ---"
# 注意:这里没有 clean,用的是 test 而不是 verify,速度更快
mvn test \
-P with-integration-tests,MultiClusterIT2DualTreeManual \
-Dtest=IoTDBPipePermissionIT#testIllegalPassword \
-DintegrationTest.forkCount=1 \
-DConfigNodeMaxHeapSize=256 \
-DDataNodeMaxHeapSize=1024 \
-DDataNodeMaxDirectMemorySize=768 \
-DClusterConfigurations=${{ matrix.cluster1 }},${{ matrix.cluster2 }} \
-pl integration-test -ntp
if [ $? -ne 0 ]; then
echo "FAILED at $attempt"
exit 1
fi
echo "PASSED $attempt"
attempt=$((attempt + 1))
done
- name: Upload Logs
if: failure()
uses: actions/upload-artifact@v6
with:
name: failure-logs
path: integration-test/target/cluster-logs