Test failure on PackageEvaluator
Closed this issue · 13 comments
Currently this is failing. Yesterday I added d32f6ab to make it easier to debug the cause of the failure.
It turns out to be that the images are not installed. The log seems to suggest that the build script isn't running (it says "Building Images" but not "Building TestImages"). I can't understand why it would run for Images but not for TestImages. Not sure if this is a Pkg bug or something about the configuration on the PackageEvaluator machine.
CC @IainNZ
Here is the fuller log:
INFO: Building TestImages
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 386 100 386 0 0 1755 0 --:--:-- --:-
-:-- --:--:-- 1762
^M100 353 100 353 0 0 935 0 --:--:-- --:--:-- --:--:-- 935
=============================[ ERROR: TestImages ]==============================
failed to find end of centeral directory record
while loading /home/idunning/pkgtest/.julia/v0.3/TestImages/deps/build.jl, in expression starting on line 17
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: TestImages had build errors.
- packages with build errors remain installed in /home/idunning/pkgtest/.julia/v0.3
- build a package and all its dependencies with `Pkg.build(pkg)`
- build a single package by running its `deps/build.jl` script
================================================================================
INFO: Package database updated
ERROR: cameraman not found. Here are the contents of the images/ directory:
Union(UTF8String,ASCIIString)["fabio.png"]
in error at error.jl:21
in testimage at /home/idunning/pkgtest/.julia/v0.3/TestImages/src/TestImages.jl:20
in include at boot.jl:244
in include_from_node1 at loading.jl:128
while loading /home/idunning/pkgtest/.julia/v0.3/TestImages/test/runtests.jl, in expression starting on line 4
INFO: Removing Cartesian v0.1.5
INFO: Removing Color v0.2.9
INFO: Removing Images v0.2.35
INFO: Removing SIUnits v0.0.1
INFO: Removing TestImages v0.0.4
INFO: Removing TexExtensions v0.0.1
INFO: Removing ZipFile v0.2.1
INFO: Removing Zlib v0.1.7
INFO: Package database updated
On my own machine
julia> Pkg.add("TestImages")
INFO: Cloning cache of TestImages from git://github.com/timholy/TestImages.jl.git
INFO: Cloning cache of ZipFile from git://github.com/fhs/ZipFile.jl.git
INFO: Installing TestImages v0.0.3
INFO: Installing ZipFile v0.2.1
INFO: Building Images
INFO: Building TestImages
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 386 100 386 0 0 1026 0 --:--:-- --:--:-- --:--:-- 1023
100 353 100 353 0 0 469 0 --:--:-- --:--:-- --:--:-- 469
=============================[ ERROR: TestImages ]==============================
failed to find end of centeral directory record
while loading /home/idunning/.julia/v0.3/TestImages/deps/build.jl, in expression starting on line 17
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: TestImages had build errors.
- packages with build errors remain installed in /home/idunning/.julia/v0.3
- build a package and all its dependencies with `Pkg.build(pkg)`
- build a single package by running its `deps/build.jl` script
================================================================================
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of TestImages
INFO: Use `Pkg.update()` to get the latest versions of your packages
running Pkg.update now...
Still happens, same error. My machine has pretty much nothing in common with the test machine, except being a flavor of Linux.
That seems to be a zip error. If you download that file manually, can you unzip it?
download("http://www.ece.utk.edu/~gonzalez/ipweb2e/downloads/standard_test_images/standard_test_images.zip")
(this will save it in your current directory)
julia> download("http://www.ece.utk.edu/~gonzalez/ipweb2e/downloads/standard_test_images/standard_test_images.zip")
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 386 100 386 0 0 1566 0 --:--:-- --:--:-- --:--:-- 1562
100 353 100 353 0 0 717 0 --:--:-- --:--:-- --:--:-- 717
"/tmp/juliaR8mcI5"
seems to go into a tmp file?
idunning@IAIN-DESKTOP:~/.../FullyAdapt/TreeInv$ cat /tmp/juliaR8mcI5
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /~gonzalez/ipweb2e/downloads/standard_test_images/standard_test_images.zip was not found on this server.</p>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at web.eecs.utk.edu Port 80</address>
</body></html>
As an update, it looks like that file no longer exists. It's been there for years, so I'm hoping this is just an oversight on their part. I've written to them asking whether this is intentional.
Update: after contacting the publishers of the companion book, that file is online again with a new URL. Hopefully tomorrow we'll be good to go.
Nice 👍
Now working on 0.3, but not on 0.2. For some reason it used 0.0.5 on julia 0.3, but 0.0.4 on julia 0.2. I don't seen anything in the REQUIRE file that explains this. Any idea what's happening?
BTW, when I look at the log for 0.2 I get
Tests exist, ran 'julia runtests.jl', failed!
No log! Please file issue.
I think something went haywire with 0.2 last night... I'll investigate
Works!
Woot! Thanks for keeping such a close eye on this.