Package: symfony
Version: 4.3.3+dfsg-3
Severity: normal
Tags: patch
Usertags: origin-ubuntu eoan ubuntu-patch

Dear maintainers,

The autopkgtests in the newer upstream version of symfony, 4.3.3, are
failing in Ubuntu because they are trying to talk to a local test http
server and symfony honors the http_proxy variable, which is set:

2) Symfony\Component\HttpClient\Tests\CurlHttpClientTest::testQuery
Symfony\Component\HttpClient\Exception\ServerException: HTTP/1.1 503 Service 
Unavailable returned for "http://localhost:8057/?a=a&b=b";.


I think the simplest fix for this is to unset http_proxy in the autopkgtest,
since symfony's test suite shouldn't need to talk to any *non*-local

Thanks for considering the patch.
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                                    
diff -Nru symfony-4.3.3+dfsg/debian/tests/phpunit 
--- symfony-4.3.3+dfsg/debian/tests/phpunit     2019-08-01 00:38:50.000000000 
+++ symfony-4.3.3+dfsg/debian/tests/phpunit     2019-08-12 15:16:26.000000000 
@@ -1,6 +1,9 @@
 set -e
+# we only access local servers, so just unset any proxy setting
+unset http_proxy
 # This test fails on s390x
 if [ `dpkg --print-architecture` = 's390x' ] ; then
   echo "Don't fail testsuite on s390x, this test always failed there"

Reply via email to