Repository navigation
Support NLsolve 5 autodiff in wrapper tests - #1207
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Align the Wrappers test environment with NLsolve 5 and translate the legacy NLsolveJL autodiff symbols to their ADTypes equivalents. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.150.1 Agent-Model: unknown Agent-Session: local session ID 01a04445-104e-7dc1-bae7-03b57aaf3462
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.
Ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed
Align the isolated Wrappers test environment with the root package's NLsolve 5 compatibility. Translate the legacy
NLsolveJL(autodiff = :central)and:forwardvalues toAutoFiniteDiffandAutoForwardDiffat the NLsolve extension boundary, because NLsolve 5 now requires ADTypes backend objects.This preserves the existing
NLsolveJLpublic API while allowing the wrapper tests and downstream users to exercise NLsolve 5. The related QA environment resolution failure was fixed separately by #1205 while this investigation was running.Regression evidence
On the unfixed code, after changing only the Wrappers environment to NLsolve 5 so the group could resolve, the exact test command reached the solver and errored twice:
With this commit applied on current
upstream/master(b46cebec0), the same command passes:Verification
Docs were not rebuilt because this preserves the documented public API and changes no documentation. GPU and downstream groups were not run locally.
CI status
All six Wrappers jobs pass on Ubuntu and macOS with Julia LTS, stable, and pre-release. The three red ModelingToolkit jobs reproduce unchanged on clean
upstream/masterin https://github.com/SciML/NonlinearSolve.jl/actions/runs/33108992904 and are dependency regressions unrelated to this two-file change:The self-hosted CUDA job remained queued after every hosted job completed, so the GPU path was not verified.
Reviewer judgment
This deliberately preserves the accepted symbol spellings and translates them privately. Push back if
NLsolveJLshould instead make a breaking public API change to require ADTypes objects.Links
🤖 Generated with Codex CLI 0.150.1 (model: unknown; session: local session ID 01a04445-104e-7dc1-bae7-03b57aaf3462).