JuliaLabs / Cassette.jl

Overdub Your Julia Code
Other
371 stars 35 forks source link

Subtrace test broken on 1.4 #161

Closed KristofferC closed 4 years ago

KristofferC commented 4 years ago
 Test Failed at /home/pkgeval/.julia/packages/Cassette/7OymZ/test/misctests.jl:297
  Expression: subtracekw == trace
   Evaluated: Any[(haskey, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_y) => Any[(isdefined, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_y) => Any[]], (getindex, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_y) => Any[(getfield, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_y) => Any[]], (haskey, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_z) => Any[(isdefined, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_z) => Any[]], (getindex, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_z) => Any[(getfield, (_y = 0.34382031745655417, _z = 0.3101774794448877), :_z) => Any[]], (Core.apply_type, NamedTuple, (:_y, :_z)) => Any[], (Base.structdiff, (_y = 0.34382031745655417, _z = 0.3101774794448877), NamedTuple{(:_y, :_z),T} where T<:Tuple) => Any[(Core.apply_type, NamedTuple, (), Tuple{}) => Any[], (NamedTuple{(),Tuple{}}, ()) => Any[(Core.apply_type, NamedTuple, (), Tuple{}) => Any[]]], (pairs, NamedTuple()) => Any[(keys, NamedTuple()) => Any[], (Base.Iterators.Pairs, NamedTuple(), ()) => Any[(Core.apply_type, Base.Iterators.Pairs, Union{}, Union{}, Tuple{}, NamedTuple{(),Tuple{}}) => Any[], (fieldtype, Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, 1) => Any[], (convert, NamedTuple{(),Tuple{}}, NamedTuple()) => Any[], (fieldtype, Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, 2) => Any[]]], (isempty, Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}()) => Any[(Base.isdone, Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}()) => Any[(tuple, ()) => Any[]], (!==, missing, missing) => Any[(===, missing, missing) => Any[], (!, true) => Any[(Core.Intrinsics.not_int, true) => Any[]]], (iterate, Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}()) => Any[(tuple, ()) => Any[], (===, nothing, nothing) => Any[]], (===, nothing, nothing) => Any[]], (#trkwtest#89, 0.34382031745655417, 0.3101774794448877, trkwtest, 0.833447338087127) => Any[(trtest, 0.833447338087127, 0.34382031745655417, 0.3101774794448877) => Any[(*, 0.833447338087127, 0.34382031745655417) => Any[(Core.Intrinsics.mul_float, 0.833447338087127, 0.34382031745655417) => Any[]], (*, 0.34382031745655417, 0.3101774794448877) => Any[(Core.Intrinsics.mul_float, 0.34382031745655417, 0.3101774794448877) => Any[]], (+, 0.28655612836443606, 0.1066453194506151) => Any[(Core.Intrinsics.add_float, 0.28655612836443606, 0.1066453194506151) => Any[]]]]] == Any[(trtest, 0.833447338087127, 0.34382031745655417, 0.3101774794448877) => Any[(*, 0.833447338087127, 0.34382031745655417) => Any[(Core.Intrinsics.mul_float, 0.833447338087127, 0.34382031745655417) => Any[]], (*, 0.34382031745655417, 0.3101774794448877) => Any[(Core.Intrinsics.mul_float, 0.34382031745655417, 0.3101774794448877) => Any[]], (+, 0.28655612836443606, 0.1066453194506151) => Any[(Core.Intrinsics.add_float, 0.28655612836443606, 0.1066453194506151) => Any[]]]]
Stacktrace:
 [1] top-level scope at /home/pkgeval/.julia/packages/Cassette/7OymZ/test/misctests.jl:297
 [2] include(::String) at ./client.jl:439
 [3] macro expansion at /home/pkgeval/.julia/packages/Cassette/7OymZ/test/runtests.jl:11 [inlined]
 [4] macro expansion at /workspace/srcdir/usr/share/julia/stdlib/v1.4/Test/src/Test.jl:1113 [inlined]
 [5] macro expansion at /home/pkgeval/.julia/packages/Cassette/7OymZ/test/runtests.jl:11 [inlined]
 [6] top-level scope at ./util.jl:175 [inlined]
 [7] top-level scope at /home/pkgeval/.julia/packages/Cassette/7OymZ/test/runtests.jl:0
vchuravy commented 4 years ago

Not yet fixed by #172

https://github.com/jrevels/Cassette.jl/blob/bd72542eb5b623f736da5b9d6f473b5d2ac00f39/test/misctests.jl#L300