Subject: bug#45677: maven-wagon-http has indeterministic test failures

From: Björn Höfling <[email-masked]>
Date: Tue, 5 Jan 2021 21:03:34 +0100

$ gbuild [email-masked] [email-masked] [email-masked] [email-masked] [email-masked] [email-masked] [email-masked] [email-masked] [email-masked] [email-masked] [email-masked]

[...]

starting phase `check'
Buildfile: /tmp/guix-build-maven-wagon-http-3.3.4.drv-0/wagon-3.3.4/build.xml

compile-tests:
    [mkdir] Created dir: /tmp/guix-build-maven-wagon-http-3.3.4.drv-0/wagon-3.3.4/build/test-classes
    [javac] Compiling 14 source files to /tmp/guix-build-maven-wagon-http-3.3.4.drv-0/wagon-3.3.4/build/test-classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

check:
    [mkdir] Created dir: /tmp/guix-build-maven-wagon-http-3.3.4.drv-0/wagon-3.3.4/wagon-providers/wagon-http/src/test/test-reports
    [junit] Running org.apache.maven.wagon.providers.http.BasicAuthScopeTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec
    [junit] Running org.apache.maven.wagon.providers.http.HttpClientWagonTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.104 sec
    [junit] Running org.apache.maven.wagon.providers.http.HttpWagonErrorTest
    [junit] [main] INFO org.eclipse.jetty.util.log - Logging initialized @893ms
    [junit] [main] INFO org.eclipse.jetty.server.Server - jetty-9.2.z-SNAPSHOT
    [junit] [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@3d04a311{/,null,AVAILABLE}
    [junit] [main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@1996cd68{HTTP/1.1}{0.0.0.0:41431}
    [junit] [main] INFO org.eclipse.jetty.server.Server - Started @1440ms
    [junit] [main] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@1996cd68{HTTP/1.1}{0.0.0.0:0}
    [junit] [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@3d04a311{/,null,UNAVAILABLE}
    [junit] [main] INFO org.eclipse.jetty.server.Server - jetty-9.2.z-SNAPSHOT
    [junit] [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@55b0dcab{/,null,AVAILABLE}
    [junit] [main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@38afe297{HTTP/1.1}{0.0.0.0:40117}
    [junit] [main] INFO org.eclipse.jetty.server.Server - Started @4727ms
    [junit] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.384 sec
    [junit] [main] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@38afe297{HTTP/1.1}{0.0.0.0:0}
    [junit] [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@55b0dcab{/,null,UNAVAILABLE}

BUILD FAILED
/tmp/guix-build-maven-wagon-http-3.3.4.drv-0/wagon-3.3.4/build.xml:1: Test org.apache.maven.wagon.providers.http.HttpWagonErrorTest failed

Total time: 15 seconds
command "ant" "check" failed with status 1
note: keeping build directory `/tmp/guix-build-maven-wagon-http-3.3.4.drv-0'
builder for `/gnu/store/g4az3hbn397zxf5pm05nppmbb2n1sbw7-maven-wagon-http-3.3.4.drv' failed with exit code 1
build of /gnu/store/g4az3hbn397zxf5pm05nppmbb2n1sbw7-maven-wagon-http-3.3.4.drv failed
View build log at '/var/log/guix/drvs/g4/az3hbn397zxf5pm05nppmbb2n1sbw7-maven-wagon-http-3.3.4.drv.bz2'.
cannot build derivation `/gnu/store/1b0c4yg6v3kiplkg12q4s8nq00jq3w0q-maven-3.6.1.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/1b0c4yg6v3kiplkg12q4s8nq00jq3w0q-maven-3.6.1.drv' failed

Björn