Skip to content
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

switch to scimloperators #210

Closed
wants to merge 141 commits into from
Closed

switch to scimloperators #210

wants to merge 141 commits into from

Conversation

vpuri3
Copy link
Member

@vpuri3 vpuri3 commented Aug 2, 2022

@codecov
Copy link

codecov bot commented Aug 2, 2022

Codecov Report

Merging #210 (944ad2c) into master (0c566e2) will increase coverage by 0.59%.
The diff coverage is 55.69%.

@@            Coverage Diff             @@
##           master     #210      +/-   ##
==========================================
+ Coverage   54.69%   55.29%   +0.59%     
==========================================
  Files          40       38       -2     
  Lines        2938     2769     -169     
==========================================
- Hits         1607     1531      -76     
+ Misses       1331     1238      -93     
Impacted Files Coverage Δ
src/SciMLBase.jl 83.33% <0.00%> (-7.58%) ⬇️
src/problems/bvp_problems.jl 66.66% <0.00%> (+57.97%) ⬆️
src/problems/dae_problems.jl 100.00% <ø> (ø)
src/problems/dde_problems.jl 27.50% <ø> (ø)
src/problems/discrete_problems.jl 73.91% <ø> (ø)
src/problems/problem_traits.jl 85.00% <ø> (ø)
src/problems/rode_problems.jl 100.00% <ø> (ø)
src/problems/sdde_problems.jl 81.81% <ø> (ø)
src/problems/sde_problems.jl 57.57% <ø> (ø)
src/problems/steady_state_problems.jl 80.00% <ø> (ø)
... and 18 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ChrisRackauckas
Copy link
Member

This is missing the deprecation paths. At least #183 needs to be in here.

vpuri3 added a commit to vpuri3/LinearSolve.jl that referenced this pull request Aug 3, 2022
@vpuri3
Copy link
Member Author

vpuri3 commented Aug 3, 2022

ok lemme do that. unrelated, should we require LinearProblem.A to be a SciMLOperator?

@ChrisRackauckas
Copy link
Member

No. We should allow it but not require it.

