Skip to content

Commit e1110ec

Browse files
committedJul 2, 2024
Adds idm 4.2 to tests.yaml
1 parent f51e21b commit e1110ec

File tree

1 file changed

+27
-63
lines changed

1 file changed

+27
-63
lines changed
 

‎.github/workflows/tests.yaml

+27-63
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ on:
2121
workflow_dispatch:
2222

2323
concurrency:
24-
group:
25-
${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
24+
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
2625
'pull_request' && github.event.number) || (github.event_name ==
2726
'workflow_dispatch' && github.run_number) || github.sha }}
2827
cancel-in-progress: true
@@ -41,18 +40,15 @@ jobs:
4140
env:
4241
BUILD_VARIANT: ${{matrix.build_variant}}
4342
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"
4744
LSAN_OPTIONS: detect_leaks=1
4845

4946
if: github.actor != 'restyled-io[bot]'
5047
runs-on: ubuntu-latest
5148

5249
container:
5350
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
5652
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
5753

5854
steps:
@@ -70,12 +66,9 @@ jobs:
7066
- name: Checkout submodules & Bootstrap
7167
uses: ./.github/actions/checkout-submodules-and-bootstrap
7268
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
7972
can write them.
8073
run: |
8174
mkdir /tmp/cores || true
@@ -225,9 +218,7 @@ jobs:
225218
--copy-artifacts-to objdir-clone \
226219
"
227220
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
231222
run: |
232223
./scripts/run_in_build_env.sh \
233224
"./scripts/tests/run_test_suite.py \
@@ -247,9 +238,7 @@ jobs:
247238
--rvc-app ./out/linux-x64-rvc-${BUILD_VARIANT}/chip-rvc-app \
248239
"
249240
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
253242
run: |
254243
./scripts/run_in_build_env.sh \
255244
"./scripts/tests/run_test_suite.py \
@@ -312,19 +301,15 @@ jobs:
312301
uses: actions/upload-artifact@v4
313302
if: ${{ failure() && !env.ACT }}
314303
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 }}
318305
path: /tmp/cores/
319306
# Cores are big; don't hold on to them too long.
320307
retention-days: 5
321308
- name: Uploading objdir for debugging
322309
uses: actions/upload-artifact@v4
323310
if: ${{ failure() && !env.ACT }}
324311
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 }}
328313
path: objdir-clone/
329314
# objdirs are big; don't hold on to them too long.
330315
retention-days: 5
@@ -340,9 +325,7 @@ jobs:
340325
BUILD_VARIANT: ${{matrix.build_variant}}
341326
CHIP_TOOL_VARIANT: ${{matrix.chip_tool}}
342327
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
346329

347330
if: github.actor != 'restyled-io[bot]'
348331
runs-on: macos-latest
@@ -363,10 +346,9 @@ jobs:
363346
- name: Checkout submodules & Bootstrap
364347
uses: ./.github/actions/checkout-submodules-and-bootstrap
365348
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+
370352

371353
- name: Build Apps
372354
run: |
@@ -386,9 +368,7 @@ jobs:
386368
--copy-artifacts-to objdir-clone \
387369
"
388370
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
392372
run: |
393373
./scripts/run_in_build_env.sh \
394374
"./scripts/tests/run_test_suite.py \
@@ -409,9 +389,7 @@ jobs:
409389
--rvc-app ./out/darwin-x64-rvc-${BUILD_VARIANT}/chip-rvc-app \
410390
"
411391
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
415393
run: |
416394
./scripts/run_in_build_env.sh \
417395
"./scripts/tests/run_test_suite.py \
@@ -430,27 +408,21 @@ jobs:
430408
uses: actions/upload-artifact@v4
431409
if: ${{ failure() && !env.ACT }}
432410
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 }}
436412
path: /cores/
437413
# Cores are big; don't hold on to them too long.
438414
retention-days: 5
439415
- name: Uploading diagnostic logs
440416
uses: actions/upload-artifact@v4
441417
if: ${{ failure() && !env.ACT }}
442418
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 }}
446420
path: ~/Library/Logs/DiagnosticReports/
447421
- name: Uploading objdir for debugging
448422
uses: actions/upload-artifact@v4
449423
if: ${{ failure() && !env.ACT }}
450424
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 }}
454426
path: objdir-clone/
455427
# objdirs are big; don't hold on to them too long.
456428
retention-days: 5
@@ -459,17 +431,14 @@ jobs:
459431
name: REPL Tests - Linux
460432

461433
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"
465435

466436
if: github.actor != 'restyled-io[bot]'
467437
runs-on: ubuntu-latest
468438

469439
container:
470440
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
473442
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
474443

475444
steps:
@@ -478,12 +447,9 @@ jobs:
478447
- name: Checkout submodules & Bootstrap
479448
uses: ./.github/actions/checkout-submodules-and-bootstrap
480449
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
487453
can write them.
488454
run: |
489455
mkdir /tmp/cores || true
@@ -542,7 +508,7 @@ jobs:
542508
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"'
543509
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"'
544510
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"'
546512
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"'
547513
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"'
548514
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:
637603
- name: Checkout submodules & Bootstrap
638604
uses: ./.github/actions/checkout-submodules-and-bootstrap
639605
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 }}
644608

645609
- name: Build Python REPL and example apps
646610
run: |

0 commit comments

Comments
 (0)