Source: advocate
Version: 1.0.0-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:310: python3.12 setup.py config 
> running config
> I: pybuild base:310: python3.11 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:310: /usr/bin/python3.12 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/poolmanager.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/exceptions.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/addrvalidator.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/adapters.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/api.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/futures.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/connectionpool.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> copying advocate/connection.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate/packages
> copying advocate/packages/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate/packages
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate/packages/ipaddress
> copying advocate/packages/ipaddress/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate/packages/ipaddress
> copying advocate/packages/ipaddress/ipaddress.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build/advocate/packages/ipaddress
> I: pybuild base:310: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/poolmanager.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/exceptions.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/addrvalidator.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/adapters.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/api.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/futures.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/connectionpool.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> copying advocate/connection.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate/packages
> copying advocate/packages/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate/packages
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate/packages/ipaddress
> copying advocate/packages/ipaddress/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate/packages/ipaddress
> copying advocate/packages/ipaddress/ipaddress.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build/advocate/packages/ipaddress
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build; python3.12 -m pytest 
> test
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build
> configfile: pytest.ini
> plugins: requests-mock-1.10.0
> collected 48 items
> 
> test/test_advocate.py s............s......s...ssssssFs.sss..s..FFsssss   
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ___________ AdvocateWrapperTests.test_advocate_requests_api_wrapper 
> ____________
> 
> self = <test.test_advocate.AdvocateWrapperTests 
> testMethod=test_advocate_requests_api_wrapper>
> 
>     def test_advocate_requests_api_wrapper(self):
>         wrapper = RequestsAPIWrapper(validator=AddrValidator())
>         local_validator = AddrValidator(ip_whitelist={
>             ipaddress.ip_network("127.0.0.1"),
>         })
>         local_wrapper = RequestsAPIWrapper(validator=local_validator)
>     
>         self.assertRaises(
>             UnacceptableAddressException,
>             wrapper.get, "http://127.0.0.1:1/";
>         )
>     
>         with self.assertRaises(Exception) as cm:
>             local_wrapper.get("http://127.0.0.1:1/";)
>         # Check that we got a connection exception instead of a validation one
>         # This might be either exception depending on the requests version
> >       self.assertRegexpMatches(
>             cm.exception.__class__.__name__,
>             r"\A(Connection|Protocol)Error",
>         )
> E       AttributeError: 'AdvocateWrapperTests' object has no attribute 
> 'assertRegexpMatches'
> 
> test/test_advocate.py:504: AttributeError
> _______________ AdvocateWrapperTests.test_wrapper_session_pickle 
> _______________
> 
> self = <test.test_advocate.AdvocateWrapperTests 
> testMethod=test_wrapper_session_pickle>
> 
>     def test_wrapper_session_pickle(self):
>         # Make sure the validator still works after a pickle round-trip
>         sess_instance = pickle.loads(pickle.dumps(global_wrapper.Session()))
>     
>         with self.assertRaises(Exception) as cm:
>             sess_instance.get("http://127.0.0.1:1/";)
> >       self.assertRegexpMatches(
>             cm.exception.__class__.__name__,
>             r"\A(Connection|Protocol)Error",
>         )
> E       AttributeError: 'AdvocateWrapperTests' object has no attribute 
> 'assertRegexpMatches'
> 
> test/test_advocate.py:523: AttributeError
> ______________ AdvocateWrapperTests.test_wrapper_session_subclass 
> ______________
> 
> self = <test.test_advocate.AdvocateWrapperTests 
> testMethod=test_wrapper_session_subclass>
> 
>     def test_wrapper_session_subclass(self):
>         # Make sure pickle doesn't explode if we try to pickle a subclass
>         # of `global_wrapper.Session`
>         def _check_instance(instance):
>             self.assertEqual(instance.good_method(), "foo")
>     
>             with self.assertRaises(Exception) as cm:
>                 instance.get("http://127.0.0.1:1/";)
>             self.assertRegexpMatches(
>                 cm.exception.__class__.__name__,
>                 r"\A(Connection|Protocol)Error",
>             )
>             self.assertRaises(
>                 UnacceptableAddressException,
>                 instance.get, "http://127.0.1.1:1/";
>             )
>         sess = _WrapperSubclass()
> >       _check_instance(sess)
> 
> test/test_advocate.py:549: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> instance = <test.test_advocate._WrapperSubclass object at 0x7f958476a420>
> 
>     def _check_instance(instance):
>         self.assertEqual(instance.good_method(), "foo")
>     
>         with self.assertRaises(Exception) as cm:
>             instance.get("http://127.0.0.1:1/";)
> >       self.assertRegexpMatches(
>             cm.exception.__class__.__name__,
>             r"\A(Connection|Protocol)Error",
>         )
> E       AttributeError: 'AdvocateWrapperTests' object has no attribute 
> 'assertRegexpMatches'
> 
> test/test_advocate.py:540: AttributeError
> =========================== short test summary info 
> ============================
> FAILED 
> test/test_advocate.py::AdvocateWrapperTests::test_advocate_requests_api_wrapper
> FAILED 
> test/test_advocate.py::AdvocateWrapperTests::test_wrapper_session_pickle
> FAILED 
> test/test_advocate.py::AdvocateWrapperTests::test_wrapper_session_subclass
> =================== 3 failed, 26 passed, 19 skipped in 0.22s 
> ===================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_advocate/build; python3.12 -m pytest 
> test
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build; python3.11 -m pytest 
> test
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_advocate/build
> configfile: pytest.ini
> plugins: requests-mock-1.10.0
> collected 48 items
> 
> test/test_advocate.py s............s......s...ssssss.s.sss..s....sssss   
> [100%]
> 
> ======================== 29 passed, 19 skipped in 0.13s 
> ========================
> dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/advocate_1.0.0-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to