Repository navigation
Fix the Downgrade job: require OrdinaryDiffEqNonlinearSolve 2.9.4 in the test environment - #61
Merged
Merged
Conversation
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>
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>
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.
Makes the new
Downgrade / Downgrade Testsjob pass by addingOrdinaryDiffEqNonlinearSolve2.9.4 as a test-only extra with a compat floor.Project.tomlonly; no source change.Failure: with every dependency at its lowest allowed version the job resolves and builds, then
GROUP=DAEfails with 76 passed, 4 errored intest/DAE/numeric_dae.jl(lines 20, 82, 96, 115):MethodError: no method matching Float64(::ForwardDiff.Dual{...}), raised atinitialize_dae.jl:824of OrdinaryDiffEqNonlinearSolve v2.8.0 (@. du_tmp = ifelse(differential_vars, x, _du)). That version allocates Dual-capable caches only whenalg_autodiff(integrator.alg) isa AutoForwardDiff; with our sparsejac_prototypeBDF picksAutoSparse(AutoForwardDiff), the check fails, the buffer staysVector{Float64}and receives Duals. v2.9.4 added_isforwarddiff_alg, which unwrapsAutoSparse(upstream tests the same case). Reproduced locally on Julia 1.10 with the realdowngrade.jlfrom julia-downgrade-compat v2 (modedeps, 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 raisedOrdinaryDiffEqBDFfloor because BDF's registry compat does not constrain this patch version, so raising BDF cannot force 2.9.4, andsrcnever 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