Skip to content

Commit 9a18149

Browse files
authored
Enable integration test during coverage statistic (#37467)
* Emable python tests during coverage * Enable integration test during coverage statistic * Update build_linux_gcc_coverage
1 parent 7a2733e commit 9a18149

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.github/workflows/build.yaml

+8-14
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ jobs:
8181
run: scripts/run_in_build_env.sh "ninja -C ./out"
8282
- name: Run Tests
8383
run: scripts/tests/gn_tests.sh
84-
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
85-
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
86-
# - name: Run Code Coverage
87-
# if: ${{ contains('main', env.BUILD_TYPE) }}
88-
# run: scripts/tools/codecoverage.sh
89-
# - name: Upload Code Coverage
90-
# if: ${{ contains('main', env.BUILD_TYPE) }}
91-
# run: bash <(curl -s https://codecov.io/bash)
9284
- name: Set up Build Without Detail Logging
9385
run: scripts/build/gn_gen.sh --args="chip_detail_logging=false"
9486
- name: Run Build Without Detail Logging
@@ -488,16 +480,16 @@ jobs:
488480
build_linux_gcc_coverage:
489481
name: Build on Linux (coverage)
490482

491-
runs-on: ubuntu-latest
483+
env:
484+
TSAN_OPTIONS: "halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
485+
492486
if: github.actor != 'restyled-io[bot]'
487+
runs-on: ubuntu-latest
493488

494489
container:
495490
image: ghcr.io/project-chip/chip-build:104
496-
volumes:
497-
- "/:/runner-root-volume"
498-
- "/tmp/log_output:/tmp/test_logs"
499491
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
500-
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
492+
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
501493

502494
steps:
503495
- name: Checkout
@@ -506,6 +498,8 @@ jobs:
506498
uses: ./.github/actions/checkout-submodules-and-bootstrap
507499
with:
508500
platform: linux
501+
bootstrap-log-name: bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
509502

510503
- name: Run Build Coverage
511-
run: ./scripts/build_coverage.sh
504+
run: ./scripts/build_coverage.sh --yaml
505+

scripts/build_coverage.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,20 @@ if [ "$skip_gn" == false ]; then
161161

162162
scripts/run_in_build_env.sh \
163163
"./scripts/tests/run_test_suite.py \
164+
--runner chip_tool_python \
165+
--exclude-tags MANUAL \
166+
--exclude-tags FLAKY \
167+
--exclude-tags IN_DEVELOPMENT \
168+
--exclude-tags EXTRA_SLOW \
169+
--exclude-tags SLOW \
170+
--exclude-tags PURPOSEFUL_FAILURE \
164171
--chip-tool \"$OUTPUT_ROOT/chip-tool\" \
172+
--target TestUserLabelCluster \
165173
run \
166174
--iterations 1 \
167175
--test-timeout-seconds 120 \
168-
--all-clusters-app \"$OUTPUT_ROOT/chip-all-clusters-app\""
176+
--all-clusters-app \"$OUTPUT_ROOT/chip-all-clusters-app\" \
177+
"
169178
fi
170179

171180
#

0 commit comments

Comments
 (0)