Skip to content

Fix @test_broken tests that now pass on Julia v1.12.6#253

Closed
mtfishman wants to merge 2 commits intomainfrom
mf/fix-test-broken
Closed

Fix @test_broken tests that now pass on Julia v1.12.6#253
mtfishman wants to merge 2 commits intomainfrom
mf/fix-test-broken

Conversation

@mtfishman
Copy link
Copy Markdown
Member

Summary

  • Julia v1.12.6 fixed type inference for abstract array dispatch (JuliaLang/julia#57582), which makes JLArray-backed BlockSparseMatrix operations (eig, svd, qr, iszero on views) work correctly.
  • Replaced if arrayt === Array ... else @test_broken branches with @test begin ... end broken = gpu_broken where gpu_broken = arrayt ≠ Array && VERSION < v"1.12.6", so tests pass on v1.12.6+ and remain broken on older versions.
  • Bumped version to 0.10.36.

Test plan

  • test_abstract_blocktype.jl passes (252/252, 0 errors)
  • test_map.jl passes (2742/2742, 0 errors)
  • CI passes on Julia v1.10, v1.12.5, and v1.12.6

🤖 Generated with Claude Code

Julia v1.12.6 fixed type inference for abstract array dispatch
(JuliaLang/julia#57582), which makes JLArray-backed BlockSparseMatrix
operations (eig, svd, qr, iszero on views) work correctly. Use
`broken = gpu_broken` with a VERSION check so tests remain broken
on older Julia versions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 5.83%. Comparing base (b89c568) to head (ef95471).

❗ There is a different number of reports uploaded between BASE (b89c568) and HEAD (ef95471). Click for more details.

HEAD has 9 uploads less than BASE
Flag BASE (b89c568) HEAD (ef95471)
docs 4 1
6 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #253       +/-   ##
==========================================
- Coverage   71.94%   5.83%   -66.12%     
==========================================
  Files          36      35        -1     
  Lines        2032    1971       -61     
==========================================
- Hits         1462     115     -1347     
- Misses        570    1856     +1286     
Flag Coverage Δ
docs 5.83% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 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.

The JLArray operations still fail in fresh Pkg.test() processes on
Julia v1.12.6; they only succeeded in a warmed REPL session. Drop the
VERSION < v"1.12.6" condition and keep gpu_broken = arrayt ≠ Array.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mtfishman
Copy link
Copy Markdown
Member Author

Closing — this was addressing the wrong failure. The actual regression is @constinferred blocktype(a) in test_basics.jl:177 on Julia v1.12.6.

@mtfishman mtfishman closed this Apr 16, 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.

1 participant