Skip to content

Upload coverage from the jax and dask CI jobs - #985

Merged
mwcraig merged 1 commit into
astropy:mainfrom
mwcraig:ci-array-api-coverage
Aug 23, 2026
Merged

Upload coverage from the jax and dask CI jobs#985
mwcraig merged 1 commit into
astropy:mainfrom
mwcraig:ci-array-api-coverage

Conversation

@mwcraig

@mwcraig mwcraig commented Aug 23, 2026

Copy link
Copy Markdown
Member

Coverage is currently uploaded only from ubuntu-py312-coverage, which runs with numpy. Code that executes only under a non-numpy array namespace — the CCDData wrapper classes in _ccddata_wrapper_for_array_api.py, spec-only fallbacks like the one in #978 — is therefore never seen by codecov, and codecov/patch fails on every array-API PR (#975, #978, #980 are red only for this reason).

This adds the existing cov tox factor to the jax job (py313-jax-cov) and the dask escape-baseline job (py312-alldeps-dask-enforce-cov) and uploads from those as well. Uploads are tagged with codecov flags (numpy, jax, dask) so the per-backend reports can be told apart; codecov merges them per commit.

Verified locally: tox -e py313-jax-cov runs the full suite (377 passed, 40 skipped, 9 xfailed) and writes coverage.xml with _ccddata_wrapper_for_array_api.py at 85% line coverage — that file is ~0% on the numpy job.

Intended to merge before #975 / #978 / #980 so they can be rebased onto it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RQMJZUaaxfqGDk41GLSaFK

Coverage was uploaded from the numpy-only coverage job, so code that
only runs under a non-numpy array namespace (the CCDData wrapper
classes, spec-only fallbacks such as the nanmedian fallback) was
reported as uncovered and codecov/patch failed on every array-API PR.

Add the existing ``cov`` tox factor to the jax job and the dask
escape-baseline job and upload from those too, tagged with per-backend
codecov flags (numpy, jax, dask).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RQMJZUaaxfqGDk41GLSaFK
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.13%. Comparing base (02393ae) to head (c2ce2e2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #985      +/-   ##
==========================================
+ Coverage   96.01%   96.13%   +0.12%     
==========================================
  Files           8        8              
  Lines        1655     1655              
==========================================
+ Hits         1589     1591       +2     
+ Misses         66       64       -2     
Flag Coverage Δ
dask 95.21% <ø> (?)
jax 95.33% <ø> (?)
numpy 96.01% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mwcraig
mwcraig merged commit 19b652c into astropy:main Aug 23, 2026
19 checks passed
@mwcraig
mwcraig deleted the ci-array-api-coverage branch August 23, 2026 14:32
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.

1 participant