diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bcccb51a49f8c9..24ef4842fbe76a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 @@ -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 @@ -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 + diff --git a/scripts/build_coverage.sh b/scripts/build_coverage.sh index c9d942e8454e4e..2cf3f13ee131ad 100755 --- a/scripts/build_coverage.sh +++ b/scripts/build_coverage.sh @@ -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 #