Repository navigation
Update ODEProblem internals assertions for current SciMLBase - #119
Merged
ChrisRackauckas merged 2 commits intoSep 26, 2026
Merged
ChrisRackauckas merged 2 commits into
ChrisRackauckas merged 2 commits into
Conversation
`ode_prob.f.f.f` assumed `AutoSpecialize` wraps `f` in two extra layers; since SciMLBase 3.53 the `ODEFunction` stores the raw function and specialization is installed solver-side, so `ode_prob.f.f` is `pde_odes!` directly. The test errored on `julia lts` and `julia '1'` with `typeof(pde_odes!) has no field 'f'`. Also replace `ode_prob.kwargs.data.callback` (deprecated on current Base: "use values(kwargs) instead of kwargs.data") with `ode_prob.kwargs[:callback]`. Verified locally: `test/ode_problem.jl` passes on Julia 1.10.12 and 1.13.0 with SciMLBase 3.53.3. 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
SciMLBase 3.53+ stores `f` unwrapped (one ODEFunction level), while SciMLBase 3.18-era versions wrap the specialization in a second ODEFunction. The downgrade CI lane resolves the old version, so a fixed number of `.f` dereferences fails there. Recurse until the raw function instead. 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: /home/crackauc/.local/share/devin/cli/summaries/history_4c9fddb81d834736.md
Member
Author
|
Status note: the Core failure is in |
Merged
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.
Summary
Core/ode_problem.jlerrors on all lanes (lts andjulia '1'):Since SciMLBase 3.53,
ODEFunction{iip, AutoSpecialize}stores the raw function — specialization is now installed solver-side — soode_prob.f.fispde_odes!directly and the third.faccesses a field that does not exist. Not a Julia 1.13 change; reproduced identically on Julia 1.10.12 and 1.13.0.Also replaces the deprecated
ode_prob.kwargs.data.callbackaccess (warns on current Base: "usevalues(kwargs)instead ofkwargs.data") withode_prob.kwargs[:callback].Test plan
test/ode_problem.jlpasses on Julia 1.10.12 and 1.13.0 with SciMLBase 3.53.3; on unfixed code thef.f.fassertion throwsFieldErroron both🤖 Generated with Devin CLI 3000.10.21 (model: SWE-2 Max). Session: local session,
/home/crackauc/.local/share/devin/cli/sessions.dbCI triage (2026-09-25)
Head commit
9e689a1, run https://github.com/SciML/FiniteVolumeMethod1D.jl/actions/runs/34707665764 vs basemain(fc4dead), run https://github.com/SciML/FiniteVolumeMethod1D.jl/actions/runs/35227686992:DomainError with -1.020934592e9insqrtduring Makie precompile,Failed to precompile Makie), erroringCore/dirichlet_source.jlvia CairoMakie. Third-party/env issue, untouched by this PR (onlytest/ode_problem.jlchanged).FieldError: type typeof(FiniteVolumeMethod1D.pde_odes!) has no field 'f'inCore/ode_problem.jl; head passes.Core/ode_problem.jl: Error During Test(sameFieldError); head passes.No merge with base needed: branch is one commit behind
main(fc4deadtouches only.github/workflows/Documentation.yml,git merge-treeshows a clean trivial merge, no conflicts). No code changes made — the single red lane is pre-existing onmainand unrelated to this PR, so there is nothing PR-caused to fix. Local verification: full Core group passes on Julia 1.10.12 with SciMLBase 3.56.0, includingCore/ode_problem.jl13/13;typosclean; Runic--checkclean on the changed file.🤖 Posted by an AI agent — harness: opencode 1.18.31 · model: opencode/muse-spark-1.3-contributor-free
Conversation: /home/crackauc/sandbox/fleet-master-jobs/nw-finitevolumemethod1d-119/log.txt
Risk assessment
test/ode_problem.jl; no production behavior, public-API, or SemVer change. Tests retain SciMLBase field inspection but introduce no private dependency helper. Function-identity and callback assertions remain intact; only the wrapper-depth assumption is relaxed. The description omits the recursive compatibility handling for older SciMLBase versions.9e689a1has 11 passing checks and one failure:tests / Core (julia 1, ubuntu-latest, x86) / Tests - Core (Julia 1). Its Makie precompilationDomainError with -1.020934592e9also occurs on default-branch commitsfc4deadandf2aab1e: pre-existing, no observed test regression. Core Julia 1 and lts fail on default with the function-wrapper assertion error and pass on head; Downgrade also passes. Logs compared: head, latest default, preceding default.🤖 Risk assessment posted by an AI agent (fleet master) — harness: Codex CLI 0.156.1 (Mac) / gpt-6-astra; dispatched by Claude Code head, model claude-opus-5-5[1m]
Conversation: local Claude Code session 3cd6500a-1f81-46b5-ac0b-c466e15b6a53 on Chris's Mac (session ID, no URL)