Skip to content

Use the local Callable alias instead of non-public Base.Callable - #1608

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:qa/base-callable-public
Sep 25, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:qa/base-callable-public

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

NonlinearProblem(::SteadyStateProblem) (added in #1603) checks lp isa Base.Callable. Base.Callable is not public, so the QA group's ExplicitImports all_qualified_accesses_are_public check errors on Julia ≥ 1.11. The master QA job is red: https://github.com/SciML/SciMLBase.jl/actions/runs/35839187919/job/107115590495. SciMLBase already defines const Callable = Union{Function, Type} (src/SciMLBase.jl:144) for exactly this reason, so the fix uses that alias. There is no behaviour change: it is the same Union.

Verification

Local, Julia 1.12.4, GROUP=QA julia --project -e 'using Pkg; Pkg.test()'. I set JULIA_CONDAPKG_BACKEND=Null JULIA_PYTHONCALL_EXE=/usr/bin/python3 because the CondaPkg-provisioned Python 3.14 on this machine fails to start. That problem is environmental and unrelated to this change.

Before (master 7013302):

all_qualified_accesses_are_public: Error During Test at .../SciMLTesting/s04jl/src/SciMLTesting.jl:1129
  - `Callable` is not public in `Base` but it was imported from `Base` at .../src/problems/nonlinear_problems.jl:256:24
QA                                             |  122      1    123  3m55.9s

After (this branch):

QA            |  123    123  4m06.3s
     Testing SciMLBase tests passed

typos and runic --check pass on the changed file.

CI

tests / QA (julia 1) passes on this PR and is red on master. These five checks fail on the PR and fail the same way on master run https://github.com/SciML/SciMLBase.jl/actions/runs/35839187718 / https://github.com/SciML/SciMLBase.jl/actions/runs/35839187919, so they are not caused by this change: Catalyst ReleaseTest, SymbolicIndexingInterface (lts), and SciMLSensitivity Core3, Core6 and Core7.

Not verified

  • I did not run the other test groups. The change swaps Base.Callable for an identical local Union.
  • The master SymbolicIndexingInterface group is also red (SCCNonlinearProblem has no field u0). That failure is separate, not touched here, and being investigated separately.

Please ignore this draft until reviewed by @ChrisRackauckas.

Risk assessment

  • Risk: low
  • Blast radius: one line in NonlinearProblem(::SteadyStateProblem); the type test is identical (Union{Function, Type}); no public API change.
  • Evidence: QA group fails before (122 pass / 1 error) and passes after (123/123), shown above.
  • Independent review: Devin CLI 3000.11.1 (swe-2-max), a different harness, rated it low risk, high confidence: VERDICT MERGE, no blocking findings. It confirmed Union{Function,Type} === Base.Callable, reran QA (123/123), and ExplicitImports on master vs PR differ only by Callable. Codex/Astra was rate-limited this cycle, so a workhorse reviewed this one-line diff (review: ~/sandbox/goals/qa-hygiene/reviews/SciMLBase/reviews/pr-1608/round1/REVIEW.md on amdci2). Non-blocking note from the review: the existing lp isa Callable dispatch in Add a lowered_problem slot to SteadyStateProblem #1603 does not treat callable structs as callables. That behaviour predates this PR and is unchanged here.
  • Merge: needs human review. The diff is low risk, but auto-merge requires a clean Opus or Astra review from a different harness than the author. The author is Claude Code, and Codex/Astra is rate-limited until 2026-09-26, so SWE-2 did the review.

🤖 Generated with Claude Code (Claude Code 2.1.280, model: claude-opus-5-5[1m])

https://claude.ai/code/session_01QgnmpexRwud38wrs3XvBfV

`Base.Callable` is not public, so the QA group's
all_qualified_accesses_are_public check fails on Julia >= 1.11. SciMLBase
already defines `const Callable = Union{Function, Type}` for this purpose.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01QgnmpexRwud38wrs3XvBfV
Claude-Session: https://claude.ai/code/session_01QgnmpexRwud38wrs3XvBfV
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 25, 2026 02:16
@ChrisRackauckas
ChrisRackauckas merged commit d57a756 into SciML:master Sep 25, 2026
65 of 73 checks passed
ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/SciMLBase.jl that referenced this pull request Sep 25, 2026
Master advanced with two commits affecting the moved recipe code and QA:

- SciML#1609 rewrites the plot idxs dimension check to use each transform's
  output arity (solplot_vecs_and_labels/integplot_vecs_and_labels lose
  their dims argument and assert on output length instead of idxs input
  arity, throwing ArgumentError on genuine mismatches). The core helper
  changes merge cleanly; the integplot_vecs_and_labels side is ported
  into SciMLBaseRecipesBaseExt where that function now lives, keeping
  the SciMLBase.-qualified call style.
- SciML#1608 replaces `Base.Callable` (non-public) with SciMLBase's local
  `Callable` alias, clearing the all_qualified_accesses_are_public QA
  failure seen on Julia 1.11+.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin (SWE-2 Max)
Agent-Model: SWE-2 Max
Agent-Session: /home/crackauc/sandbox/fleet-master-jobs/nw-scimlbase-1092/log.txt
ChrisRackauckas referenced this pull request Sep 26, 2026
Agent-Harness: Claude Code
Agent-Model: claude-opus-5-5[1m]
Agent-Session: local Claude Code session 3cd6500a-1f81-46b5-ac0b-c466e15b6a53 on Chris's Mac (session ID, no URL)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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