Repository navigation
Import SciMLBase in the OptimizationSystem test file - #5128
Merged
ChrisRackauckas merged 1 commit intoSep 13, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
The `ProblemTypeCtx` testset added in SciML#5115 calls `SciMLBase.problem_type`, but the file never imported `SciMLBase`, so under `@safetestset` the two assertions error with `UndefVarError: SciMLBase not defined in Main`. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]> Agent-Harness: Claude Code 2.1.269 Agent-Model: claude-fable-5-1 Agent-Session: https://claude.ai/code/session_01WYPUXLxE9jVu2jXLFRd8ax Claude-Session: https://claude.ai/code/session_01WYPUXLxE9jVu2jXLFRd8ax
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.
Follow-up to #5115. The
ProblemTypeCtxtestset there callsSciMLBase.problem_type, but the OptimizationSystem test file never importedSciMLBase. Under@safetestsetthe testset runs in a fresh module, so both assertions error. The fix addsSciMLBaseto the file'susingline, matching the other ModelingToolkitBase test files that use it directly.Verification
Run in a scratch environment with
SciMLBasedev'd at theproblem_typebranch (SciML/SciMLBase.jl#1600, unreleased, which is why the package's own test target cannot resolve yet), by including the whole test file with onlyTestloaded, as@safetestsetdoes.Before (file as on master):
After (this PR): every testset in the file passes, including the two added on master today:
Runic and typos pass on the file. Not verified: the full MTKBase CI groups, which cannot resolve until SciMLBase 3.54 is released.
🤖 Generated with Claude Code (model: claude-fable-5-1)
https://claude.ai/code/session_01WYPUXLxE9jVu2jXLFRd8ax