Skip to content

Fix deprecation warnings in CI test suite#293

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-deprecation-warnings
Feb 8, 2026
Merged

Fix deprecation warnings in CI test suite#293
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-deprecation-warnings

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

  • Rename duplicate function definitions across test files to eliminate method overwrite warnings (dtFE, affect!, g, g_t, and shared helpers between integrating_GK_tests.jl and integrating_GK_sum_tests.jl)
  • Add local keyword for soft scope variables in periodic_tests.jl to fix ambiguous assignment warnings
  • Replace deprecated autodiff = false Bool argument with AutoFiniteDiff() ADType in saving_tests.jl

These changes eliminate all deprecation/overwrite warnings when running CI with --depwarn=yes, which the SciML CI workflow enables by default.

Warnings fixed

Warning File(s) Fix
WARNING: Method definition dtFE overwritten stepsizelimiter_tests.jl Rename to dtFE_const, dtFE_switch, dtFE_linear
WARNING: Method definition affect! overwritten preset_time.jliterative_tests.jl Rename to preset_affect! / iterative_affect!
WARNING: Method definition g overwritten manifold_tests.jldomain_tests.jl Rename to g_domain in domain_tests.jl
WARNING: Method definition g_t overwritten manifold_tests.jldomain_tests.jl Rename to g_domain_t in domain_tests.jl
8x WARNING: Method definition overwritten integrating_GK_tests.jlintegrating_GK_sum_tests.jl Remove duplicates, reuse from GK tests
Warning: Assignment to u0/prob/sol in soft scope periodic_tests.jl Add local keyword
Warning: Using a Bool for autodiff is deprecated saving_tests.jl Use AutoFiniteDiff() instead of false

Test plan

  • All 298 Core tests pass locally with --depwarn=yes
  • Zero method overwrite warnings
  • Zero soft scope warnings
  • Zero deprecation warnings from autodiff Bool usage
  • CI passes on all platforms

🤖 Generated with Claude Code

- Rename duplicate function definitions across test files to avoid
  method overwrite warnings (dtFE, affect!, g, g_t, and shared helpers
  between integrating_GK_tests.jl and integrating_GK_sum_tests.jl)
- Add `local` keyword for soft scope variables in periodic_tests.jl
- Replace deprecated `autodiff = false` Bool with `AutoFiniteDiff()`
  ADType in saving_tests.jl

All 298 tests pass with --depwarn=yes and zero warnings.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas ChrisRackauckas merged commit d2fae27 into SciML:master Feb 8, 2026
31 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.

3 participants