1818concurrency :
1919 group : ${{ github.workflow }}-${{ github.ref }}
2020 cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
21+ max-parallel : 10 # PHASE 1: Limit concurrent jobs to prevent resource exhaustion
2122
2223jobs :
2324 build :
3839 needs : build
3940 name : Test
4041 runs-on : ubuntu-latest
41- timeout-minutes : 360
42+ timeout-minutes : 90 # PHASE 1: Reduced from 360 to 90 minutes for faster failure detection
4243 strategy :
4344 fail-fast : false
45+ max-parallel : 10 # PHASE 1: Limit parallel test execution
4446 matrix :
4547 module : ['agent', 'agent-c3', 'agent-c4', 'agent-dse4', 'connector']
4648 jdk : ['11', '17']
7274 env :
7375 DSE_REPO_USERNAME : ${{ secrets.DSE_REPO_USERNAME }}
7476 DSE_REPO_PASSWORD : ${{ secrets.DSE_REPO_PASSWORD }}
77+ MAVEN_OPTS : " -Xmx2g -XX:MaxMetaspaceSize=512m" # PHASE 1: Limit JVM memory
78+ GRADLE_OPTS : " -Xmx2g -Dorg.gradle.daemon=false" # PHASE 1: Limit Gradle memory, disable daemon
7579 run : |
7680 set -e
7781 PREV_IFS=$IFS
@@ -86,54 +90,58 @@ jobs:
8690 -PtestPulsarImageTag=$PULSAR_IMAGE_TAG \
8791 ${{ matrix.module }}:test
8892
89- test-kafka :
90- needs : build
91- name : Test Kafka
92- runs-on : ubuntu-latest
93- timeout-minutes : 360
94- strategy :
95- fail-fast : false
96- matrix :
97- module : ['agent-c4']
98- jdk : ['11', '17']
99- kafkaImage : ['apache/kafka:4.2.0', 'confluentinc/cp-kafka:7.9.6', 'confluentinc/cp-kafka:8.1.0']
100- steps :
101- - uses : actions/checkout@v6
102- - name : Set up JDK ${{ matrix.jdk }}
103- uses : actions/setup-java@v5
104- with :
105- java-version : ${{ matrix.jdk }}
106- distribution : ' adopt'
107-
108- - name : Get project version
109- uses : HardNorth/github-version-generate@v1.4.0
110- with :
111- version-source : file
112- version-file : gradle.properties
113- version-file-extraction-pattern : ' (?<=version=).+'
114-
115- - name : Cache Docker layers
116- uses : actions/cache@v5
117- with :
118- path : /tmp/.buildx-cache
119- key : ${{ runner.os }}-buildx-${{ github.sha }}
120- restore-keys : |
121- ${{ runner.os }}-buildx-
122-
123- - name : Test with Gradle (Kafka)
124- env :
125- DSE_REPO_USERNAME : ${{ secrets.DSE_REPO_USERNAME }}
126- DSE_REPO_PASSWORD : ${{ secrets.DSE_REPO_PASSWORD }}
127- run : |
128- set -e
129- PREV_IFS=$IFS
130- IFS=':'
131- read -ra KAFKA_FULL_IMAGE <<< "${{ matrix.kafkaImage }}"
132- IFS=$PREV_IFS
133- KAFKA_IMAGE=${KAFKA_FULL_IMAGE[0]}
134- KAFKA_IMAGE_TAG=${KAFKA_FULL_IMAGE[1]}
135-
136- ./gradlew -Pdse4 -PdseRepoUsername=$DSE_REPO_USERNAME -PdseRepoPassword=$DSE_REPO_PASSWORD \
137- -PtestKafkaImage=$KAFKA_IMAGE \
138- -PtestKafkaImageTag=$KAFKA_IMAGE_TAG \
139- ${{ matrix.module }}:test
93+ # PHASE 1 STABILIZATION - TEMPORARILY DISABLED
94+ # Kafka tests will be re-enabled in Phase 4 after Pulsar tests are stable
95+ # See docs/CI_FAILURE_COMPREHENSIVE_RECOVERY_PLAN.md for details
96+ #
97+ # test-kafka:
98+ # needs: build
99+ # name: Test Kafka
100+ # runs-on: ubuntu-latest
101+ # timeout-minutes: 360
102+ # strategy:
103+ # fail-fast: false
104+ # matrix:
105+ # module: ['agent-c4']
106+ # jdk: ['11', '17']
107+ # kafkaImage: ['apache/kafka:4.2.0', 'confluentinc/cp-kafka:7.9.6', 'confluentinc/cp-kafka:8.1.0']
108+ # steps:
109+ # - uses: actions/checkout@v6
110+ # - name: Set up JDK ${{ matrix.jdk }}
111+ # uses: actions/setup-java@v5
112+ # with:
113+ # java-version: ${{ matrix.jdk }}
114+ # distribution: 'adopt'
115+ #
116+ # - name: Get project version
117+ # uses: HardNorth/github-version-generate@v1.4.0
118+ # with:
119+ # version-source: file
120+ # version-file: gradle.properties
121+ # version-file-extraction-pattern: '(?<=version=).+'
122+ #
123+ # - name: Cache Docker layers
124+ # uses: actions/cache@v5
125+ # with:
126+ # path: /tmp/.buildx-cache
127+ # key: ${{ runner.os }}-buildx-${{ github.sha }}
128+ # restore-keys: |
129+ # ${{ runner.os }}-buildx-
130+ #
131+ # - name: Test with Gradle (Kafka)
132+ # env:
133+ # DSE_REPO_USERNAME: ${{ secrets.DSE_REPO_USERNAME }}
134+ # DSE_REPO_PASSWORD: ${{ secrets.DSE_REPO_PASSWORD }}
135+ # run: |
136+ # set -e
137+ # PREV_IFS=$IFS
138+ # IFS=':'
139+ # read -ra KAFKA_FULL_IMAGE <<< "${{ matrix.kafkaImage }}"
140+ # IFS=$PREV_IFS
141+ # KAFKA_IMAGE=${KAFKA_FULL_IMAGE[0]}
142+ # KAFKA_IMAGE_TAG=${KAFKA_FULL_IMAGE[1]}
143+ #
144+ # ./gradlew -Pdse4 -PdseRepoUsername=$DSE_REPO_USERNAME -PdseRepoPassword=$DSE_REPO_PASSWORD \
145+ # -PtestKafkaImage=$KAFKA_IMAGE \
146+ # -PtestKafkaImageTag=$KAFKA_IMAGE_TAG \
147+ # ${{ matrix.module }}:test
0 commit comments