Skip to content

Add JET.jl static analysis tests#320

Merged
ChrisRackauckas merged 2 commits intoSciML:mainfrom
ChrisRackauckas-Claude:static-improvements-20251229-040208
Dec 29, 2025
Merged

Add JET.jl static analysis tests#320
ChrisRackauckas merged 2 commits intoSciML:mainfrom
ChrisRackauckas-Claude:static-improvements-20251229-040208

Conversation

@ChrisRackauckas-Claude
Copy link
Contributor

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:

  • Add test/jet_tests.jl with comprehensive 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 as a test dependency in 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

Test plan

  • All existing tests pass
  • New JET tests pass (13 tests added)
  • Tests run successfully with Pkg.test()

cc @ChrisRackauckas

🤖 Generated with Claude Code

ChrisRackauckas and others added 2 commits August 4, 2025 00:30
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]>
@ChrisRackauckas ChrisRackauckas merged commit a2f12c7 into SciML:main Dec 29, 2025
3 of 4 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.

2 participants