21
21
workflow_dispatch :
22
22
23
23
concurrency :
24
- group : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
24
+ group :
25
+ ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
25
26
' pull_request' && github.event.number) || (github.event_name ==
26
27
' workflow_dispatch' && github.run_number) || github.sha }}
27
28
cancel-in-progress : true
28
29
29
30
env :
30
31
CHIP_NO_LOG_TIMESTAMPS : true
31
-
32
+
32
33
jobs :
33
34
test_suites_linux :
34
35
name : Test Suites - Linux
@@ -40,15 +41,18 @@ jobs:
40
41
env :
41
42
BUILD_VARIANT : ${{matrix.build_variant}}
42
43
CHIP_TOOL_VARIANT : ${{matrix.chip_tool}}
43
- TSAN_OPTIONS : " halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
44
+ TSAN_OPTIONS :
45
+ " halt_on_error=1
46
+ suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
44
47
LSAN_OPTIONS : detect_leaks=1
45
48
46
49
if : github.actor != 'restyled-io[bot]'
47
50
runs-on : ubuntu-latest
48
51
49
52
container :
50
53
image : ghcr.io/project-chip/chip-build:1
51
- options : --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
54
+ options :
55
+ --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
52
56
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
53
57
54
58
steps :
66
70
- name : Checkout submodules & Bootstrap
67
71
uses : ./.github/actions/checkout-submodules-and-bootstrap
68
72
with :
69
- platform : linux
70
- bootstrap-log-name : bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
71
- - name : Try to ensure the directories for core dumping exist and we
73
+ platform : linux
74
+ bootstrap-log-name :
75
+ bootstrap-logs-linux-${{ matrix.build_variant }}${{
76
+ matrix.chip_tool }}
77
+ - name :
78
+ Try to ensure the directories for core dumping exist and we
72
79
can write them.
73
80
run : |
74
81
mkdir /tmp/cores || true
@@ -212,7 +219,9 @@ jobs:
212
219
--bridge-app ./out/linux-x64-bridge-${BUILD_VARIANT}/chip-bridge-app \
213
220
"
214
221
215
- - name : Run Tests using the python parser sending commands to chip-tool
222
+ - name :
223
+ Run Tests using the python parser sending commands to
224
+ chip-tool
216
225
# https://github.com/project-chip/connectedhomeip/issues/27673
217
226
if : matrix.build_variant != 'no-ble-tsan-clang'
218
227
run : |
@@ -271,15 +280,19 @@ jobs:
271
280
uses : actions/upload-artifact@v3
272
281
if : ${{ failure() && !env.ACT }}
273
282
with :
274
- name : crash-core-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
283
+ name :
284
+ crash-core-linux-${{ matrix.build_variant }}${{
285
+ matrix.chip_tool }}
275
286
path : /tmp/cores/
276
287
# Cores are big; don't hold on to them too long.
277
288
retention-days : 5
278
289
- name : Uploading objdir for debugging
279
290
uses : actions/upload-artifact@v3
280
291
if : ${{ failure() && !env.ACT }}
281
292
with :
282
- name : crash-objdir-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
293
+ name :
294
+ crash-objdir-linux-${{ matrix.build_variant }}${{
295
+ matrix.chip_tool }}
283
296
path : objdir-clone/
284
297
# objdirs are big; don't hold on to them too long.
285
298
retention-days : 5
@@ -289,14 +302,16 @@ jobs:
289
302
290
303
strategy :
291
304
matrix :
292
- build_variant : [no-ble-asan-clang]
305
+ build_variant : [no-ble-asan-clang]
293
306
# Since no-ble-tsan-clang doesn't run any tests, this is just wasted CI time for now
294
307
chip_tool : [""]
295
308
env :
296
309
BUILD_VARIANT : ${{matrix.build_variant}}
297
310
CHIP_TOOL_VARIANT : ${{matrix.chip_tool}}
298
311
TSAN_OPTIONS : " halt_on_error=1"
299
- LSAN_OPTIONS : detect_leaks=1 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
312
+ LSAN_OPTIONS :
313
+ detect_leaks=1
314
+ suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
300
315
301
316
if : github.actor != 'restyled-io[bot]'
302
317
runs-on : macos-latest
@@ -317,9 +332,10 @@ jobs:
317
332
- name : Checkout submodules & Bootstrap
318
333
uses : ./.github/actions/checkout-submodules-and-bootstrap
319
334
with :
320
- platform : darwin
321
- bootstrap-log-name : bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
322
-
335
+ platform : darwin
336
+ bootstrap-log-name :
337
+ bootstrap-logs-darwin-${{ matrix.build_variant }}${{
338
+ matrix.chip_tool }}
323
339
324
340
- name : Build Apps
325
341
run : |
@@ -353,8 +369,10 @@ jobs:
353
369
--bridge-app ./out/darwin-x64-bridge-${BUILD_VARIANT}/chip-bridge-app \
354
370
"
355
371
356
- - name : Run Tests using the python parser sending commands to chip-tool
357
- # https://github.com/project-chip/connectedhomeip/issues/27673
372
+ - name :
373
+ Run Tests using the python parser sending commands to
374
+ chip-tool
375
+ # https://github.com/project-chip/connectedhomeip/issues/27673
358
376
if : matrix.build_variant != 'no-ble-tsan-clang'
359
377
run : |
360
378
./scripts/run_in_build_env.sh \
@@ -377,21 +395,27 @@ jobs:
377
395
uses : actions/upload-artifact@v3
378
396
if : ${{ failure() && !env.ACT }}
379
397
with :
380
- name : crash-core-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
398
+ name :
399
+ crash-core-darwin-${{ matrix.build_variant }}${{
400
+ matrix.chip_tool }}
381
401
path : /cores/
382
402
# Cores are big; don't hold on to them too long.
383
403
retention-days : 5
384
404
- name : Uploading diagnostic logs
385
405
uses : actions/upload-artifact@v3
386
406
if : ${{ failure() && !env.ACT }}
387
407
with :
388
- name : crash-log-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
408
+ name :
409
+ crash-log-darwin-${{ matrix.build_variant }}${{
410
+ matrix.chip_tool }}
389
411
path : ~/Library/Logs/DiagnosticReports/
390
412
- name : Uploading objdir for debugging
391
413
uses : actions/upload-artifact@v3
392
414
if : ${{ failure() && !env.ACT }}
393
415
with :
394
- name : crash-objdir-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
416
+ name :
417
+ crash-objdir-darwin-${{ matrix.build_variant }}${{
418
+ matrix.chip_tool }}
395
419
path : objdir-clone/
396
420
# objdirs are big; don't hold on to them too long.
397
421
retention-days : 5
@@ -400,14 +424,17 @@ jobs:
400
424
name : REPL Tests - Linux
401
425
402
426
env :
403
- TSAN_OPTIONS : " halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
427
+ TSAN_OPTIONS :
428
+ " halt_on_error=1
429
+ suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
404
430
405
431
if : github.actor != 'restyled-io[bot]'
406
432
runs-on : ubuntu-latest
407
433
408
434
container :
409
435
image : ghcr.io/project-chip/chip-build:1
410
- options : --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
436
+ options :
437
+ --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
411
438
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
412
439
413
440
steps :
@@ -416,9 +443,12 @@ jobs:
416
443
- name : Checkout submodules & Bootstrap
417
444
uses : ./.github/actions/checkout-submodules-and-bootstrap
418
445
with :
419
- platform : linux
420
- bootstrap-log-name : bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
421
- - name : Try to ensure the directories for core dumping exist and we
446
+ platform : linux
447
+ bootstrap-log-name :
448
+ bootstrap-logs-linux-${{ matrix.build_variant }}${{
449
+ matrix.chip_tool }}
450
+ - name :
451
+ Try to ensure the directories for core dumping exist and we
422
452
can write them.
423
453
run : |
424
454
mkdir /tmp/cores || true
@@ -448,7 +478,15 @@ jobs:
448
478
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_ACE_1_3.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021"'
449
479
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_CGEN_2_4.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021"'
450
480
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_DA_1_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
451
- scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_3_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021"'
481
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
482
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
483
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_4.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
484
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_5.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
485
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_6.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
486
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_7.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
487
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_8.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
488
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_2_9.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
489
+ scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_TIMESYNC_3_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
452
490
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_DA_1_5.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values"'
453
491
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TestCommissioningTimeSync.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021"'
454
492
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_IDM_1_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021"'
@@ -499,8 +537,10 @@ jobs:
499
537
- name : Checkout submodules & Bootstrap
500
538
uses : ./.github/actions/checkout-submodules-and-bootstrap
501
539
with :
502
- platform : darwin
503
- bootstrap-log-name : bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
540
+ platform : darwin
541
+ bootstrap-log-name :
542
+ bootstrap-logs-darwin-${{ matrix.build_variant }}${{
543
+ matrix.chip_tool }}
504
544
505
545
- name : Build Python REPL and example apps
506
546
run : |
0 commit comments