Skip to content

Increase coverage; lower codecov threshold to pass#12214

Merged
crusaderky merged 1 commit intodask:mainfrom
crusaderky:more-coverage
Jan 2, 2026
Merged

Increase coverage; lower codecov threshold to pass#12214
crusaderky merged 1 commit intodask:mainfrom
crusaderky:more-coverage

Conversation

@crusaderky
Copy link
Copy Markdown
Collaborator

@crusaderky crusaderky commented Jan 1, 2026

  • Lower coverage threshold from 90% to 88%, which is the achieved coverage downstream of this PR + Review _array_expr_enabled() #12217 (up from 87%).
    This makes new PRs green as long as they don't reduce coverage further.
  • Review and clean up CI scripts to run pytest with coverage
  • Add a bunch of coverage ignores

Comment on lines -54 to -57
env:
PARALLEL: "true"
COVERAGE: "true"
HDF5_USE_FILE_LOCKING: "FALSE"
Copy link
Copy Markdown
Collaborator Author

@crusaderky crusaderky Jan 1, 2026

Choose a reason for hiding this comment

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

I found these confusing, as it was unclear what actually used them - and in fact, somebody before me DID get confused. I moved them down to the relevant task.

Comment on lines -110 to -112
id: import_tests
env:
ARRAYEXPR: ${{ matrix.array-expr }}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

These did nothing

Comment on lines -43 to -47
env:
COVERAGE: "true"
PARALLEL: "true"
UPSTREAM_DEV: 1

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ditto

Copy link
Copy Markdown
Collaborator Author

@crusaderky crusaderky Jan 1, 2026

Choose a reason for hiding this comment

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

Changed

pytest dask --cov=dask

with

pytest dask --cov

as the former was occasionally starting to track coverage after imports, thus causing the almost totality of __init__.py files to be treated as a coverage miss.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 1, 2026

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

0 files   -      11  0 suites   - 11   0s ⏱️ - 3h 29m 40s
0 tests  -  18 161  0 ✅  -  16 945  0 💤  -  1 216  0 ❌ ±0 
0 runs   - 198 738  0 ✅  - 183 971  0 💤  - 14 767  0 ❌ ±0 

Results for commit a888dfe. ± Comparison against base commit 1e27392.

♻️ This comment has been updated with latest results.

Comment on lines +43 to +46
try:
return module.__version__
except AttributeError as e:
raise ImportError(f"Can't determine version for {module.__name__}") from e
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

psycopg2 is used by neither dask nor distributed AFAICT.

@crusaderky crusaderky force-pushed the more-coverage branch 6 times, most recently from c87a944 to 44cf520 Compare January 1, 2026 16:15
@crusaderky crusaderky changed the title Increase coverage % Increase coverage; lower codecov threshold to pass Jan 1, 2026
@crusaderky crusaderky marked this pull request as ready for review January 1, 2026 16:31
@crusaderky crusaderky merged commit 8d2cc26 into dask:main Jan 2, 2026
28 checks passed
@crusaderky crusaderky deleted the more-coverage branch January 2, 2026 16:10
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