Skip to content

Commit 2a5a985

Browse files
authored
Unbreak broken tests (#299)
* Unbreak broken tests * Fix brand-new broken test
1 parent 3d52bd5 commit 2a5a985

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
steps:
5050
- run: sudo rm -rf /opt/*
51-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v3
5252
- uses: julia-actions/setup-julia@v1
5353
with:
5454
version: ${{ matrix.julia-version }}
@@ -80,7 +80,7 @@ jobs:
8080
env:
8181
JULIA_PKG_SERVER: ""
8282
steps:
83-
- uses: actions/checkout@v2
83+
- uses: actions/checkout@v3
8484
- uses: julia-actions/setup-julia@latest
8585
with:
8686
version: "1.7"

test/dependencies.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,20 +225,15 @@ end
225225
@test "destdir" readdir(dirname(destdir(dir, platform)))
226226
end
227227

228-
# Some tests are broken on nightly because of
229-
# https://github.com/JuliaLang/Pkg.jl/issues/3170 and
230-
# https://github.com/JuliaLang/Pkg.jl/issues/3181
231-
nightly_broken = VERSION v"1.9.0-DEV"
232-
233228
# Test setup of dependencies that depend on the Julia version
234229
with_temp_project() do dir
235230
prefix = Prefix(dir)
236231
dependencies = [Dependency("GMP_jll")]
237232
platform = Platform("x86_64", "linux"; julia_version=v"1.5")
238233

239234
# Test that a particular version of GMP is installed
240-
@test !isempty(setup_dependencies(prefix, getpkg.(dependencies), platform)) broken=nightly_broken # restore @test_logs when not broken anymore
241-
@test isfile(joinpath(destdir(dir, platform), "lib", "libgmp.so.10.3.2")) broken=nightly_broken
235+
@test @test_logs !isempty(setup_dependencies(prefix, getpkg.(dependencies), platform))
236+
@test isfile(joinpath(destdir(dir, platform), "lib", "libgmp.so.10.3.2"))
242237
end
243238

244239
# Next, test on Julia v1.6
@@ -262,7 +257,7 @@ end
262257

263258
# Test that this is not instantiatable with either Julia v1.5 or v1.6
264259
platform = Platform("x86_64", "linux"; julia_version=v"1.5")
265-
@test_throws (nightly_broken ? AssertionError : Pkg.Resolve.ResolverError) setup_dependencies(prefix, getpkg.(dependencies), platform)
260+
@test_throws Pkg.Resolve.ResolverError setup_dependencies(prefix, getpkg.(dependencies), platform)
266261
platform = Platform("x86_64", "linux"; julia_version=v"1.6")
267262
@test_throws Pkg.Resolve.ResolverError setup_dependencies(prefix, getpkg.(dependencies), platform)
268263

test/runners.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ end
245245
# Install `MPICH_jll` in the `${prefix}` to make sure we can link to
246246
# libquadmath without problems, see
247247
# https://github.com/JuliaPackaging/BinaryBuilderBase.jl/pull/157#issuecomment-879263820
248+
version = VERSIONv"1.9.0-" ? v"3.4.2+0" : v"3.4.2" # From Julia v1.9, JLLs need to specify the build number
248249
artifact_paths =
249250
setup_dependencies(prefix,
250-
[PackageSpec(; name="MPICH_jll", version=v"3.4.2")],
251+
[PackageSpec(; name="MPICH_jll", version)],
251252
concrete_platform, verbose=false)
252253
ur = preferred_runner()(prefix.path;
253254
platform=concrete_platform,
@@ -297,9 +298,10 @@ end
297298
# Install `CompilerSupportLibraries_jll` v0.5.0 in the `${prefix}` to make
298299
# sure it doesn't break compilation of the program for i686-linux-gnu, see
299300
# https://github.com/JuliaPackaging/BinaryBuilderBase.jl/issues/163
301+
version = VERSIONv"1.9.0-" ? v"0.5.0+0" : v"0.5.0" # From Julia v1.9, JLLs need to specify the build number
300302
artifact_paths =
301303
setup_dependencies(prefix,
302-
[PackageSpec(; name="CompilerSupportLibraries_jll", version=v"0.5.0")],
304+
[PackageSpec(; name="CompilerSupportLibraries_jll", version)],
303305
concrete_platform, verbose=false)
304306
ur = preferred_runner()(prefix.path;
305307
platform=concrete_platform,

0 commit comments

Comments
 (0)