Skip to content

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Sep 10, 2025

  • Define only single-argument methods for size and axes.

    • On Nightly Julia, this change prevents two sysimage invalidations, triggered by defining two-argument axes.
  • Do not add the eltype method.

    • New types are not supposed to define eltype on instances.

    • New subtypes of AbstractArray are not supposed to add methods to eltype.

On nightly Julia, this change prevents two sysimage invalidations
triggered by defining two-argument `axes`.
* new types are not supposed to define `eltype` on instances

* new subtypes of `AbstractArray` are not supposed to add methods to
  `eltype`
Copy link

codecov bot commented Sep 10, 2025

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #649   +/-   ##
=======================================
  Coverage   84.02%   84.02%           
=======================================
  Files          12       12           
  Lines        9298     9298           
=======================================
  Hits         7813     7813           
  Misses       1485     1485           

☔ 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.

Copy link
Contributor

@jishnub jishnub left a comment

Choose a reason for hiding this comment

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

Please use a more descriptive title

@nsajko nsajko changed the title ReadOnly fixes ReadOnly fixes: prevent defining some methods of size, axes, eltype Sep 14, 2025
@nsajko nsajko changed the title ReadOnly fixes: prevent defining some methods of size, axes, eltype ReadOnly fixes: prevent adding some methods of size, axes, eltype Sep 14, 2025
@rayegun rayegun merged commit 74aaeeb into JuliaSparse:main Sep 14, 2025
10 checks passed
@nsajko nsajko deleted the invalidations_fixes_readonly branch September 14, 2025 20:54
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.

3 participants