Skip to content

Fix test failures on Julia 1.13 and 1.14 - #275

Merged
andreasnoack merged 2 commits into
masterfrom
an/explicit-imports
Nov 22, 2026
Merged

andreasnoack merged 2 commits into
masterfrom
an/explicit-imports

Conversation

@andreasnoack

@andreasnoack andreasnoack commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

This fixes the two issues that currently make CI fail on the 1 and pre jobs (see e.g. #274).

Julia 1.13: ExplicitImports tests. adjoint and transpose are owned by Base and are no longer public in LinearAlgebra, so

  • check_all_explicit_imports_via_owners complains that the names are imported from a module other than their owner, and
  • check_all_explicit_imports_are_public complains that the names are not public in LinearAlgebra.

Both functions are exported from Base, so they are simply dropped from the using LinearAlgebra: ... list. They are only called, not extended, in src/linalg.jl.

Julia 1.14: Base.setindex_shape_check. The internal function now takes the shape as a tuple instead of as separate arguments, which made copy(::DArray) throw a MethodError on 1.14.0-beta1. A small version-dependent wrapper, _setindex_shape_check, calls whichever form the running Julia version has.

Locally, the full test suite passes on Julia 1.11.8, 1.13.3 and a recent nightly (1.15.0-DEV.625) with these changes.

This pull request was written by generative AI (Claude).

They are owned by Base and no longer public in LinearAlgebra on
Julia 1.13, which makes the ExplicitImports tests fail.
From Julia 1.14, the internal function takes the shape as a tuple
instead of as separate arguments.
@andreasnoack andreasnoack changed the title Don't import adjoint and transpose from LinearAlgebra Fix test failures on Julia 1.13 and 1.14 Nov 22, 2026
@andreasnoack
andreasnoack merged commit df5444d into master Nov 22, 2026
15 checks passed
@andreasnoack
andreasnoack deleted the an/explicit-imports branch November 22, 2026 13:06
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