@@ -119,14 +119,29 @@ jobs:
119119 ../tests/integration/start_codis.sh
120120
121121 - name : Run Go E2E Tests
122- working-directory : ${{ github.workspace }}/build
122+ working-directory : ${{ github.workspace }}
123123 run : |
124- cd ../tools/pika_keys_analysis/
125- go test -v ./...
126- cd ../../tests/integration/
124+ cd tests/integration/
127125 chmod +x integrate_test.sh
128126 sh integrate_test.sh
129127
128+ # Raft Consistency Tests (optional - requires raft-enabled build)
129+ - name : Start Raft Cluster
130+ working-directory : ${{ github.workspace }}/build
131+ continue-on-error : true
132+ run : |
133+ chmod +x ../tests/integration/start_raft_cluster.sh
134+ ../tests/integration/start_raft_cluster.sh || echo "Raft cluster start skipped or failed (may not be supported in this build)"
135+
136+ - name : Run Raft Consistency Tests
137+ working-directory : ${{ github.workspace }}/build
138+ continue-on-error : true
139+ run : |
140+ cd ../tests/integration/raft/
141+ go mod init raft-test 2>/dev/null || true
142+ go mod tidy
143+ go test -v -timeout 30m || echo "Raft consistency tests skipped or failed"
144+
130145 build_on_rocky :
131146 runs-on : ubuntu-latest
132147 container :
@@ -334,16 +349,29 @@ jobs:
334349 ../tests/integration/start_codis.sh
335350
336351 - name : Run Go E2E Tests
337- working-directory : ${{ github.workspace }}/build
352+ working-directory : ${{ github.workspace }}
338353 run : |
339- find . -name "pika.conf" -exec sed -i 's/loglevel : info/loglevel : error/g' {} +
340- find . -name "pika.conf" -exec sed -i 's/loglevel : debug/loglevel : error/g' {} +
341- cd ../tools/pika_keys_analysis/
342- go test -v ./...
343- cd ../../tests/integration/
354+ cd tests/integration/
344355 chmod +x integrate_test.sh
345356 sh integrate_test.sh
346357
358+ # Raft Consistency Tests (optional - requires raft-enabled build)
359+ - name : Start Raft Cluster
360+ working-directory : ${{ github.workspace }}/build
361+ continue-on-error : true
362+ run : |
363+ chmod +x ../tests/integration/start_raft_cluster.sh
364+ ../tests/integration/start_raft_cluster.sh || echo "Raft cluster start skipped or failed (may not be supported in this build)"
365+
366+ - name : Run Raft Consistency Tests
367+ working-directory : ${{ github.workspace }}/build
368+ continue-on-error : true
369+ run : |
370+ cd ../tests/integration/raft/
371+ go mod init raft-test 2>/dev/null || true
372+ go mod tidy
373+ go test -v -timeout 30m || echo "Raft consistency tests skipped or failed"
374+
347375 build_on_macos :
348376
349377 runs-on : macos-14
@@ -403,7 +431,25 @@ jobs:
403431 run : |
404432 cd tests/integration/
405433 chmod +x integrate_test.sh
406- # sh integrate_test.sh
434+ # sh integrate_test.sh
435+
436+ # Raft Consistency Tests (optional - requires raft-enabled build)
437+ - name : Start Raft Cluster
438+ working-directory : ${{ github.workspace }}
439+ continue-on-error : true
440+ run : |
441+ cd tests/integration/
442+ chmod +x start_raft_cluster.sh
443+ ./start_raft_cluster.sh || echo "Raft cluster start skipped or failed (may not be supported in this build)"
444+
445+ - name : Run Raft Consistency Tests
446+ working-directory : ${{ github.workspace }}
447+ continue-on-error : true
448+ run : |
449+ cd tests/integration/raft/
450+ go mod init raft-test 2>/dev/null || true
451+ go mod tidy
452+ go test -v -timeout 30m || echo "Raft consistency tests skipped or failed"
407453
408454 build_pika_image :
409455 name : Build Pika Docker image
0 commit comments