@@ -75,27 +75,49 @@ jobs:
75
75
uses : github/codeql-action/init@v3
76
76
with :
77
77
languages : " cpp"
78
+ queries : security-extended, security-and-quality
78
79
- name : Setup Build
79
80
run : scripts/build/gn_gen.sh --args="chip_config_memory_debug_checks=true chip_config_memory_debug_dmalloc=false"
80
81
- name : Run Build
81
82
run : scripts/run_in_build_env.sh "ninja -C ./out"
82
83
- name : Run Tests
83
84
run : scripts/tests/gn_tests.sh
85
+ - name : Clean out build output
86
+ run : rm -rf ./out
87
+
88
+ # Do not run below steps with CodeQL since we are getting "Out of runner space issues" with CodeQL and their added coverage is limited
84
89
- name : Set up Build Without Detail Logging
90
+ if : inputs.run-codeql != true
85
91
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false"
86
92
- name : Run Build Without Detail Logging
93
+ if : inputs.run-codeql != true
87
94
run : scripts/run_in_build_env.sh "ninja -C ./out"
95
+ - name : Cleanout build output
96
+ if : inputs.run-codeql != true
97
+ run : rm -rf ./out
88
98
- name : Set up Build Without Progress Logging
99
+ if : inputs.run-codeql != true
89
100
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false chip_progress_logging=false"
90
101
- name : Run Build Without Progress Logging
102
+ if : inputs.run-codeql != true
91
103
run : scripts/run_in_build_env.sh "ninja -C ./out"
104
+ - name : Clean out build output
105
+ if : inputs.run-codeql != true
106
+ run : rm -rf ./out
92
107
- name : Set up Build Without Error Logging
108
+ if : inputs.run-codeql != true
93
109
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false chip_progress_logging=false chip_error_logging=false"
94
110
- name : Run Build Without Error Logging
111
+ if : inputs.run-codeql != true
95
112
run : scripts/run_in_build_env.sh "ninja -C ./out"
113
+ - name : Clean out build output
114
+ if : inputs.run-codeql != true
115
+ run : rm -rf ./out
96
116
- name : Set up Build Without Logging
117
+ if : inputs.run-codeql != true
97
118
run : scripts/build/gn_gen.sh --args="chip_logging=false"
98
119
- name : Run Build Without Logging
120
+ if : inputs.run-codeql != true
99
121
run : scripts/run_in_build_env.sh "ninja -C ./out"
100
122
- name : Uploading core files
101
123
uses : actions/upload-artifact@v4
@@ -128,7 +150,7 @@ jobs:
128
150
name : Build on Linux (fake, gcc_release, clang, simulated)
129
151
130
152
runs-on : ubuntu-latest
131
- if : github.actor != 'restyled-io[bot]'
153
+ if : github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
132
154
133
155
container :
134
156
image : ghcr.io/project-chip/chip-build:125
@@ -161,11 +183,13 @@ jobs:
161
183
uses : ./.github/actions/checkout-submodules-and-bootstrap
162
184
with :
163
185
platform : linux
164
- - name : Initialize CodeQL
165
- if : ${{ inputs.run-codeql }}
166
- uses : github/codeql-action/init@v3
167
- with :
168
- languages : " cpp"
186
+ # CodeQL + this job is consistently failing (in the step "Run Tests with sanitizers")
187
+ # deactivate until a better workaround is found
188
+ # - name: Initialize CodeQL
189
+ # if: ${{ inputs.run-codeql }}
190
+ # uses: github/codeql-action/init@v3
191
+ # with:
192
+ # languages: "cpp"
169
193
- name : Setup and Build Simulated Device
170
194
run : |
171
195
BUILD_TYPE=simulated
@@ -270,11 +294,13 @@ jobs:
270
294
run : |
271
295
./scripts/run_in_build_env.sh \
272
296
"./scripts/build/build_examples.py --target linux-fake-tests build"
273
- - name : Perform CodeQL Analysis
274
- if : ${{ inputs.run-codeql }}
275
- uses : ./.github/actions/perform-codeql-analysis
276
- with :
277
- language : cpp
297
+ # CodeQL + this job is consistently failing (in the step "Run Tests with sanitizers")
298
+ # deactivate until a better solution is found
299
+ # - name: Perform CodeQL Analysis
300
+ # if: ${{ inputs.run-codeql }}
301
+ # uses: ./.github/actions/perform-codeql-analysis
302
+ # with:
303
+ # language: cpp
278
304
279
305
- name : Uploading core files
280
306
uses : actions/upload-artifact@v4
@@ -302,7 +328,7 @@ jobs:
302
328
name : Build on Linux (python_lib)
303
329
304
330
runs-on : ubuntu-latest
305
- if : github.actor != 'restyled-io[bot]'
331
+ if : github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
306
332
307
333
container :
308
334
image : ghcr.io/project-chip/chip-build:125
@@ -367,7 +393,7 @@ jobs:
367
393
name : Build on Linux (python lighting-app)
368
394
369
395
runs-on : ubuntu-latest
370
- if : github.actor != 'restyled-io[bot]'
396
+ if : github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
371
397
372
398
container :
373
399
image : ghcr.io/project-chip/chip-build:125
@@ -400,7 +426,7 @@ jobs:
400
426
build_darwin :
401
427
name : Build on Darwin (clang, simulated)
402
428
runs-on : macos-13
403
- if : github.actor != 'restyled-io[bot]'
429
+ if : github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
404
430
405
431
steps :
406
432
- name : Checkout
@@ -415,11 +441,12 @@ jobs:
415
441
- name : Try to ensure the directory for diagnostic log collection exists
416
442
run : |
417
443
mkdir -p ~/Library/Logs/DiagnosticReports || true
418
- - name : Initialize CodeQL
419
- if : ${{ inputs.run-codeql }}
420
- uses : github/codeql-action/init@v3
421
- with :
422
- languages : " cpp"
444
+ # Build on Darwin + CodeQL often takes 6 hours (which is more than the maximum allowed by GitHub Runners), Deactivate it until we can investigate this
445
+ # - name: Initialize CodeQL
446
+ # if: ${{ inputs.run-codeql }}
447
+ # uses: github/codeql-action/init@v3
448
+ # with:
449
+ # languages: "cpp"
423
450
424
451
- name : Setup and Build Simulated Device
425
452
run : |
@@ -473,11 +500,12 @@ jobs:
473
500
name : crash-log-darwin
474
501
path : ~/Library/Logs/DiagnosticReports/
475
502
476
- - name : Perform CodeQL Analysis
477
- if : ${{ inputs.run-codeql }}
478
- uses : ./.github/actions/perform-codeql-analysis
479
- with :
480
- language : cpp
503
+ # Build on Darwin + CodeQL often takes 6 hours (which is more than the maximum allowed by GitHub Runners), Deactivate it until we can investigate this
504
+ # - name: Perform CodeQL Analysis
505
+ # if: ${{ inputs.run-codeql }}
506
+ # uses: ./.github/actions/perform-codeql-analysis
507
+ # with:
508
+ # language: cpp
481
509
482
510
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
483
511
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
@@ -488,7 +516,7 @@ jobs:
488
516
env :
489
517
TSAN_OPTIONS : " halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
490
518
491
- if : github.actor != 'restyled-io[bot]'
519
+ if : github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
492
520
runs-on : ubuntu-latest
493
521
494
522
container :
0 commit comments