Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI failures when using TestImages in tests #155

Closed
jwahlstrand opened this issue Nov 29, 2024 · 1 comment
Closed

CI failures when using TestImages in tests #155

jwahlstrand opened this issue Nov 29, 2024 · 1 comment

Comments

@jwahlstrand
Copy link

Seeing a reproducible 404 error in CI tests for ImageView with Julia 1.11 (but not Julia 1.6). I'm seeing the same error in Gtk4 with both Julia 1.11 and 1.10.

Info: Downloading standard test images
┌ Warning: Base.download is deprecated; use Downloads.download instead
│   caller = (::TestImages.var"#6#7"{String})(artifact_dir::String) at TestImages.jl:121
└ @ TestImages ~/.julia/packages/TestImages/cc9Cr/src/TestImages.jl:121
ERROR: LoadError: RequestError: HTTP/2 404 while requesting https://github.com/JuliaImages/TestImages.jl/blob/gh-pages/images/autumn_leaves.png?raw=true
Stacktrace:
  [1] #3
    @ /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Downloads/src/Downloads.jl:271 [inlined]
  [2] open(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Nothing, String}, args::String; kwargs::@Kwargs{write::Bool, lock::Bool})
    @ Base ./io.jl:410
  [3] open_nolock
    @ /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/ArgTools/src/ArgTools.jl:35 [inlined]
  [4] arg_write(f::Function, arg::String)
    @ ArgTools /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/ArgTools/src/ArgTools.jl:103
  [5] #download#2
    @ /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Downloads/src/Downloads.jl:258 [inlined]
  [6] download(url::String, output::String)
    @ Downloads /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Downloads/src/Downloads.jl:247
  [7] #invokelatest#2
    @ ./essentials.jl:1055 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1052 [inlined]
  [9] do_download(url::String, path::String)
    @ Base ./download.jl:24
 [10] download(url::String, path::String)
    @ Base ./download.jl:19
 [11] (::TestImages.var"#6#7"{String})(artifact_dir::String)
    @ TestImages ~/.julia/packages/TestImages/cc9Cr/src/TestImages.jl:121
 [12] create_artifact(f::TestImages.var"#6#7"{String})
    @ Pkg.Artifacts /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Artifacts.jl:39
 [13] image_path(imagename::String)
    @ TestImages ~/.julia/packages/TestImages/cc9Cr/src/TestImages.jl:120
 [14] testimage(filename::String; download_only::Bool, ops::@Kwargs{})
    @ TestImages ~/.julia/packages/TestImages/cc9Cr/src/TestImages.jl:75
 [15] testimage
    @ ~/.julia/packages/TestImages/cc9Cr/src/TestImages.jl:74 [inlined]
 [16] #1
    @ ~/.julia/packages/TestImages/cc9Cr/deps/build.jl:4 [inlined]
 [17] foreach(f::var"#1#2", itr::Vector{String})
    @ Base ./abstractarray.jl:3187
 [18] top-level scope
    @ ~/.julia/packages/TestImages/cc9Cr/deps/build.jl:4
 [19] include(fname::String)
    @ Main ./sysimg.jl:38
 [20] top-level scope
    @ none:5
in expression starting at /home/runner/.julia/packages/TestImages/cc9Cr/deps/build.jl:4
Error: Process completed with exit code 1.

Tests work locally on Julia 1.11.

@jwahlstrand
Copy link
Author

Fixed by requiring a recent version of TestImages. This was some sort of compatibility issue involving Gtk4 and the JuliaImages ecosystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant