@@ -29,78 +29,78 @@ concurrency:
2929 cancel-in-progress : true
3030
3131jobs :
32- code_static_check :
33- name : code_static_check
34- if : ${{ github.event_name != 'pull_request' || (github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci')) }}
35- runs-on : ubuntu-latest
36- steps :
37- - name : Free disk space
38- run : |
39- sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk /opt/ghc /opt/hostedtoolcache/CodeQL
40- df -h /
41-
42- - name : Check out code
43- uses : actions/checkout@v6
44- with :
45- ref : ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.sha }}
46- fetch-depth : 0
47- fetch-tags : false
48- submodules : recursive
49-
50- - name : Static check with Ruff
51- uses : astral-sh/ruff-action@v3
52- with :
53- version : " >=0.14.x"
54- args : " check --exclude=**/remote_thrift/infinity_thrift_rpc/**"
55-
56- - name : Start builder container
57- run : |
58- docker run --privileged --cap-add=NET_ADMIN -d --name infinity_builder -v ${PWD}:/infinity -v ${PWD}/resource:/usr/share/infinity/resource infiniflow/infinity-x64-x64-v4-builder:latest
59-
60- - name : Check format of changed C/C++ files
61- run : |
62- if [[ ${{ github.event_name }} == 'pull_request' ]]; then
63- CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} \
64- | grep -E '\.(cpp|h|hpp|cppm)$' \
65- | grep -v 'third_party/' \
66- | grep -v 'network/' \
67- | grep -v 'remote_thrift/infinity_thrift_rpc/' \
68- | grep -v 'parser/' || true)
69-
70- if [ -n "$CHANGED_FILES" ]; then
71- echo "Check format of changed C/C++ files with clang-format-20"
72-
73- readarray -t files <<< "$CHANGED_FILES"
74- HAS_ERROR=0
75-
76- for file in "${files[@]}"; do
77- if [ -f "$file" ]; then
78- if docker exec infinity_builder bash -c "cd /infinity; clang-format-20 $file > ${file}.formatted; diff $file ${file}.formatted 2>/dev/null"; then
79- echo "✅ $file"
80- else
81- echo "❌ $file"
82- HAS_ERROR=1
83- fi
84- rm -f "${file}.formatted"
85- fi
86- done
87-
88- if [ $HAS_ERROR -ne 0 ]; then
89- exit 1
90- fi
91- else
92- echo "No C++ files changed"
93- fi
94- fi
95-
96- - name : Remove container
97- if : always()
98- run : docker rm -f infinity_builder || true
32+ # code_static_check:
33+ # name: code_static_check
34+ # if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci')) }}
35+ # runs-on: ubuntu-latest
36+ # steps:
37+ # - name: Free disk space
38+ # run: |
39+ # sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk /opt/ghc /opt/hostedtoolcache/CodeQL
40+ # df -h /
41+
42+ # - name: Check out code
43+ # uses: actions/checkout@v6
44+ # with:
45+ # ref: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.sha }}
46+ # fetch-depth: 0
47+ # fetch-tags: false
48+ # submodules: recursive
49+
50+ # - name: Static check with Ruff
51+ # uses: astral-sh/ruff-action@v3
52+ # with:
53+ # version: ">=0.14.x"
54+ # args: "check --exclude=**/remote_thrift/infinity_thrift_rpc/**"
55+
56+ # - name: Start builder container
57+ # run: |
58+ # docker run --privileged --cap-add=NET_ADMIN -d --name infinity_builder -v ${PWD}:/infinity -v ${PWD}/resource:/usr/share/infinity/resource infiniflow/infinity-x64-x64-v4-builder:latest
59+
60+ # - name: Check format of changed C/C++ files
61+ # run: |
62+ # if [[ ${{ github.event_name }} == 'pull_request' ]]; then
63+ # CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} \
64+ # | grep -E '\.(cpp|h|hpp|cppm)$' \
65+ # | grep -v 'third_party/' \
66+ # | grep -v 'network/' \
67+ # | grep -v 'remote_thrift/infinity_thrift_rpc/' \
68+ # | grep -v 'parser/' || true)
69+
70+ # if [ -n "$CHANGED_FILES" ]; then
71+ # echo "Check format of changed C/C++ files with clang-format-20"
72+
73+ # readarray -t files <<< "$CHANGED_FILES"
74+ # HAS_ERROR=0
75+
76+ # for file in "${files[@]}"; do
77+ # if [ -f "$file" ]; then
78+ # if docker exec infinity_builder bash -c "cd /infinity; clang-format-20 $file > ${file}.formatted; diff $file ${file}.formatted 2>/dev/null"; then
79+ # echo "✅ $file"
80+ # else
81+ # echo "❌ $file"
82+ # HAS_ERROR=1
83+ # fi
84+ # rm -f "${file}.formatted"
85+ # fi
86+ # done
87+
88+ # if [ $HAS_ERROR -ne 0 ]; then
89+ # exit 1
90+ # fi
91+ # else
92+ # echo "No C++ files changed"
93+ # fi
94+ # fi
95+
96+ # - name: Remove container
97+ # if: always()
98+ # run: docker rm -f infinity_builder || true
9999
100100 debug_amd64_build :
101101 name : debug_amd64_build
102102 runs-on : ubuntu-latest
103- needs : code_static_check
103+ # needs: code_static_check
104104 steps :
105105 - name : Free disk space
106106 run : |
@@ -824,7 +824,7 @@ jobs:
824824 release_amd64_build :
825825 name : release_amd64_build
826826 runs-on : ubuntu-latest
827- needs : code_static_check
827+ # needs: code_static_check
828828 steps :
829829 - name : Free disk space
830830 run : |
@@ -1402,7 +1402,7 @@ jobs:
14021402 debug_arm64_build :
14031403 name : debug_arm64_build
14041404 runs-on : ubuntu-24.04-arm
1405- needs : code_static_check
1405+ # needs: code_static_check
14061406 steps :
14071407 - name : Free disk space
14081408 run : |
@@ -1866,7 +1866,7 @@ jobs:
18661866 release_arm64_build :
18671867 name : release_arm64_build
18681868 runs-on : ubuntu-24.04-arm
1869- needs : code_static_check
1869+ # needs: code_static_check
18701870 steps :
18711871 - name : Free disk space
18721872 run : |
@@ -2437,7 +2437,7 @@ jobs:
24372437 reldeb_amd64_benchmark_prepare :
24382438 name : reldeb_amd64_benchmark_prepare
24392439 runs-on : [ "self-hosted", "infinity-build" ]
2440- needs : code_static_check
2440+ # needs: code_static_check
24412441 steps :
24422442 - name : Ensure workspace ownership
24432443 run : echo "chown -R ${USER} ${GITHUB_WORKSPACE}" && sudo chown -R ${USER} ${GITHUB_WORKSPACE}
0 commit comments