Repository navigation
Fix test failures on Julia 1.13 and 1.14 - #275
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the two issues that currently make CI fail on the
1andprejobs (see e.g. #274).Julia 1.13:
ExplicitImportstests.adjointandtransposeare owned byBaseand are no longer public inLinearAlgebra, socheck_all_explicit_imports_via_ownerscomplains that the names are imported from a module other than their owner, andcheck_all_explicit_imports_are_publiccomplains that the names are not public inLinearAlgebra.Both functions are exported from
Base, so they are simply dropped from theusing LinearAlgebra: ...list. They are only called, not extended, insrc/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 madecopy(::DArray)throw aMethodErroron 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).