From ef67285434f665a6434886836dff9859ac12de2c Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Fri, 13 Aug 2021 04:31:17 +0200 Subject: [PATCH 1/2] shave another 4 mins off tests --- test/runtests.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index dbd473a17..cc6c1b6d8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -13,9 +13,11 @@ using StaticArrays using Statistics using Test +@nospecialize + Random.seed!(1) # Set seed that all testsets should reset to. -function include_test(path) +function include_test(path::String) println("Testing $path:") # print so TravisCI doesn't timeout due to no output @time include(path) # show basic timing, (this will print a newline at end) end From 50706b4d4e72e399b21ad0c03818939ee1cdc290 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Fri, 13 Aug 2021 12:11:51 +0200 Subject: [PATCH 2/2] save another 3 minutes --- test/runtests.jl | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index cc6c1b6d8..a6d4c1984 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,3 +1,14 @@ +using Test, ChainRulesCore, ChainRulesTestUtils + +@nospecialize + +# don't interpret this, since this breaks some inference tests +@time include("test_helpers.jl") +println() + +module Tests + +using ..Main: Multiplier, NoRules using Base.Broadcast: broadcastable using ChainRules using ChainRulesCore @@ -15,6 +26,10 @@ using Test @nospecialize +if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@compiler_options")) + @eval Base.Experimental.@compiler_options compile=min optimize=0 infer=no +end + Random.seed!(1) # Set seed that all testsets should reset to. function include_test(path::String) @@ -24,8 +39,6 @@ end println("Testing ChainRules.jl") @testset "ChainRules" begin - include_test("test_helpers.jl") - println() @testset "rulesets" begin @testset "Core" begin include_test("rulesets/Core/core.jl") @@ -66,3 +79,5 @@ println("Testing ChainRules.jl") println() end end + +end