Skip to content

chore(api-core): restore fail_under=100 in .coveragerc#17768

Merged
parthea merged 6 commits into
mainfrom
fix-api-core-coverage
Jul 20, 2026
Merged

chore(api-core): restore fail_under=100 in .coveragerc#17768
parthea merged 6 commits into
mainfrom
fix-api-core-coverage

Conversation

@ohmayr

@ohmayr ohmayr commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

fail_under was previously adjusted down to 99 because coverage reports included helper lines inside test files (tests/unit/test_operations_rest_client.py). In non-async_rest matrix sessions, conditional if GOOGLE_AUTH_AIO_INSTALLED: checks inside test runner files were flagged as un-executed lines, artificially dragging down total reported coverage.

  • Configured omit = tests/*, */tests/* under [report] in .coveragerc so coverage reporting evaluates threshold enforcement (fail_under) strictly against the google.api_core source library rather than test execution helper code.
  • Restored fail_under = 100 in .coveragerc.
    Towards Move back to 100% coverage standard #17459 🦕

@ohmayr
ohmayr requested a review from a team as a code owner July 20, 2026 08:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the coverage configuration in .coveragerc for packages/google-api-core. Specifically, it increases the minimum coverage threshold (fail_under) from 99% to 100% and configures the coverage report to omit test directories (tests/* and /tests/). There are no review comments to address, and I have no additional feedback to provide.

@parthea
parthea merged commit 1b5a3cd into main Jul 20, 2026
39 checks passed
@parthea
parthea deleted the fix-api-core-coverage branch July 20, 2026 17:53
hebaalazzeh pushed a commit that referenced this pull request Jul 20, 2026
`fail_under` was previously adjusted down to `99` because coverage
reports included helper lines inside test files
(`tests/unit/test_operations_rest_client.py`). In non-`async_rest`
matrix sessions, conditional `if GOOGLE_AUTH_AIO_INSTALLED:` checks
inside test runner files were flagged as un-executed lines, artificially
dragging down total reported coverage.

- Configured `omit = tests/*, */tests/*` under `[report]` in
`.coveragerc` so coverage reporting evaluates threshold enforcement
(`fail_under`) strictly against the `google.api_core` source library
rather than test execution helper code.
- Restored `fail_under = 100` in `.coveragerc`.
Towards #17459 🦕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants