From 16eb888c9841649510502721ed1a989999e32abe Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Thu, 8 Feb 2024 22:33:16 -0500 Subject: [PATCH] Add codecov token --- .buildkite/pipeline.yml | 6 ++++-- .github/workflows/CI.yml | 5 ++++- Project.toml | 4 +++- test/core/23_test_problems_tests.jl | 4 ++-- test/gpu/Project.toml | 6 ------ test/gpu/{core.jl => core_tests.jl} | 0 test/runtests.jl | 9 +-------- 7 files changed, 14 insertions(+), 20 deletions(-) delete mode 100644 test/gpu/Project.toml rename test/gpu/{core.jl => core_tests.jl} (100%) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 52ebdda7a..5fa49569e 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -4,7 +4,7 @@ steps: - JuliaCI/julia#v1: version: "1" - JuliaCI/julia-test#v1: - coverage: true + coverage: true agents: queue: "juliagpu" cuda: "*" @@ -15,4 +15,6 @@ steps: env: GROUP: GPU JULIA_PKG_SERVER: "" # it often struggles with our large artifacts - SECRET_CODECOV_TOKEN: "HC7K/ymhi62KUQ5OLU4DOl+11gaQt4JhXX/2nfTGlTsBB8mEMxQ8R+sHIp/2HjEup5eSXAN2IWQDQ7RDBuQvVp0T1UVtr2e4YNZFztKnsJXrFO15hXxYShJodI//X/8DzhlQd/lyTDOAOJu3eznsc3sC2CUgJzXZxLUtQN9YaZ1i3a+NoN1mO5UpkkHVhXigwF5gjy+0tei8fCdcP+SIhG0EanS5yd9q/SurtCpMHsHyUG97+ZVPglSKgdaqr31+PdmiPJ+ynp4+Hnc/esosxUSHSIL+ryRTO+28RNwPTiNf99J51RJLQmz1knWTR1ky6tiYIZ5218O6wvNil0SqNw==;U2FsdGVkX18nBY3t4LZYlEIz3EVKjpqCd994JNeJGt006up+sAjXEssI0tgCVXnfXsenVsP3NCCEoOS1GXc44g==" \ No newline at end of file + RETESTITEMS_NWORKERS: 4 + RETESTITEMS_NWORKER_THREADS: 2 + SECRET_CODECOV_TOKEN: "HC7K/ymhi62KUQ5OLU4DOl+11gaQt4JhXX/2nfTGlTsBB8mEMxQ8R+sHIp/2HjEup5eSXAN2IWQDQ7RDBuQvVp0T1UVtr2e4YNZFztKnsJXrFO15hXxYShJodI//X/8DzhlQd/lyTDOAOJu3eznsc3sC2CUgJzXZxLUtQN9YaZ1i3a+NoN1mO5UpkkHVhXigwF5gjy+0tei8fCdcP+SIhG0EanS5yd9q/SurtCpMHsHyUG97+ZVPglSKgdaqr31+PdmiPJ+ynp4+Hnc/esosxUSHSIL+ryRTO+28RNwPTiNf99J51RJLQmz1knWTR1ky6tiYIZ5218O6wvNil0SqNw==;U2FsdGVkX18nBY3t4LZYlEIz3EVKjpqCd994JNeJGt006up+sAjXEssI0tgCVXnfXsenVsP3NCCEoOS1GXc44g==" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6f59b6b2b..3fde89bb4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -20,7 +20,7 @@ jobs: group: - Core version: - - '1' + - "1" os: - ubuntu-latest - macos-latest @@ -53,3 +53,6 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + fail_ci_if_error: true diff --git a/Project.toml b/Project.toml index ff61a9212..9afd3d558 100644 --- a/Project.toml +++ b/Project.toml @@ -60,6 +60,7 @@ ArrayInterface = "7.7" BandedMatrices = "1.4" BenchmarkTools = "1.4" ConcreteStructs = "0.2.3" +CUDA = "5.1" DiffEqBase = "6.146.0" Enzyme = "0.11.11" FastBroadcast = "0.2.8" @@ -108,6 +109,7 @@ julia = "1.10" Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" BandedMatrices = "aae01518-5342-5314-be14-df237901396f" BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" +CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e" Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9" FastLevenbergMarquardt = "7a0df574-e128-4d35-8cbd-3d84502bf7ce" @@ -137,4 +139,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [targets] -test = ["Aqua", "Enzyme", "BenchmarkTools", "SafeTestsets", "Pkg", "Test", "ForwardDiff", "StaticArrays", "Symbolics", "LinearSolve", "Random", "LinearAlgebra", "Zygote", "SparseDiffTools", "NonlinearProblemLibrary", "LeastSquaresOptim", "FastLevenbergMarquardt", "NaNMath", "BandedMatrices", "DiffEqBase", "StableRNGs", "MINPACK", "NLsolve", "OrdinaryDiffEq", "SpeedMapping", "FixedPointAcceleration", "SIAMFANLEquations", "Sundials", "ReTestItems", "Reexport"] +test = ["Aqua", "Enzyme", "BenchmarkTools", "SafeTestsets", "Pkg", "Test", "ForwardDiff", "StaticArrays", "Symbolics", "LinearSolve", "Random", "LinearAlgebra", "Zygote", "SparseDiffTools", "NonlinearProblemLibrary", "LeastSquaresOptim", "FastLevenbergMarquardt", "NaNMath", "BandedMatrices", "DiffEqBase", "StableRNGs", "MINPACK", "NLsolve", "OrdinaryDiffEq", "SpeedMapping", "FixedPointAcceleration", "SIAMFANLEquations", "Sundials", "ReTestItems", "Reexport", "CUDA"] diff --git a/test/core/23_test_problems_tests.jl b/test/core/23_test_problems_tests.jl index cf6fa129f..43a361958 100644 --- a/test/core/23_test_problems_tests.jl +++ b/test/core/23_test_problems_tests.jl @@ -92,7 +92,7 @@ end test_on_library(problems, dicts, alg_ops, broken_tests) end -@testitem "Broyden" setup=[RobustnessTesting] begin +@testitem "Broyden" retries=5 setup=[RobustnessTesting] begin alg_ops = (Broyden(), Broyden(; init_jacobian = Val(:true_jacobian)), Broyden(; update_rule = Val(:bad_broyden)), @@ -107,7 +107,7 @@ end test_on_library(problems, dicts, alg_ops, broken_tests) end -@testitem "Klement" setup=[RobustnessTesting] begin +@testitem "Klement" retries=5 setup=[RobustnessTesting] begin alg_ops = (Klement(), Klement(; init_jacobian = Val(:true_jacobian_diagonal))) broken_tests = Dict(alg => Int[] for alg in alg_ops) diff --git a/test/gpu/Project.toml b/test/gpu/Project.toml deleted file mode 100644 index 5b5241a2e..000000000 --- a/test/gpu/Project.toml +++ /dev/null @@ -1,6 +0,0 @@ -[deps] -CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" -LinearSolve = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" -NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec" -ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823" -StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" diff --git a/test/gpu/core.jl b/test/gpu/core_tests.jl similarity index 100% rename from test/gpu/core.jl rename to test/gpu/core_tests.jl diff --git a/test/runtests.jl b/test/runtests.jl index 378fd0cf7..0c3f7d855 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,13 +1,7 @@ -using Pkg, ReTestItems +using ReTestItems const GROUP = get(ENV, "GROUP", "All") -function activate_env(env) - Pkg.activate(env) - Pkg.develop(PackageSpec(path = dirname(@__DIR__))) - Pkg.instantiate() -end - if GROUP == "All" || GROUP == "Core" ReTestItems.runtests(joinpath(@__DIR__, "core/"), joinpath(@__DIR__, "misc/"), @@ -15,6 +9,5 @@ if GROUP == "All" || GROUP == "Core" end if GROUP == "GPU" - activate_env("gpu") ReTestItems.runtests(joinpath(@__DIR__, "gpu/")) end