Skip to content

Commit db5de08

Browse files
Speed up Darwin CI by enabling unified build on test_suites_darwin (project-chip#41969)
* Speed up CI by enabling unified build on test_suites_darwin * fix paths to darwin binaries * allow clang config in standalone toolchain so we can enable/disable clang in the unified build * add ota-requestor back * Fix path to provider app * Add CHIP_DEVICE_ENABLE_PORT_PARAMS * Clean out dir between builds for darwin * Fix paths to objdir-clone * add back accidentally removed apps * Remove tv-app from unified build. Not sure why its failing ci
1 parent 2bd48cf commit db5de08

File tree

1 file changed

+33
-23
lines changed

1 file changed

+33
-23
lines changed

.github/workflows/tests.yaml

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -485,50 +485,60 @@ jobs:
485485
platform: darwin
486486
bootstrap-log-name: bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
487487

488-
- name: Build Apps
488+
- name: Build Apps Using Unified Build
489+
run: |
490+
./scripts/run_in_build_env.sh \
491+
"./scripts/build/build_examples.py \
492+
--target darwin-${{matrix.arch}}-lock-${BUILD_VARIANT}-unified \
493+
--target darwin-${{matrix.arch}}-bridge-${BUILD_VARIANT}-unified \
494+
--target darwin-${{matrix.arch}}-microwave-oven-${BUILD_VARIANT}-unified \
495+
--target darwin-${{matrix.arch}}-rvc-${BUILD_VARIANT}-unified \
496+
--target darwin-${{matrix.arch}}-ota-provider-${BUILD_VARIANT}-unified \
497+
build \
498+
--copy-artifacts-to objdir-clone \
499+
"
500+
- name: Clean out
501+
run: rm -rf out/
502+
- name: Build Remaining Apps That Don't Support Unified Build
489503
run: |
490504
./scripts/run_in_build_env.sh \
491505
"./scripts/build/build_examples.py \
492506
--target darwin-${{matrix.arch}}-chip-tool${CHIP_TOOL_VARIANT}-${BUILD_VARIANT} \
493507
--target darwin-${{matrix.arch}}-all-clusters-${BUILD_VARIANT} \
494-
--target darwin-${{matrix.arch}}-lock-${BUILD_VARIANT} \
495-
--target darwin-${{matrix.arch}}-ota-provider-${BUILD_VARIANT} \
496508
--target darwin-${{matrix.arch}}-ota-requestor-${BUILD_VARIANT} \
497-
--target darwin-${{matrix.arch}}-tv-app-${BUILD_VARIANT} \
498-
--target darwin-${{matrix.arch}}-bridge-${BUILD_VARIANT} \
499509
--target darwin-${{matrix.arch}}-lit-icd-${BUILD_VARIANT} \
500-
--target darwin-${{matrix.arch}}-microwave-oven-${BUILD_VARIANT} \
501-
--target darwin-${{matrix.arch}}-rvc-${BUILD_VARIANT} \
502510
--target darwin-${{matrix.arch}}-network-manager-${BUILD_VARIANT} \
503511
--target darwin-${{matrix.arch}}-energy-gateway-${BUILD_VARIANT} \
504512
--target darwin-${{matrix.arch}}-energy-management-${BUILD_VARIANT} \
513+
--target darwin-${{matrix.arch}}-tv-app-${BUILD_VARIANT} \
505514
build \
506515
--copy-artifacts-to objdir-clone \
507516
"
508-
517+
- name: Clean out
518+
run: rm -rf out/
509519
- name: Run Tests using the python parser sending commands to chip-tool
510520
# tests that failed macOS 15/26 last check: TestGroupMessaging,Test_TC_ACE_1_6,Test_TC_G_*,Test_TC_GRPKEY_*,Test_TC_S_*
511521
run: |
512522
./scripts/run_in_build_env.sh \
513523
"./scripts/tests/run_test_suite.py \
514524
--runner chip_tool_python \
515-
--chip-tool ./out/darwin-${{matrix.arch}}-chip-tool${CHIP_TOOL_VARIANT}-${BUILD_VARIANT}/chip-tool \
525+
--chip-tool ./objdir-clone/darwin-${{matrix.arch}}-chip-tool${CHIP_TOOL_VARIANT}-${BUILD_VARIANT}/chip-tool \
516526
--target-skip-glob '{Test_TC_DGTHREAD_2_1,Test_TC_DGTHREAD_2_2,Test_TC_DGTHREAD_2_3,Test_TC_DGTHREAD_2_4}' \
517527
run \
518528
--iterations 1 \
519529
--test-timeout-seconds 120 \
520-
--all-clusters-app ./out/darwin-${{matrix.arch}}-all-clusters-${BUILD_VARIANT}/chip-all-clusters-app \
521-
--lock-app ./out/darwin-${{matrix.arch}}-lock-${BUILD_VARIANT}/chip-lock-app \
522-
--ota-provider-app ./out/darwin-${{matrix.arch}}-ota-provider-${BUILD_VARIANT}/chip-ota-provider-app \
523-
--ota-requestor-app ./out/darwin-${{matrix.arch}}-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \
524-
--tv-app ./out/darwin-${{matrix.arch}}-tv-app-${BUILD_VARIANT}/chip-tv-app \
525-
--bridge-app ./out/darwin-${{matrix.arch}}-bridge-${BUILD_VARIANT}/chip-bridge-app \
526-
--lit-icd-app ./out/darwin-${{matrix.arch}}-lit-icd-${BUILD_VARIANT}/lit-icd-app \
527-
--microwave-oven-app ./out/darwin-${{matrix.arch}}-microwave-oven-${BUILD_VARIANT}/chip-microwave-oven-app \
528-
--rvc-app ./out/darwin-${{matrix.arch}}-rvc-${BUILD_VARIANT}/chip-rvc-app \
529-
--network-manager-app ./out/darwin-${{matrix.arch}}-network-manager-${BUILD_VARIANT}/matter-network-manager-app \
530-
--energy-gateway-app ./out/darwin-${{matrix.arch}}-energy-gateway-${BUILD_VARIANT}/chip-energy-gateway-app \
531-
--energy-management-app ./out/darwin-${{matrix.arch}}-energy-management-${BUILD_VARIANT}/chip-energy-management-app \
530+
--all-clusters-app ./objdir-clone/darwin-${{matrix.arch}}-all-clusters-${BUILD_VARIANT}/chip-all-clusters-app \
531+
--lock-app ./objdir-clone/darwin-${{matrix.arch}}-lock-${BUILD_VARIANT}-unified/chip-lock-app \
532+
--ota-provider-app ./objdir-clone/darwin-${{matrix.arch}}-ota-provider-${BUILD_VARIANT}-unified/chip-ota-provider-app \
533+
--ota-requestor-app ./objdir-clone/darwin-${{matrix.arch}}-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \
534+
--tv-app ./objdir-clone/darwin-${{matrix.arch}}-tv-app-${BUILD_VARIANT}/chip-tv-app \
535+
--bridge-app ./objdir-clone/darwin-${{matrix.arch}}-bridge-${BUILD_VARIANT}-unified/chip-bridge-app \
536+
--lit-icd-app ./objdir-clone/darwin-${{matrix.arch}}-lit-icd-${BUILD_VARIANT}/lit-icd-app \
537+
--microwave-oven-app ./objdir-clone/darwin-${{matrix.arch}}-microwave-oven-${BUILD_VARIANT}-unified/chip-microwave-oven-app \
538+
--rvc-app ./objdir-clone/darwin-${{matrix.arch}}-rvc-${BUILD_VARIANT}-unified/chip-rvc-app \
539+
--network-manager-app ./objdir-clone/darwin-${{matrix.arch}}-network-manager-${BUILD_VARIANT}/matter-network-manager-app \
540+
--energy-gateway-app ./objdir-clone/darwin-${{matrix.arch}}-energy-gateway-${BUILD_VARIANT}/chip-energy-gateway-app \
541+
--energy-management-app ./objdir-clone/darwin-${{matrix.arch}}-energy-management-${BUILD_VARIANT}/chip-energy-management-app \
532542
"
533543
534544
- name: Run purposeful failure tests using the python parser sending commands to chip-tool
@@ -537,13 +547,13 @@ jobs:
537547
"./scripts/tests/run_test_suite.py \
538548
--runner chip_tool_python \
539549
--include-tags PURPOSEFUL_FAILURE \
540-
--chip-tool ./out/darwin-${{matrix.arch}}-chip-tool${CHIP_TOOL_VARIANT}-${BUILD_VARIANT}/chip-tool \
550+
--chip-tool ./objdir-clone/darwin-${{matrix.arch}}-chip-tool${CHIP_TOOL_VARIANT}-${BUILD_VARIANT}/chip-tool \
541551
run \
542552
--iterations 1 \
543553
--expected-failures 3 \
544554
--keep-going \
545555
--test-timeout-seconds 120 \
546-
--all-clusters-app ./out/darwin-${{matrix.arch}}-all-clusters-${BUILD_VARIANT}/chip-all-clusters-app \
556+
--all-clusters-app ./objdir-clone/darwin-${{matrix.arch}}-all-clusters-${BUILD_VARIANT}/chip-all-clusters-app \
547557
"
548558
549559
- name: Uploading core files

0 commit comments

Comments
 (0)