From fe78a5c4fcabfc9713150d2b1c6c3f48fd31d373 Mon Sep 17 00:00:00 2001 From: t Date: Wed, 4 Nov 2026 23:40:18 +0000 Subject: [PATCH 1/2] Raise DAE test floor: OrdinaryDiffEqNonlinearSolve >= 2.9.4 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 --- Project.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 6a2a7131..3ba326c5 100644 --- a/Project.toml +++ b/Project.toml @@ -40,6 +40,7 @@ ModelingToolkit = "11.34" LinearSolve = "5" NonlinearSolveFirstOrder = "2.10" OrdinaryDiffEqBDF = "2.4" +OrdinaryDiffEqNonlinearSolve = "2.9.4" PDEBase = "0.1.40" PrecompileTools = "1.2.1" Random = "1" @@ -59,10 +60,11 @@ FerriteGmsh = "4f95f4f8-b27c-4ae5-9a39-ea55e634e36b" Gmsh = "705231aa-382f-11e9-3f0c-b7cb4346fdeb" LinearSolve = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" OrdinaryDiffEqBDF = "6ad6398a-0878-4a85-9266-38940aa047c8" +OrdinaryDiffEqNonlinearSolve = "127b3ac7-2247-4354-8eb6-78cf4e7c58e8" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["AllocCheck", "FerriteGmsh", "Gmsh", "LinearSolve", "OrdinaryDiffEqBDF", "Random", "SafeTestsets", "SciMLTesting", "Test"] +test = ["AllocCheck", "FerriteGmsh", "Gmsh", "LinearSolve", "OrdinaryDiffEqBDF", "OrdinaryDiffEqNonlinearSolve", "Random", "SafeTestsets", "SciMLTesting", "Test"] From 6d4e3a452bcb2adcf3f895cb1beb86cff2d725d3 Mon Sep 17 00:00:00 2001 From: t Date: Thu, 5 Nov 2026 01:27:44 +0000 Subject: [PATCH 2/2] Skip the cold-latency gates under coverage instrumentation 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 --- test/Perf/perf.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Perf/perf.jl b/test/Perf/perf.jl index ca1e2477..b66486f0 100644 --- a/test/Perf/perf.jl +++ b/test/Perf/perf.jl @@ -298,6 +298,8 @@ end @testset "cold latency: time to first assembly with and without the precompile workload" begin with, without = time_to_first_assembly(; workload = true), time_to_first_assembly(; workload = false) @info "time to first assembly in a fresh process (s)" with without ratio = with / without - @test with ≤ 0.5 * without # measured 0.51 s against 14.4 s (0.04); slack for a busy box - @test with ≤ 10.0 + # Coverage instrumentation (the child inherits it) invalidates the cached specializations: 33 s against 35 s on 1.12 + # and 18 s against 23 s on 1.10, but 0.6 s against 6 to 13 s uninstrumented on both. + @test with ≤ 0.5 * without skip = INSTRUMENTED # measured 0.51 s against 14.4 s (0.04); slack for a busy box + @test with ≤ 10.0 skip = INSTRUMENTED end