Skip to content

Drop / and \ from the LinearAlgebra import - #208

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

ChrisRackauckas merged 1 commit into
SciML:mainfrom
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 / and \ are imported from LinearAlgebra, while their owner is Base:

  • all_explicit_imports_via_owners: `/` and `\` have owner `Base` but were imported from `LinearAlgebra`
  • all_explicit_imports_are_public: `/` and `\` are not public in `LinearAlgebra`

Failing run: https://github.com/SciML/ModelOrderReduction.jl/actions/runs/34675969798

Both names are only called, never extended, and Base exports them — dropped from the import list.

Note: the Downgrade workflow failure on this branch is the known OrdinaryDiffEqDefault/OrdinaryDiffEqCore compat issue that was fixed in the General registry (JuliaRegistries/General#167989) after this run raced the registration — a re-run should pick up consistent bounds.

Test plan

  • GROUP=QA julia --project -e 'using Pkg; Pkg.test()' passes 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 `/` and `\` are owned and publicly exported by `Base`,
so ExplicitImports flags the explicit `LinearAlgebra` import on the
`via_owners` check (owner is `Base`) and the
`all_explicit_imports_are_public` check (not public in LinearAlgebra).
The names are only called, never extended, and `Base` exports them.
Fixes the QA job on the `julia '1'` lane (now 1.13.0).

Verified locally: `GROUP=QA julia --project -e 'using Pkg; Pkg.test()'`
passes 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 2f2abf2 into SciML:main Sep 12, 2026
13 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 13, 2026
- Add AirspeedVelocity benchmarking CI (#207)
- Drop `/` and `\` from the `LinearAlgebra` import (#208)



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