Skip to content

Conversation

ChrisRackauckas-Claude
Copy link

Summary

Fixes CI failure in InterfaceI test group by adding explicit DiffEqBase import to test/jacobiansparsity.jl.

Problem

The jacobiansparsity.jl test was failing in CI with:

ERROR: LoadError: UndefVarError: DiffEqBase not defined
Hint: DiffEqBase is loaded but not imported in the active module Main.

This occurred at line 70 where DiffEqBase.ODEFunction is called but DiffEqBase was not directly imported.

Root Cause

  • The test runs in SafeTestsets environment which creates isolated module scopes
  • DiffEqBase was available through transitive dependencies (via OrdinaryDiffEq) but not directly accessible
  • SafeTestsets doesn't automatically make transitively available modules accessible

Solution

Add explicit DiffEqBase import to the test file imports.

Testing

  • ✅ Verified fix resolves the UndefVarError locally
  • ✅ Confirmed no regression in test functionality
  • ✅ Single line change with minimal impact

Fixes the CI failure affecting PR #3912.

🤖 Generated with Claude Code

baggepinnen and others added 4 commits September 2, 2025 14:15
Adds explicit DiffEqBase import to resolve UndefVarError that occurs
when running tests in SafeTestsets environment. The error manifested
in CI at line 70 where DiffEqBase.ODEFunction is called but DiffEqBase
was not directly imported, only available through transitive dependencies.

Fixes CI failure in PR SciML#3912 InterfaceI test group.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@AayushSabharwal
Copy link
Member

This is fixed on master.

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.

4 participants