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

CompatHelper: bump compat for "TestImages" to "1.0" #98

Merged

Conversation

github-actions[bot]
Copy link
Contributor

This pull request changes the compat entry for the TestImages package from 0 to 0, 1.0.

This keeps the compat entries for earlier versions.

Note: I have not tested your package with this new compat entry. It is your responsibility to make sure that your package tests pass before you merge this pull request.

@timholy
Copy link
Member

timholy commented Dec 12, 2019

Hmm, that segfault is concerning. Did constraining the minor version on FileIO fix the problem locally?

When I try to build the docs locally I get this:

julia> include("make.jl")
ERROR: LoadError: ArgumentError: page root should be a valid dir, instead it's docs/examples
Stacktrace:
 [1] DemoCards.DemoPage(::String) at /home/tim/.julia/packages/DemoCards/RMvSf/src/types/page.jl:94
 [2] #makedemos#62(::String, ::String, ::String, ::String, ::String, ::Bool, ::typeof(makedemos), ::String) at /home/tim/.julia/packages/DemoCards/RMvSf/src/generate.jl:86
 [3] (::DemoCards.var"#kw##makedemos")(::NamedTuple{(:branch,),Tuple{String}}, ::typeof(makedemos), ::String) at ./none:0
 [4] top-level scope at /home/tim/src/juliaimages.github.io/docs/make.jl:7
 [5] include at ./boot.jl:328 [inlined]
 [6] include_relative(::Module, ::String) at ./loading.jl:1105
 [7] include(::Module, ::String) at ./Base.jl:31
 [8] include(::String) at ./client.jl:424
 [9] top-level scope at REPL[4]:1
in expression starting at /home/tim/src/juliaimages.github.io/docs/make.jl:7

Since you're the DemoCards expert, any suggestions?

@johnnychen94
Copy link
Member

johnnychen94 commented Dec 12, 2019

The error is caused by testimage("mandrill"). The only package version difference related to TestImages between this build and last successful build is FileIO v1.1, so I want to check if this is the cause. (I can get a successful build locally on both versions without segfault -- OS: Windows)

-- Update

Okay I think this is caused by FileIO v1.2 😂 although JuliaIO/FileIO.jl#243 looks normal to me.

When I try to build the docs locally I get this

This isn't related to the segment fault, you can successfully build that with include("docs/make.jl") in the project root folder. I didn't consider the case include("make.jl") when I write DemoCards.

@timholy
Copy link
Member

timholy commented Dec 12, 2019

Good to know, and very nice that you figured it out so quickly.

Of course, the fact that this fixes it is actually quite concerning. Since it seems to only happen on Travis, that both makes it less of a problem and also much harder to debug.

@johnnychen94
Copy link
Member

johnnychen94 commented Dec 12, 2019

FYI, in DemoCards's docs there's a testimage("lena_color_256"), and this issue doesn't happen in Github Action

Links:

@timholy
Copy link
Member

timholy commented Dec 12, 2019

Instead of restricting the version of FileIO, I suppose another option would be to build the docs on Julia 1.3. Shall we try that and see what happens?

@johnnychen94
Copy link
Member

johnnychen94 commented Dec 12, 2019

Perhaps retrigger the build on JuliaImages/TestImages.jl@3102f04 first? The current pass build of that is with FileIO v1.1. I don't have permission to test that.

Upgrading versions can be an easy path, but I still want to make the whole documentation based on Julia 1.0 and add version notes for cases that require higher versions (just like the julia docs do).

I prefer to hold this PR and retrigger the build for a while, just to keep sure it's not some random failure from travis.

@timholy
Copy link
Member

timholy commented Dec 12, 2019

https://travis-ci.org/JuliaImages/TestImages.jl/builds/622358737?utm_source=github_status&utm_medium=notification

@johnnychen94
Copy link
Member

johnnychen94 commented Dec 12, 2019

Here's how demos run in DemoCards and Literate: https://github.com/johnnychen94/DemoCards.jl/blob/407d8662d060703ddca0353a9df6f969c8be1663/src/types/julia.jl#L109-L114

I'm not familiar with Julia's internal mechanism, will that include be a possible cause?

Update --

The new round of debug says it's not due to DemoCards

@johnnychen94 johnnychen94 force-pushed the compathelper/new_version/2019-12-12-10-02-03-885-421296393 branch 2 times, most recently from 331760c to 62e6dc0 Compare December 13, 2019 06:10
@johnnychen94
Copy link
Member

johnnychen94 commented Dec 13, 2019

I thought it's caused by @nospecialize in JuliaIO/FileIO.jl#243, but the build in a modified FileIO branch without that still fails. 😕 (Actually it succeed once, but then continued to throw segfault when I tried to rebuild it) travis log

Compared to use Julia 1.3.0, I prefer to limit the FileIO version to v1.1.0 until it's fixed, so I'm going to revert this PR to the FileIO v1.1.0 status.

@johnnychen94 johnnychen94 force-pushed the compathelper/new_version/2019-12-12-10-02-03-885-421296393 branch from 62e6dc0 to 7f4df96 Compare December 13, 2019 08:39
@johnnychen94
Copy link
Member

johnnychen94 commented Dec 16, 2019

@timholy Looks like this issue isn't a random CI issue, so there's little I can do for now. May I merge this just to not hinder the future builds?

@johnnychen94 johnnychen94 merged commit 305cfe4 into source Dec 17, 2019
@johnnychen94 johnnychen94 deleted the compathelper/new_version/2019-12-12-10-02-03-885-421296393 branch December 17, 2019 10:42
@johnnychen94
Copy link
Member

FYI, the DemoCards path issue #98 (comment) is now fixed JuliaDocs/DemoCards.jl@f7fb503

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

Successfully merging this pull request may close these issues.

None yet

2 participants