Skip to content

Use DiffCache accessor in resize test - #4230

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-diffcache-resize-check
Aug 21, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-diffcache-resize-check

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

What changed

The Integrators II resize test now inspects the PreallocationTools.DiffCache through its exported, documented get_tmp accessor instead of calling length on the cache wrapper. PreallocationTools is declared explicitly as a test dependency with a 1.1.2 compat floor. Its MIT license matches this repository's MIT license.

Fixes #4188.

Please ignore this PR until it has been reviewed by @ChrisRackauckas.

Failing before

On unmodified master, this exact group command failed deterministically:

GROUP=Integrators_II ~/.juliaup/bin/julia +1.12 --startup-file=no --project=. -e 'using Pkg; Pkg.test()'
resize! with SplitODEProblem: Error During Test
Expression: length(integrator.f._func_cache) == 2
MethodError: no method matching length(::PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}})

Test Summary: | Pass Error Total
Resize Tests  |   89     1    90

The assertion was introduced by 6bc9d9a; its parent 9af4fde does not contain it.

Passing after

The same command now passes the discriminating suite twice:

Test Summary: | Pass Total    Time
Resize Tests  |   90    90 4m03.2s

The first full-group run continued through Cache Tests (214 pass, 4 existing broken) but reached the one-hour shell timeout in a later ode_add_steps_tests.jl test without a test failure. I restarted the exact command with the warm cache and a two-hour shell timeout; its final tail was:

Test Summary:   | Pass Total    Time
Add Steps Tests |    1     1 7m33.8s

Test Summary:             | Pass Broken Total     Time
IMEX Split Function Tests |   15      1    16 12m17.9s

5135.211344 seconds
Testing OrdinaryDiffEq tests passed

QA on the patched checkout:

GROUP=QA ~/.juliaup/bin/julia +1.12 --startup-file=no --project=. -e 'using Pkg; Pkg.test()'
Test Summary:     | Pass Total
Quality Assurance |   90    90
Testing OrdinaryDiffEq tests passed

Mechanical checks passed:

Runic: clean
typos over the diff: clean
git diff --check: clean

Not verified locally

I did not run the LTS or Julia-pre matrices locally. The exact current-Julia group and QA were run locally as above.

Copy link
Copy Markdown
Member Author

A fresh SciMLBase integration run on current dependency heads reproduces the same deterministic Integrators_II failure:

resize! with SplitODEProblem: Error
MethodError: no method matching length(::PreallocationTools.DiffCache{Vector{Float64}, Vector{Float64}})
89 passed, 1 errored

This is additional current-CI evidence for the public-get_tmp fix in this PR.

CI job: https://github.com/SciML/SciMLBase.jl/actions/runs/32365988822/job/96415493032

Co-Authored-By: Chris Rackauckas <[email protected]>
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the agent/fix-diffcache-resize-check branch from 6443a91 to f34cf23 Compare August 20, 2026 20:10
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 21, 2026 19:20
@ChrisRackauckas
ChrisRackauckas merged commit e6356cb into SciML:master Aug 21, 2026
110 of 128 checks passed
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.

Integrators_II resize test calls length on a DiffCache

2 participants