From b2714e19d536c8533ba59149bb489a6560915237 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 11 Aug 2021 11:53:26 -0700 Subject: [PATCH] codecov: ignore generated and non-essential code 1. Ignore debugging/testing commands. 2. Ignore build related code. 3. Ignore all generated "mocks" code. 4. Ignore all *_gen.go files. 5. Ignore old actors shims. --- .codecov.yml | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 1967f6eca..06c43d0b8 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,19 +1,29 @@ comment: off ignore: - - "**/cbor_gen.go" - - "api/test/**/*" - - "api/test/*" - - "gen/**/*" - - "gen/*" - - "cmd/lotus-shed/*" - - "cmd/tvx/*" - - "cmd/lotus-pcr/*" - - "cmd/tvx/*" - - "cmd/lotus-chainwatch/*" - - "cmd/lotus-health/*" - - "cmd/lotus-fountain/*" - - "cmd/lotus-townhall/*" - - "cmd/lotus-stats/*" - - "cmd/lotus-pcr/*" + # Auto generated + - "**_gen.go$" + - "**/mocks_full.go$" + - "^chain/actors/builtin/[^/]*/(message|state|v)[0-4]\\.go$" # We test the latest version only. + # Tests + - "api/test/**" + - "conformance/**" + # Generators + - "gen/**" + - "chain/actors/agen/**" + # Non-critical utilities + - "cmd/lotus-shed/**" + - "cmd/tvx/**" + - "cmd/lotus-pcr/**" + - "cmd/tvx/**" + - "cmd/lotus-health/**" + - "cmd/lotus-fountain/**" + - "cmd/lotus-stats/**" + - "cmd/lotus-pcr/**" + - "cmd/lotus-sim/**" + - "cmd/lotus-bench/**" + - "cmd/lotus-seed/**" + - "cmd/chain-noise/**" + - "api/docgen/**" + - "api/docgen-openrpc/**" github_checks: annotations: false