Skip to content

Commit

Permalink
Exclude conftest.py files from enforcing changed-code coverage (#6738)
Browse files Browse the repository at this point in the history
* Exclude conftest.py files from enforcing changed-code coverage

Avoid spurious CI failure due to missing coverage of changed conftest.py lines.
conftest.py configures the pytest session.  It is tricky and not worthwhile to
ensure it is test-covered.

* Typo - missing comma
  • Loading branch information
pavoljuhas authored Sep 20, 2024
1 parent 484df6f commit d15549c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev_tools/incremental_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from dev_tools import env_tools, shell_tools

IGNORED_FILE_PATTERNS = [
r'^(.+/)?conftest\.py$',
r'^dev_tools/.+', # Environment-heavy code.
r'^.+_pb2(_grpc)?\.py$', # Auto-generated protobuf code.
r'^(.+/)?setup\.py$', # Installation code.
Expand Down

0 comments on commit d15549c

Please sign in to comment.