Your message dated Sun, 3 Feb 2019 21:37:37 +1100
with message-id <[email protected]>
and subject line Bug#910295: blocking bug resolved, build tests now succeed
has caused the Debian Bug report #910295,
regarding dput: FTBFS: tests fail to mock HTTP request
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
910295: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910295
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: dput
Version: 1.0.2
Severity: serious
Tags: ftbfs

dput fails to build from source with sbuild in unstable/amd64. A buil
log ends with:

| ======================================================================
| ERROR: test_request_has_expected_fields 
(test.test_methods.http_upload_SuccessTestCase)
| 
test.test_methods.http_upload_SuccessTestCase.test_request_has_expected_fields 
(file-list-three,size-100k,incoming-has-trailing-slash,https,username,chatter)
| ----------------------------------------------------------------------
| testtools.testresult.real._StringException: Traceback (most recent call last):
|   File "/<<PKGBUILDDIR>>/test/test_methods.py", line 1003, in 
test_request_has_expected_fields
|     self.function_to_test(**self.test_args)
|   File "/<<PKGBUILDDIR>>/dput/methods/https.py", line 16, in upload
|     progress, protocol="https")
|   File "/<<PKGBUILDDIR>>/dput/methods/http.py", line 138, in upload
|     conn.endheaders()
|   File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
|     self._send_output(message_body, encode_chunked=encode_chunked)
|   File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
|     self.send(msg)
|   File "/usr/lib/python3.6/http/client.py", line 964, in send
|     self.connect()
|   File "/usr/lib/python3.6/http/client.py", line 1392, in connect
|     super().connect()
|   File "/usr/lib/python3.6/http/client.py", line 936, in connect
|     (self.host,self.port), self.timeout, self.source_address)
|   File "/usr/lib/python3/dist-packages/httpretty/core.py", line 617, in 
create_fake_connection
|     s.connect(address)
|   File "/usr/lib/python3/dist-packages/httpretty/core.py", line 404, in 
connect
|     self.truesock.connect(self._address)
| socket.gaierror: [Errno -2] Name or service not known
| 
| 
| ----------------------------------------------------------------------
| Ran 4791 tests in 70.582s
| 
| FAILED (errors=192, skipped=115)
| Test failed: <unittest.runner.TextTestResult run=4791 errors=192 failures=0>
| error: Test failed: <unittest.runner.TextTestResult run=4791 errors=192 
failures=0>
| E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: 
python3.6 setup.py test 
| dh_auto_test: pybuild --test -i python{version} -p 3.6 returned exit code 13
| make: *** [debian/rules:22: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

At least the vast majority of failures is due to a similar
socket.gaierror. Given that the chroot was created with
sbuild-createchroot, I'd expect that it should be "good enough". If that
isn't the case, we should fix sbuild. I've seen a discussion to make
netbase build-essential. Possibly that is related?

If you reassign the bug, make sure to "affects -1 + src:dput".

Helmut

--- End Message ---
--- Begin Message ---
Control: block -1 by 919599
Control: notfound -1 dput/1.0.2
Control: tags -1 - moreinfo

On 25-Jan-2019, Ben Finney wrote:
> On 18-Jan-2019, Ben Finney wrote:
> > The HTTPretty library is failing to correctly mock requests sent
> > using the standard-library `http.client.HTTPConnection` class.
> 
> I have reported bug#919599 for this. (I believe that bug is already
> fixed in Debian now.)

Now that bug#919599 is resolved, the auto-build for ‘dput’ succeeds
<URL:https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/dput_1.0.3.rbuild.log.gz>
without needing any change in this package.

-- 
 \      “The best mind-altering drug is truth.” —Jane Wagner, via Lily |
  `\                                                            Tomlin |
_o__)                                                                  |
Ben Finney <[email protected]>

--- End Message ---

Reply via email to