autopkgtest needs-internet (maven.org)

Bug #2120647 reported by Lukas Märdian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pomegranate-clojure (Ubuntu)
New
Undecided
Unassigned

Bug Description

The new DEP-8 tests (as of 1.2.24-5) have a "needs-internet" restriction. Rightfully so, as they try to access maven.org. This works in Debian's DebCI, but is incompatible with the autopkgtest.ubuntu.com infrastructure, which does not allow open internet access.

Relevant logs:
"""
 56s autopkgtest [03:29:21]: test net-and-isolated: [-----------------------
 56s + debian/run-build-tests network
 56s + case "$flavor" in
 56s + run-tests -d src/test/clojure -i :network
 56s + java -XX:-OmitStackTraceInFastThrow -cp src/main/clojure:src/test/clojure:src/test-isolated/clojure:/usr/share/java/test-runner.jar:/usr/share/java/clojure.jar:/usr/share/java/maven-resolver-provider-3.x.jar:/usr/share/java/maven-resolver-named-locks.jar:/usr/share/java/maven-resolver-api.jar:/usr/share/java/maven-resolver-spi.jar:/usr/share/java/maven-resolver-util.jar:/usr/share/java/maven-resolver-impl.jar:/usr/share/java/maven-resolver-transport-file.jar:/usr/share/java/maven-resolver-transport-http.jar:/usr/share/java/maven-resolver-transport-wagon.jar:/usr/share/java/maven-resolver-connector-basic.jar:/usr/share/java/dynapath.jar:/usr/share/java/wagon-provider-api.jar:/usr/share/java/wagon-http.jar:/usr/share/java/wagon-ssh.jar:/usr/share/java/httpclient.jar:/usr/share/java/httpcore.jar:/usr/share/java/slf4j-simple.jar:/usr/share/java/maven3-artifact.jar:/usr/share/java/maven3-model.jar:/usr/share/java/maven3-repository-metadata.jar:/usr/share/java/maven-aether-provider-3.x.jar:/usr/share/java/maven-builder-support-3.x.jar:/usr/share/java/maven-model-builder-3.x.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/wagon-http-shared.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-codec.jar:/usr/share/java/commons-io.jar:/usr/share/java/commons-lang3.jar:/usr/share/java/plexus-interpolation.jar:/usr/share/java/plexus-utils2.jar:/usr/share/java/plexus-component-annotations-1.5.jar clojure.main -m cognitect.test-runner -d src/test/clojure -i :network
 58s
 58s Running tests in #{"src/test/clojure"}
 58s
 58s Testing cemerick.pomegranate.aether-test
 58s === resolve-deps-with-wildcard-override-mirror [clj 1.12.0 jdk 21.0.8]
192s Aug 14, 2025 3:31:36 AM org.apache.http.impl.execchain.RetryExec execute
192s INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo1.maven.org:443: Network is unreachable
192s Aug 14, 2025 3:31:37 AM org.apache.http.impl.execchain.RetryExec execute
192s INFO: Retrying request to {s}->https://repo1.maven.org:443
"""

The debian/tests/net-and-isolated defines a "network" and "isolated" variant of "debian/run-build-tests". We should probably just disable the "network" variant in Ubuntu, due to incompatibility.

Related branches

Revision history for this message
Lukas Märdian (slyon) wrote :

Looks like the "isolated" tests are still trying to access maven.org and are therefore incompatible with Ubuntu's test infrastructure. See attached MR for PPA test analysis.

Probably we should just get this test hinted and accept it to be failing, without holding back anything else, until it gets fixed to being able to run in offline environments.

Revision history for this message
Lukas Märdian (slyon) wrote :

I filed a "force-badtest" hint, as even the "isolated" test needs open internet access, thus is incompatible with Ubuntu's infrastructure.

https://code.launchpad.net/~slyon/britney/+git/hints-ubuntu/+merge/490832

I filed the hint against the specific version, so that the current version can migrate. Once that's done, we can run "migration-reference/0" to avoid it from blocking anything else. Should the test start to become functional in a future version, it can just turn green and be helpful again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.