Skip to content

Commit e7a8a15

Browse files
authored
Use method deletion instead of custom sysimage (#1312)
1 parent 88dba5d commit e7a8a15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+162
-271
lines changed

.buildkite/runtests.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ steps:
1616
version: "nightly"
1717
arch: "i686"
1818
command: |
19-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
20-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
19+
julia --color=yes --code-coverage=@ .ci/run_tests.jl
2120
agents:
2221
queue: "julia"
2322
os: "linux"
@@ -40,8 +39,7 @@ steps:
4039
- JuliaCI/julia#v1:
4140
version: "nightly"
4241
command: |
43-
julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()'
44-
julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl
42+
julia --color=yes --code-coverage=@ .ci/run_tests.jl
4543
agents:
4644
queue: "julia"
4745
os: "linux"
@@ -55,8 +53,7 @@ steps:
5553
- JuliaCI/julia-coverage#v1:
5654
codecov: true
5755
command: |
58-
julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()'
59-
julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl
56+
julia --color=yes --code-coverage=@ .ci/run_tests.jl
6057
agents:
6158
queue: "julia"
6259
os: "macos"
@@ -69,8 +66,7 @@ steps:
6966
- JuliaCI/julia-coverage#v1:
7067
codecov: true
7168
command: |
72-
julia --color=yes --project=.ci --code-coverage=@ -e 'using Pkg; Pkg.instantiate()'
73-
julia --color=yes --project=.ci --code-coverage=@ .ci/create_sysimage_and_run_tests.jl
69+
julia --color=yes --code-coverage=@ .ci/run_tests.jl
7470
agents:
7571
queue: "julia"
7672
os: "windows"

.ci/Manifest.toml

-222
This file was deleted.

.ci/Project.toml

-8
This file was deleted.

.ci/create_sysimage.jl

-16
This file was deleted.

.ci/create_sysimage_and_run_docs.jl

-6
This file was deleted.

.ci/create_sysimage_and_run_tests.jl

-7
This file was deleted.

.ci/run_tests.jl

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if haskey(ENV, "BUILDKITE")
2+
ncores = Sys.CPU_THREADS
3+
else
4+
ncores = ceil(Int, Sys.CPU_THREADS / 2)
5+
end
6+
7+
proj = abspath(joinpath(@__DIR__, ".."))
8+
cmd = """Base.runtests(["LinearAlgebra"]; propagate_project=true, ncores=$ncores)"""
9+
withenv("JULIA_NUM_THREADS" => 1) do
10+
run(`$(Base.julia_cmd()) --project=$proj --compiled-modules=existing -e $cmd`)
11+
end

.github/workflows/ci.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121
version: 'nightly'
2222
- name: Generate docs
2323
run: |
24-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
2524
julia --color=yes --project=docs -e 'using Pkg; Pkg.instantiate()'
26-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_docs.jl
25+
julia --color=yes --project=docs --compiled-modules=existing docs/make.jl
2726
env:
2827
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/make.jl

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include("../test/prune_old_LA.jl")
2+
13
using LinearAlgebra
24
using Documenter: DocMeta, makedocs, deploydocs, HTML
35

test/abstractq.jl

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module TestAbstractQ
44

5+
isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
6+
57
using Test
68
using LinearAlgebra
79
using LinearAlgebra: AbstractQ, AdjointQ

test/addmul.jl

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module TestAddmul
44

5+
isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
6+
57
using Base: rtoldefault
68
using Test
79
using LinearAlgebra

test/adjtrans.jl

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module TestAdjointTranspose
44

5+
isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
6+
57
using Test, LinearAlgebra
68

79
const BASE_TEST_PATH = joinpath(Sys.BINDIR, "..", "share", "julia", "test")

test/bidiag.jl

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module TestBidiagonal
44

5+
isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
6+
57
using Test, LinearAlgebra, Random
68
using LinearAlgebra: BlasReal, BlasFloat
79

test/bitarray.jl

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
2+
13
using LinearAlgebra, Test, Random
24

35
tc(r1::NTuple{N,Any}, r2::NTuple{N,Any}) where {N} = all(x->tc(x...), [zip(r1,r2)...])

test/blas.jl

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module TestBLAS
44

5+
isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
6+
57
using Test, LinearAlgebra, Random
68
using LinearAlgebra: BlasReal, BlasComplex
79
using Libdl: dlsym, dlopen

test/bunchkaufman.jl

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module TestBunchKaufman
44

5+
isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
6+
57
using Test, LinearAlgebra, Random
68
using LinearAlgebra: BlasComplex, BlasFloat, BlasReal, QRPivoted
79
using Base: getproperty

0 commit comments

Comments
 (0)