Add JET.jl static analysis tests#320
Merged
ChrisRackauckas merged 2 commits intoSciML:mainfrom Dec 29, 2025
Merged
Conversation
This prevents dependabot from creating PRs for every minor and patch version update of the typos tool, reducing noise in the repository.
This PR adds JET.jl-based static analysis tests to the test suite to help
track type stability and catch potential runtime errors.
Changes:
- Add test/jet_tests.jl with tests for core operations:
- Type stability tests using @report_opt for getindex, similar, copy,
getdata, getaxes, broadcast, vcat, hcat
- Error analysis tests using @report_call for basic operations
- Add JET dependency to test/Project.toml
- Include jet_tests.jl in test/runtests.jl
JET analysis findings:
- The package is already well-typed for core operations
- Some intentional type instabilities exist in construction paths (e.g.,
ViewAxis can return different types by design for flexibility)
- All critical post-construction operations are type-stable
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
This was referenced Jan 2, 2026
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.
Summary
This PR adds JET.jl-based static analysis tests to the test suite to help track type stability and catch potential runtime errors.
Changes:
test/jet_tests.jlwith comprehensive tests for core operations:@report_optfor:getindex,similar,copy,getdata,getaxes,broadcast,vcat,hcat@report_callfor basic operationstest/Project.tomljet_tests.jlintest/runtests.jlJET Analysis Findings:
ViewAxiscan return different types by design for flexibility)Test plan
Pkg.test()cc @ChrisRackauckas
🤖 Generated with Claude Code