Skip to content

Commit

Permalink
Enable integration test during coverage statistic (#37467)
Browse files Browse the repository at this point in the history
* Emable python tests during coverage

* Enable integration test during coverage statistic

* Update build_linux_gcc_coverage
  • Loading branch information
yufengwangca authored Feb 8, 2025
1 parent 7a2733e commit 9a18149
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ jobs:
run: scripts/run_in_build_env.sh "ninja -C ./out"
- name: Run Tests
run: scripts/tests/gn_tests.sh
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
# - name: Run Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: scripts/tools/codecoverage.sh
# - name: Upload Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: bash <(curl -s https://codecov.io/bash)
- name: Set up Build Without Detail Logging
run: scripts/build/gn_gen.sh --args="chip_detail_logging=false"
- name: Run Build Without Detail Logging
Expand Down Expand Up @@ -488,16 +480,16 @@ jobs:
build_linux_gcc_coverage:
name: Build on Linux (coverage)

runs-on: ubuntu-latest
env:
TSAN_OPTIONS: "halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"

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

container:
image: ghcr.io/project-chip/chip-build:104
volumes:
- "/:/runner-root-volume"
- "/tmp/log_output:/tmp/test_logs"
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"

steps:
- name: Checkout
Expand All @@ -506,6 +498,8 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: linux
bootstrap-log-name: bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}

- name: Run Build Coverage
run: ./scripts/build_coverage.sh
run: ./scripts/build_coverage.sh --yaml

11 changes: 10 additions & 1 deletion scripts/build_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,20 @@ if [ "$skip_gn" == false ]; then

scripts/run_in_build_env.sh \
"./scripts/tests/run_test_suite.py \
--runner chip_tool_python \
--exclude-tags MANUAL \
--exclude-tags FLAKY \
--exclude-tags IN_DEVELOPMENT \
--exclude-tags EXTRA_SLOW \
--exclude-tags SLOW \
--exclude-tags PURPOSEFUL_FAILURE \
--chip-tool \"$OUTPUT_ROOT/chip-tool\" \
--target TestUserLabelCluster \
run \
--iterations 1 \
--test-timeout-seconds 120 \
--all-clusters-app \"$OUTPUT_ROOT/chip-all-clusters-app\""
--all-clusters-app \"$OUTPUT_ROOT/chip-all-clusters-app\" \
"
fi

#
Expand Down

0 comments on commit 9a18149

Please sign in to comment.