Skip to content

Narrow two stale backend_xfail markers in test_cosmicray.py - #996

Merged
mwcraig merged 1 commit into
astropy:mainfrom
mwcraig:narrow-cosmicray-xfails
Aug 25, 2026
Merged

Narrow two stale backend_xfail markers in test_cosmicray.py#996
mwcraig merged 1 commit into
astropy:mainfrom
mwcraig:narrow-cosmicray-xfails

Conversation

@mwcraig

@mwcraig mwcraig commented Aug 25, 2026

Copy link
Copy Markdown
Member

Part of #971 (stale backend_xfail markers).

On main 6724c8e, strict test_cosmicray.py shows 5 xpassed (failing narrowly at the scope of parametrised function-level markers). After this change: 0 xpassed.

The markers for test_cosmicray_median_masked_column and test_cosmicray_gain_correct_uncertainty_namespace were function-level and covered all parametrisations, but only a subset still fail on array-api-strict. In the former, masked_array cases pass because they never put data on device1. In the latter, gain_apply=False cases pass on all backends. Both markers are now narrowed to only the parametrisations that still fail.

The #958 astroscrappy-reason correction listed in #971 section 2 was already done on main in d33d7cf — no action needed for it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01S36ZzAAVXVm32vuTdtCQME

The markers for test_cosmicray_median_masked_column and
test_cosmicray_gain_correct_uncertainty_namespace were function-level
and covered all parametrisations, but only a subset still fail on
array-api-strict: masked_array cases pass in test_cosmicray_median_masked_column
because they never put data on device1, and gain_apply=False cases pass in
test_cosmicray_gain_correct_uncertainty_namespace on all backends. Narrow
the markers to only the parametrisations that still fail.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S36ZzAAVXVm32vuTdtCQME
@mwcraig
mwcraig force-pushed the narrow-cosmicray-xfails branch from 46cab77 to b5e4b5b Compare August 25, 2026 19:57
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #996   +/-   ##
=======================================
  Coverage   97.75%   97.75%           
=======================================
  Files           9        9           
  Lines        1780     1780           
=======================================
  Hits         1740     1740           
  Misses         40       40           
Flag Coverage Δ
dask 96.89% <ø> (ø)
jax 96.95% <ø> (ø)
numpy 97.64% <ø> (ø)

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 890f5aa into astropy:main Aug 25, 2026
19 checks passed
@mwcraig
mwcraig deleted the narrow-cosmicray-xfails branch August 25, 2026 20:31
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