-
Notifications
You must be signed in to change notification settings - Fork 195
Add tests with JET #955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests with JET #955
Conversation
0f0ec5a to
546cddb
Compare
|
|
||
| ## scatter matrix | ||
|
|
||
| _unscaled_covzm(x::DenseMatrix, dims::Colon) = unscaled_covzm(x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There exists no unscaled_covzm with this type signature in Statistics.
| _unscaled_covzm(x::DenseMatrix, dims::Colon) = unscaled_covzm(x) | ||
| _unscaled_covzm(x::DenseMatrix, dims::Integer) = unscaled_covzm(x, dims) | ||
|
|
||
| _unscaled_covzm(x::DenseMatrix, wv::AbstractWeights, dims::Colon) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
| else | ||
| function (io::typeof(stderr))(obj::StatisticalModel) | ||
| Base.depwarn("stderr(obj::StatisticalModel) is deprecated, use stderror(obj) instead", :stderr) | ||
| io === stderr ? stderror(obj) : throw(MethodErrror(io, (obj,))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A typo.
| @deprecate scattermat_zm(x::DenseMatrix, dims::Int) scattermat_zm(x, dims=dims) | ||
| @deprecate scattermat_zm(x::DenseMatrix, wv::AbstractWeights, dims::Int) scattermat_zm(x::DenseMatrix, wv::AbstractWeights, dims=dims) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also these do not exist.
|
JET makes tests fail due to version compat issues at #959. Any ideas what may be going on? |
|
It seems to be a bug in Pkg: #959 (comment) |
Based on and opened against #954.
The most basic JET tests revealed a typo and few issues (calls of non-existing methods):
Edit: Tests currently fail on 1.12 (only somewhat experimental support for JET, an internal
AssertionErroris thrown) and on the other Julia versions since JET triggers method redefinitions (e.g. https://github.com/JuliaStats/StatsBase.jl/actions/runs/14743207189/job/41385529150?pr=955#step:6:178) that cause other subsequent tests to fail. See https://aviatesk.github.io/JET.jl/v0.9/jetanalysis/#jetanalysis-toplevel-entryEdit 2: "Fixed" by disabling JET tests on Julia 1.12 and moving the JET tests to the end, after all other tests.