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

Lines changed: 4 additions & 8 deletions
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

Lines changed: 0 additions & 222 deletions
This file was deleted.

.ci/Project.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.ci/create_sysimage.jl

Lines changed: 0 additions & 16 deletions
This file was deleted.

.ci/create_sysimage_and_run_docs.jl

Lines changed: 0 additions & 6 deletions
This file was deleted.

.ci/create_sysimage_and_run_tests.jl

Lines changed: 0 additions & 7 deletions
This file was deleted.

.ci/run_tests.jl

Lines changed: 11 additions & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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

0 commit comments

Comments
 (0)