Skip to content

Commit

Permalink
Remove obsolate remote builder for code coverage (#24451)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored Jan 17, 2023
1 parent 2951733 commit 808b9fe
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 128 deletions.
31 changes: 31 additions & 0 deletions docs/guides/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,37 @@ gn desc out/host //src/lib outputs
gn desc out/host //src/lib --format=json
```

## Coverage

Code coverage scripts generate a report that details how much of the Matter SDK
source code has been executed, it also gives information on how often the Matter
SDK executes segments of code and produces a copy of the source file, annotated
with execution frequencies.

```
./scripts/build_coverage.sh
```

By default, Code coverage is performed at the unit testing level. Unit tests are
created by developers, thus giving them the best vantage from which to decide
what tests to include in unit testing. But you can extend the coverage test by
scope and ways of execution with the following parameters:

```
-c, --code Specify which scope to collect coverage data.
'core': collect coverage data from core stack in Matter SDK. --default
'clusters': collect coverage data from clusters implementation in Matter SDK.
'all': collect coverage data from Matter SDK.
-t, --tests Specify which tools to run the coverage check.
'unit': Run unit test to drive the coverage check. --default
'yaml': Run yaml test to drive the coverage check.
'all': Run unit & yaml test to drive the coverage check.
```

Also see the up-to-date unit testing coverage report of the Matter SDK
(collected daily) at:
[matter coverage](https://matter-build-automation.ue.r.appspot.com).

## Maintaining Matter

If you make any change to the GN build system, the next build will regenerate
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker/images/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# https://github.com/project-chip/connectedhomeip/issues/710
#
set -e
find "$(git rev-parse --show-toplevel)"/integrations/docker/images/ -name Dockerfile ! -path "*chip-cert-bins/*" ! -path "*chip-build-remote-builder/*" | while read -r dockerfile; do
find "$(git rev-parse --show-toplevel)"/integrations/docker/images/ -name Dockerfile ! -path "*chip-cert-bins/*" | while read -r dockerfile; do
pushd "$(dirname "$dockerfile")" >/dev/null
./build.sh "$@"
popd >/dev/null
Expand Down

This file was deleted.

24 changes: 0 additions & 24 deletions integrations/docker/images/chip-build-remote-builder/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions integrations/docker/images/chip-build-remote-builder/build.sh

This file was deleted.

This file was deleted.

70 changes: 0 additions & 70 deletions integrations/docker/images/chip-build-remote-builder/run.sh

This file was deleted.

0 comments on commit 808b9fe

Please sign in to comment.