Repository navigation
Fix NonlinearSolveBase QA: import ArrayInterface via its owner in SparseArrays ext - #1035
Merged
ChrisRackauckas merged 1 commit intoJul 11, 2026
Conversation
…rseArrays ext GROUP=QA for lib/NonlinearSolveBase errors on master (introduced by 7ff3239, PR SciML#1025, which added Utils.structural_sparse and Utils.is_extension_loaded to the SparseArrays extension): - all_qualified_accesses_via_owners: `ArrayInterface` accessed via `NonlinearSolveBase` instead of its owner - all_qualified_accesses_are_public: `ArrayInterface`, `is_extension_loaded`, `structural_sparse` non-public accesses Fix the first by importing ArrayInterface directly (it is a hard dep of NonlinearSolveBase; the ForwardDiff/LinearSolve extensions already do `using ArrayInterface: ArrayInterface`), so `findstructralnz` is now reached through its owner, where it is declared public (7.26+). `is_extension_loaded` and `structural_sparse` are NonlinearSolveBase's own internal extension hooks defined via qualified `Utils.` names, the same pattern as the sibling hooks (make_sparse, condition_number, maybe_symmetric, ...) that already sit in the qa.jl all_qualified_accesses_are_public ignore list; add them there alongside. Co-Authored-By: Claude Fable 5 <[email protected]> Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas
marked this pull request as ready for review
July 11, 2026 09:24
ChrisRackauckas-Claude
pushed a commit
to ChrisRackauckas-Claude/NonlinearSolve.jl
that referenced
this pull request
Jul 11, 2026
…_for_refactorization (SciML#1038); pick up the NLSB QA fix (SciML#1035) construct_linear_solver's alias kwarg now defaults to nothing, deferring to SciML#1038's alias_A_for_refactorization trait (owned-copy refactorization buffer); an explicit LinearAliasSpecifier from a caller that owns A/b outright (the inverse-Jacobian workspace) skips the defensive copy. Co-Authored-By: Claude Fable 5 <[email protected]> Co-Authored-By: Chris Rackauckas <[email protected]>
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.
Note: This PR should be ignored until reviewed by @ChrisRackauckas.
Problem
GROUP=QA julia +1.11 -e 'using Pkg; Pkg.activate("lib/NonlinearSolveBase"); Pkg.test()'errors on master (reproduced on 3f64085 with Julia 1.11.9, SciMLTesting 1.8.0, ExplicitImports 1.15.0, Aqua 0.8.16, ArrayInterface 7.27.0): 15 passed, 2 errored.Bisect
Introduced by 7ff3239 ("ArcLengthContinuation: consume jac/jac_prototype/sparsity/colorvec", PR #1025), which added
Utils.structural_sparse(containing theNonlinearSolveBase.ArrayInterface.findstructralnzaccess) andUtils.is_extension_loaded(::Val{:SparseArrays})to the SparseArrays extension. Verified with today's dependency versions: the parent commit f9444fa passes QA 17/17 in the identical environment, so this is a repo regression, not a new ExplicitImports/SciMLTesting release.Fix
ext/NonlinearSolveBaseSparseArraysExt.jl:using ArrayInterface: ArrayInterface(a hard dep of NonlinearSolveBase; the ForwardDiff and LinearSolve extensions already import it this way) and callArrayInterface.findstructralnzdirectly.findstructralnzis declared public in ArrayInterface 7.26+, so this satisfies both the owner and publicness checks with no ignore entry.test/qa/qa.jl: add:is_extension_loadedand:structural_sparseto the existingall_qualified_accesses_are_publicper-name ignore list. These are NonlinearSolveBase's own internal extension hooks defined via qualifiedUtils.names — exactly the pattern of the sibling hooks (make_sparse,condition_number,maybe_symmetric,maybe_pinv!!_workspace,sparse_or_structured_prototype) already on that list. No checks weakened, noei_broken.Verification (run locally on this branch)
GROUP=QANonlinearSolveBase: 17/17 pass ("Testing NonlinearSolveBase tests passed")GROUP=CoreNonlinearSolveBase: all pass ("Testing NonlinearSolveBase tests passed")Changed files were Runic-formatted.
🤖 Generated with Claude Code