Comment on lines 70 to 71
if A isa AbstractMatrix
LinearProblem{true}(MatrixOperator(A), b, args...; kwargs...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep it simple

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@vpuri3
Copy link
Member Author

vpuri3 commented Aug 3, 2022

anything else to add chris?

@vpuri3
Copy link
Member Author

vpuri3 commented Aug 3, 2022

what does this error mean @ChrisRackauckas

[3f19e933] + p7zip_jll
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `[https://github.com/JuliaRegistries/General.git`](https://github.com/JuliaRegistries/General.git%60)
  No Changes to `~/work/SciMLBase.jl/SciMLBase.jl/downstream/Project.toml`
  No Changes to `~/work/SciMLBase.jl/SciMLBase.jl/downstream/Manifest.toml`
ERROR: LoadError: KeyError: key UUID("7ed4a6bd-45f5-4d41-b270-4a48e9bafcae") not found
Stacktrace:
  [1] getindex
    @ ./dict.jl:481 [inlined]
  [2] getindex
    @ /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/stdlib/v1.7/Pkg/src/Types.jl:273 [inlined]```

@ChrisRackauckas
Copy link
Member

Did you find/replace and change the name in the Project.toml? Is SciMLOperators in the Project.toml now pointing to the wrong UUID?

@vpuri3
Copy link
Member Author

vpuri3 commented Aug 4, 2022

do deprecations as follows:

const DiffEqArrayOperator = MatrixOperator

function DiffEqArrayOperator(args...)
@warn "SciMLBase.DiffEqArrayOperator is deprecated.
Use SciMLOperators.MatrixOperator instead"

MatrixOperator(args...)
end

Comment on lines 31 to 37
- {user: SciML, repo: LinearSolve.jl, group: All}
- {user: SciML, repo: NonlinearSolve.jl, group: All}
- {user: SciML, repo: Optimization.jl, group: All}
- {user: SciML, repo: Integrals.jl, group: All}
- {user: SciML, repo: DiffEqSensitivity.jl, group: All}
- {user: SciML, repo: ModelingToolkit.jl, group: All}
- {user: SciML, repo: DiffEqOperators.jl, group: All}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These shouldn't be removed.

@vpuri3
Copy link
Member Author

vpuri3 commented Sep 21, 2022

nonlinearsolve error should be fixed by SciML/NonlinearSolve.jl#90

@vpuri3
Copy link
Member Author

vpuri3 commented Sep 21, 2022

The only test failing for OrdinaryDiffEq is

if VERSION >= v"1.8"
    @test 2t1 < t3 # FAILING
    @test t2 < t4
    integ = init(lorenzprob, Rosenbrock23())
    @test integ.f.f isa SciMLBase.FunctionWrappersWrappers.FunctionWrappersWrapper
end

in OrdinaryDiffEq/test/interface/norecompile. And this test is failing with SciMLBase/master as well so this doesn't seem like an issue with this branch.

No Recompile Tests: Test Failed at /Users/vp/.julia/dev/OrdinaryDiffEq/test/interface/n
orecompile.jl:27                                                                       
  Expression: 2t1 < t3                                                                 
   Evaluated: 1.42499375 < 1.280234125                                                 
Stacktrace:                                                                            
 [1] macro expansion                                                                   
   @ ~/.julia/juliaup/julia-1.8.1+0.aarch64/share/julia/stdlib/v1.8/Test/src/Test.jl:46
4 [inlined]                                                                            
 [2] top-level scope                                                                   
   @ ~/.julia/dev/OrdinaryDiffEq/test/interface/norecompile.jl:27                      
Test Summary:      | Pass  Fail  Total   Time                                          
No Recompile Tests |    2     1      3  12.4s
ERROR: LoadError: Some tests did not pass: 2 passed, 1 failed, 0 errored, 0 broken.    
in expression starting at /Users/vp/.julia/dev/OrdinaryDiffEq/test/runtests.jl:16      
ERROR: Package OrdinaryDiffEq errored during testing

@vpuri3
Copy link
Member Author

vpuri3 commented Sep 21, 2022

SciML/OrdinaryDiffEq.jl#1766 should fix errors in OrdinaryDiffEq / Integrators / 1 test, SciMLSensitivity / All / 1, StochasticDiffEq / Interface3/ 1

@vpuri3
Copy link
Member Author

vpuri3 commented Sep 21, 2022

[ci-skip]

@vpuri3
Copy link
Member Author

vpuri3 commented Sep 21, 2022

some of these workflows have been stuck for ~50 mins. closing this PR for a moment so workflows can start on other PR

@vpuri3 vpuri3 closed this Sep 21, 2022
@vpuri3 vpuri3 reopened this Sep 21, 2022
@vpuri3
Copy link
Member Author

vpuri3 commented Sep 21, 2022

closing this so workflows don't run. need SciML/OrdinaryDiffEq.jl#1766 first

@vpuri3 vpuri3 closed this Sep 21, 2022
@vpuri3 vpuri3 reopened this Sep 21, 2022
vpuri3 added a commit to vpuri3/LinearSolve.jl that referenced this pull request Sep 21, 2022
vpuri3 added a commit to vpuri3/LinearSolve.jl that referenced this pull request Sep 22, 2022
@vpuri3 vpuri3 closed this Sep 22, 2022
@vpuri3 vpuri3 reopened this Sep 22, 2022
@vpuri3
Copy link
Member Author

vpuri3 commented Sep 22, 2022

retriggering CI after ordinarydiffeq merge

@vpuri3
Copy link
Member Author

vpuri3 commented Sep 23, 2022

good, previous errors are resolved. :D

new error:

OrdinaryDiffEq / Interface / 1

looks like we're converting a sparse matrix into a dense one here

Linear Solver Tests: Error During Test at /home/runner/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:25
  Got exception outside of a @test
  LoadError: MethodError: no method matching KLU.KLUFactorization(::Matrix{Float64})
  Closest candidates are:
    KLU.KLUFactorization(::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/KLU/JK7t1/src/KLU.jl:187
    KLU.KLUFactorization(::SparseArrays.SparseMatrixCSC{Tv, Ti}) where {Tv<:Union{Float64, ComplexF64}, Ti<:Union{Int32, Int64}} at ~/.julia/packages/KLU/JK7t1/src/KLU.jl:221
  Stacktrace:
    [1] init_cacheval(alg::LinearSolve.KLUFactorization, A::Matrix{Float64}, b::Vector{Float64}, u::Vector{Float64}, Pl::LinearSolve.InvPreconditioner{LinearAlgebra.Diagonal{Float64, Vector{Float64}}}, Pr::LinearAlgebra.Diagonal{Float64, Vector{Float64}}, maxiters::Int64, abstol::Float64, reltol::Float64, verbose::Bool, assumptions::LinearSolve.OperatorAssumptions{Nothing})
      @ LinearSolve ~/.julia/packages/LinearSolve/tyXtB/src/factorization.jl:311

SciMLSensitivity / All / 1

ERROR: LoadError: Package SciMLSensitivity errored during testing (received signal: KILL)

@ChrisRackauckas
Copy link
Member

This will not be accepted without a clean diff. There seems to be a lot broken in here too, I'm not convinced there aren't merge issues.

@vpuri3
Copy link
Member Author

vpuri3 commented Sep 26, 2022

there definitely are merge issues - there were many changes in the code base during the past month. i think it would be easier to just start a new.

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.