21
21
workflow_dispatch :
22
22
23
23
concurrency :
24
- group :
25
- ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
24
+ group : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
26
25
' pull_request' && github.event.number) || (github.event_name ==
27
26
' workflow_dispatch' && github.run_number) || github.sha }}
28
27
cancel-in-progress : true
@@ -41,18 +40,15 @@ jobs:
41
40
env :
42
41
BUILD_VARIANT : ${{matrix.build_variant}}
43
42
CHIP_TOOL_VARIANT : ${{matrix.chip_tool}}
44
- TSAN_OPTIONS :
45
- " halt_on_error=1
46
- suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
43
+ TSAN_OPTIONS : " halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
47
44
LSAN_OPTIONS : detect_leaks=1
48
45
49
46
if : github.actor != 'restyled-io[bot]'
50
47
runs-on : ubuntu-latest
51
48
52
49
container :
53
50
image : ghcr.io/project-chip/chip-build:41
54
- options :
55
- --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
51
+ options : --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
56
52
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
57
53
58
54
steps :
70
66
- name : Checkout submodules & Bootstrap
71
67
uses : ./.github/actions/checkout-submodules-and-bootstrap
72
68
with :
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
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
79
72
can write them.
80
73
run : |
81
74
mkdir /tmp/cores || true
@@ -225,9 +218,7 @@ jobs:
225
218
--copy-artifacts-to objdir-clone \
226
219
"
227
220
228
- - name :
229
- Run Tests using the python parser sending commands to
230
- chip-tool
221
+ - name : Run Tests using the python parser sending commands to chip-tool
231
222
run : |
232
223
./scripts/run_in_build_env.sh \
233
224
"./scripts/tests/run_test_suite.py \
@@ -247,9 +238,7 @@ jobs:
247
238
--rvc-app ./out/linux-x64-rvc-${BUILD_VARIANT}/chip-rvc-app \
248
239
"
249
240
250
- - name :
251
- Run purposeful failure tests using the python parser sending
252
- commands to chip-tool
241
+ - name : Run purposeful failure tests using the python parser sending commands to chip-tool
253
242
run : |
254
243
./scripts/run_in_build_env.sh \
255
244
"./scripts/tests/run_test_suite.py \
@@ -312,19 +301,15 @@ jobs:
312
301
uses : actions/upload-artifact@v4
313
302
if : ${{ failure() && !env.ACT }}
314
303
with :
315
- name :
316
- crash-core-linux-${{ matrix.build_variant }}${{
317
- matrix.chip_tool }}
304
+ name : crash-core-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
318
305
path : /tmp/cores/
319
306
# Cores are big; don't hold on to them too long.
320
307
retention-days : 5
321
308
- name : Uploading objdir for debugging
322
309
uses : actions/upload-artifact@v4
323
310
if : ${{ failure() && !env.ACT }}
324
311
with :
325
- name :
326
- crash-objdir-linux-${{ matrix.build_variant }}${{
327
- matrix.chip_tool }}
312
+ name : crash-objdir-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
328
313
path : objdir-clone/
329
314
# objdirs are big; don't hold on to them too long.
330
315
retention-days : 5
@@ -340,9 +325,7 @@ jobs:
340
325
BUILD_VARIANT : ${{matrix.build_variant}}
341
326
CHIP_TOOL_VARIANT : ${{matrix.chip_tool}}
342
327
TSAN_OPTIONS : " halt_on_error=1"
343
- LSAN_OPTIONS :
344
- detect_leaks=1
345
- suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
328
+ LSAN_OPTIONS : detect_leaks=1 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
346
329
347
330
if : github.actor != 'restyled-io[bot]'
348
331
runs-on : macos-latest
@@ -363,10 +346,9 @@ jobs:
363
346
- name : Checkout submodules & Bootstrap
364
347
uses : ./.github/actions/checkout-submodules-and-bootstrap
365
348
with :
366
- platform : darwin
367
- bootstrap-log-name :
368
- bootstrap-logs-darwin-${{ matrix.build_variant }}${{
369
- matrix.chip_tool }}
349
+ platform : darwin
350
+ bootstrap-log-name : bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
351
+
370
352
371
353
- name : Build Apps
372
354
run : |
@@ -386,9 +368,7 @@ jobs:
386
368
--copy-artifacts-to objdir-clone \
387
369
"
388
370
389
- - name :
390
- Run Tests using the python parser sending commands to
391
- chip-tool
371
+ - name : Run Tests using the python parser sending commands to chip-tool
392
372
run : |
393
373
./scripts/run_in_build_env.sh \
394
374
"./scripts/tests/run_test_suite.py \
@@ -409,9 +389,7 @@ jobs:
409
389
--rvc-app ./out/darwin-x64-rvc-${BUILD_VARIANT}/chip-rvc-app \
410
390
"
411
391
412
- - name :
413
- Run purposeful failure tests using the python parser sending
414
- commands to chip-tool
392
+ - name : Run purposeful failure tests using the python parser sending commands to chip-tool
415
393
run : |
416
394
./scripts/run_in_build_env.sh \
417
395
"./scripts/tests/run_test_suite.py \
@@ -430,27 +408,21 @@ jobs:
430
408
uses : actions/upload-artifact@v4
431
409
if : ${{ failure() && !env.ACT }}
432
410
with :
433
- name :
434
- crash-core-darwin-${{ matrix.build_variant }}${{
435
- matrix.chip_tool }}
411
+ name : crash-core-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
436
412
path : /cores/
437
413
# Cores are big; don't hold on to them too long.
438
414
retention-days : 5
439
415
- name : Uploading diagnostic logs
440
416
uses : actions/upload-artifact@v4
441
417
if : ${{ failure() && !env.ACT }}
442
418
with :
443
- name :
444
- crash-log-darwin-${{ matrix.build_variant }}${{
445
- matrix.chip_tool }}
419
+ name : crash-log-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
446
420
path : ~/Library/Logs/DiagnosticReports/
447
421
- name : Uploading objdir for debugging
448
422
uses : actions/upload-artifact@v4
449
423
if : ${{ failure() && !env.ACT }}
450
424
with :
451
- name :
452
- crash-objdir-darwin-${{ matrix.build_variant }}${{
453
- matrix.chip_tool }}
425
+ name : crash-objdir-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
454
426
path : objdir-clone/
455
427
# objdirs are big; don't hold on to them too long.
456
428
retention-days : 5
@@ -459,17 +431,14 @@ jobs:
459
431
name : REPL Tests - Linux
460
432
461
433
env :
462
- TSAN_OPTIONS :
463
- " halt_on_error=1
464
- suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
434
+ TSAN_OPTIONS : " halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
465
435
466
436
if : github.actor != 'restyled-io[bot]'
467
437
runs-on : ubuntu-latest
468
438
469
439
container :
470
440
image : ghcr.io/project-chip/chip-build:41
471
- options :
472
- --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
441
+ options : --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
473
442
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
474
443
475
444
steps :
@@ -478,12 +447,9 @@ jobs:
478
447
- name : Checkout submodules & Bootstrap
479
448
uses : ./.github/actions/checkout-submodules-and-bootstrap
480
449
with :
481
- platform : linux
482
- bootstrap-log-name :
483
- bootstrap-logs-linux-${{ matrix.build_variant }}${{
484
- matrix.chip_tool }}
485
- - name :
486
- Try to ensure the directories for core dumping exist and we
450
+ platform : linux
451
+ bootstrap-log-name : bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
452
+ - name : Try to ensure the directories for core dumping exist and we
487
453
can write them.
488
454
run : |
489
455
mkdir /tmp/cores || true
@@ -542,7 +508,7 @@ jobs:
542
508
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --app out/linux-x64-lit-icd-ipv6only-no-ble-no-wifi-tsan-clang-test/lit-icd-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_ICDM_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 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
543
509
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-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_IDM_1_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
544
510
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-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json --enable-key 000102030405060708090a0b0c0d0e0f" --script "src/python_testing/TC_IDM_1_4.py" --script-args "--hex-arg PIXIT.DGGEN.TEST_EVENT_TRIGGER_KEY:000102030405060708090a0b0c0d0e0f --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
545
- 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-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_IDM_4_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
511
+ 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-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_IDM_4_2.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
546
512
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-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_PWRTL_2_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
547
513
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-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_RR_1_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
548
514
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-to json:out/trace_data/app-{SCRIPT_BASE_NAME}.json" --script "src/python_testing/TC_SC_3_6.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:out/trace_data/test-{SCRIPT_BASE_NAME}.json --trace-to perfetto:out/trace_data/test-{SCRIPT_BASE_NAME}.perfetto"'
@@ -637,10 +603,8 @@ jobs:
637
603
- name : Checkout submodules & Bootstrap
638
604
uses : ./.github/actions/checkout-submodules-and-bootstrap
639
605
with :
640
- platform : darwin
641
- bootstrap-log-name :
642
- bootstrap-logs-darwin-${{ matrix.build_variant }}${{
643
- matrix.chip_tool }}
606
+ platform : darwin
607
+ bootstrap-log-name : bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
644
608
645
609
- name : Build Python REPL and example apps
646
610
run : |
0 commit comments