Skip to content

Fix the Downgrade job: require OrdinaryDiffEqNonlinearSolve 2.9.4 in the test environment - #61

Merged
xtalax merged 2 commits into
masterfrom
fix/downgrade-floors
Nov 5, 2026
Merged

xtalax merged 2 commits into
masterfrom
fix/downgrade-floors

Conversation

@xtalax-droid

Copy link
Copy Markdown
Collaborator

Makes the new Downgrade / Downgrade Tests job pass by adding OrdinaryDiffEqNonlinearSolve 2.9.4 as a test-only extra with a compat floor. Project.toml only; no source change.

Failure: with every dependency at its lowest allowed version the job resolves and builds, then GROUP=DAE fails with 76 passed, 4 errored in test/DAE/numeric_dae.jl (lines 20, 82, 96, 115): MethodError: no method matching Float64(::ForwardDiff.Dual{...}), raised at initialize_dae.jl:824 of OrdinaryDiffEqNonlinearSolve v2.8.0 (@. du_tmp = ifelse(differential_vars, x, _du)). That version allocates Dual-capable caches only when alg_autodiff(integrator.alg) isa AutoForwardDiff; with our sparse jac_prototype BDF picks AutoSparse(AutoForwardDiff), the check fails, the buffer stays Vector{Float64} and receives Duals. v2.9.4 added _isforwarddiff_alg, which unwraps AutoSparse (upstream tests the same case). Reproduced locally on Julia 1.10 with the real downgrade.jl from julia-downgrade-compat v2 (mode deps, the CI skip list). Bisect of the floor on GROUP=DAE: 2.8.0 (the CI floor) 76 passed / 4 errored; 2.9.3 76 / 4 errored; 2.9.4 91 passed / 0 errored (2.9.0 to 2.9.2 share the old check by reading the source; not run).

Fix: OrdinaryDiffEqNonlinearSolve = "2.9.4" in [compat], the package in [extras] and in [targets].test. A test extra and not a raised OrdinaryDiffEqBDF floor because BDF's registry compat does not constrain this patch version, so raising BDF cannot force 2.9.4, and src never depends on OrdinaryDiffEqNonlinearSolve. Test-only and reversible.

Local results in the downgrade setup (allow_reresolve=false): DAE, Core, Kernels, Assembly, Solution, Space, WeakForm, Integration, Convergence, Frontend, NavierStokes and QA pass. Not run: MOLComparison and Library (opt-in), Perf (Julia 1 only). Codex approved.


🤖 Posted by an AI agent · harness: Claude Code 2.1.318 · model: claude-sonnet-5-5
Review: unreviewed
Session: 43e03fde-3384-4386-bae9-03e81f19ba7c

At OrdinaryDiffEqNonlinearSolve <= 2.9.3 the DAE initializer decides whether to use Dual-capable DiffCaches with alg_autodiff(alg) isa AutoForwardDiff, which is false for the AutoSparse(AutoForwardDiff) that BDF picks with a sparse jac_prototype; it then writes ForwardDiff Duals into a Vector{Float64} (initialize_dae.jl:824). v2.9.4 introduced _isforwarddiff_alg, which unwraps AutoSparse. The package never depends on OrdinaryDiffEqNonlinearSolve, so the floor goes in the test extras, where the Downgrade workflow's merged min-resolution picks it up.

Agent-Harness: Claude Code 2.1.318
Agent-Model: claude-sonnet-5-5
Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c
Agent-Review: unreviewed
Co-authored-by: Claude Code <agent@noreply.juliahub.com>
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
master 6d4e3a4... master / 6d4e3a4...
construction/heat P1 10x10 8.06 ± 0.72 ms 8.43 ± 0.87 ms 0.955 ± 0.13
construction/heat P1 20x20 11.4 ± 1.5 ms 12.1 ± 1.2 ms 0.938 ± 0.15
time_to_load 5.68 ± 0.033 s 5.72 ± 0.12 s 0.993 ± 0.022
Memory benchmarks
master 6d4e3a4... master / 6d4e3a4...
construction/heat P1 10x10 0.0375 M allocs: 2.01 MB 0.0375 M allocs: 2.01 MB 1
construction/heat P1 20x20 0.0624 M allocs: 4.31 MB 0.0624 M allocs: 4.31 MB 1
time_to_load 0.2 k allocs: 11.8 kB 0.2 k allocs: 11.8 kB 1

Pkg.test(coverage=true) makes the child process rebuild the precompiled specializations: with the workload 33.0 s against 34.6 s without on Julia 1.12 and 18.1 s against 22.6 s on 1.10, against 0.6 s against 6 to 13 s uninstrumented on both versions (--check-bounds=yes alone costs nothing). The Downgrade job runs with coverage, so it failed this testset; gate it with INSTRUMENTED like the other timing gates.

Agent-Harness: Claude Code 2.1.318
Agent-Model: claude-sonnet-5-5
Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c
Agent-Review: unreviewed
Co-authored-by: Claude Code <agent@noreply.juliahub.com>
@xtalax
xtalax merged commit ff38881 into master Nov 5, 2026
45 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.

2 participants