Skip to content

fix(spanner-dbapi): set realistic coverage threshold#17581

Draft
chalmerlowe wants to merge 1 commit into
mainfrom
fix/spanner-dbapi-coverage-threshold
Draft

fix(spanner-dbapi): set realistic coverage threshold#17581
chalmerlowe wants to merge 1 commit into
mainfrom
fix/spanner-dbapi-coverage-threshold

Conversation

@chalmerlowe

@chalmerlowe chalmerlowe commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description

This PR addresses a coverage evaluation failure in google-cloud-spanner-dbapi-driver by setting a realistic fail_under threshold.

Issue Details

A recent change to the global CI/CD pipeline (unittest.yml) enforces a default coverage threshold of 99% for modified packages that do not define their own fail_under in .coveragerc.

This package historically lacked an explicit threshold in its configuration, and its current coverage sits around 89% (with some modules like errors.py at 64%). Consequently, any modification triggering checks fails against this new 99% default, even though coverage hasn't regressed.

Solution

Explicitly set fail_under = 85 in packages/google-cloud-spanner-dbapi-driver/.coveragerc to match historical reality while maintaining a safety net against regression.

@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 .coveragerc configuration file for the google-cloud-spanner-dbapi-driver package. Specifically, it adds a minimum coverage threshold of 85% (fail_under = 85) and updates the path pattern for omitting the __init__.py file to support wildcard matching. There are no review comments, and we have no additional feedback to provide.

@chalmerlowe chalmerlowe force-pushed the fix/spanner-dbapi-coverage-threshold branch from e0a149c to 2faf6d8 Compare June 25, 2026 22:33
@chalmerlowe chalmerlowe force-pushed the fix/spanner-dbapi-coverage-threshold branch from 2faf6d8 to c45e212 Compare June 25, 2026 22:55
@chalmerlowe chalmerlowe changed the title fix(spanner-dbapi): set realistic coverage threshold and fix omit paths fix(spanner-dbapi): set realistic coverage threshold Jun 25, 2026
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