Skip to content

Import adjoint and copyto! from Base rather than LinearAlgebra - #345

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-linearalgebra-imports-1.13
Sep 12, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-linearalgebra-imports-1.13

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Summary

The QA job on the julia '1' lane (Julia 1.13.0) fails two ExplicitImports checks because adjoint and copyto! are imported from LinearAlgebra, while their owner is Base:

  • all_explicit_imports_via_owners: `adjoint`/`copyto!` have owner `Base` but were imported from `LinearAlgebra`
  • all_explicit_imports_are_public: `adjoint`/`copyto!` are not public in `LinearAlgebra`

Failing run: https://github.com/SciML/DiffEqCallbacks.jl/actions/runs/34655431845

They are now imported from Base. axpy!, diagind, and mul! are still owned by LinearAlgebra and stay in that import.

Test plan

  • test/qa/qa.jl passes 20/20 on Julia 1.13.0 (the two EI checks errored in CI on the unfixed code)
  • CI

🤖 Generated with Devin CLI 3000.10.21 (model: SWE-2 Max). Session: local session, /home/crackauc/.local/share/devin/cli/sessions.db

On Julia 1.13 these names are owned and publicly exported by `Base`,
so ExplicitImports flags the `LinearAlgebra` import on the
`via_owners` check (owner is `Base`) and the
`all_explicit_imports_are_public` check (not public in LinearAlgebra).
`axpy!`, `diagind`, and `mul!` remain owned by `LinearAlgebra` and are
unchanged. Fixes the QA job on the `julia '1'` lane (now 1.13.0).

Verified locally: `test/qa/qa.jl` passes 20/20 on Julia 1.13.0.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Devin <noreply@cognition.ai>
Agent-Harness: Devin CLI 3000.10.21
Agent-Model: SWE-2 Max
Agent-Session: local session, /home/crackauc/.local/share/devin/cli/sessions.db
@ChrisRackauckas
ChrisRackauckas merged commit ebcff33 into SciML:master Sep 12, 2026
21 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 13, 2026
- Drop stale [compat] majors older than one year (#341)
- compat: drop the unregistered SafeTestsets 1.x major (#342)
- Add 32-bit Core CI lane via test_groups.toml (#343)
- Add AirspeedVelocity benchmarking CI (#344)
- Import `adjoint` and `copyto!` from `Base` rather than `LinearAlgebra` (#345)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

2 participants