--- Begin Message ---
Package: src:python-msrest
Version: 0.6.21-7
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202602/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-msrest, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
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
dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build"
module
I: pybuild base:384: python3.14 -m build --skip-dependency-check --no-isolation
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_msrest
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/dist.py:759:
SetuptoolsDeprecationWarning: License classifiers are deprecated.
[... snipped ...]
cert=None,
headers={
'User-Agent': current_ua,
'Test': 'true' # From global config
},
stream=False,
timeout=100,
verify=True
)
assert session.resolve_redirects.is_msrest_patched
client.send(request, headers={'id':'1234'}, content={'Test':'Data'},
stream=False)
session.request.assert_called_with(
'GET',
'/',
data='{"Test": "Data"}',
allow_redirects=True,
cert=None,
headers={
'User-Agent': current_ua,
'Content-Length': '16',
'id':'1234',
'Test': 'true' # From global config
},
stream=False,
timeout=100,
verify=True
)
> self.assertEqual(session.request.call_count, 1)
E AssertionError: 2 != 1
tests/test_client.py:329: AssertionError
=============================== warnings summary ===============================
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_client_request
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_deprecated_creds
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_3_times
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_404
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_408
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_501
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_502
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_505
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_max
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_msrest/build/msrest/service_client.py:259:
DeprecationWarning: Creds parameter is deprecated. Set config.credentials
instead.
warnings.warn("Creds parameter is deprecated. Set config.credentials
instead.",
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py: 31 warnings
/usr/lib/python3/dist-packages/httpretty/core.py:1077: DeprecationWarning:
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future
version. Use timezone-aware objects to represent datetimes in UTC:
datetime.datetime.now(datetime.UTC).
now = datetime.utcnow()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= slowest 10 durations =============================
2.00s call
.pybuild/cpython3_3.14_msrest/build/tests/asynctests/test_polling.py::test_poller
1.00s call
.pybuild/cpython3_3.14_msrest/build/tests/test_polling.py::test_poller
0.02s call
.pybuild/cpython3_3.14_msrest/build/tests/asynctests/test_async_client.py::TestServiceClient::test_client_send
0.02s call
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_client_send
0.01s call
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_format_url
0.01s call
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_context_manager
0.01s call
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_keep_alive
0.01s call
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_sdk_context_manager
0.01s call
.pybuild/cpython3_3.14_msrest/build/tests/test_runtime.py::TestRuntime::test_request_proxy
0.01s call
.pybuild/cpython3_3.14_msrest/build/tests/test_client.py::TestServiceClient::test_format_data
=========================== short test summary info ============================
FAILED
tests/asynctests/test_async_client.py::TestServiceClient::test_client_send
FAILED tests/test_client.py::TestServiceClient::test_client_send - AssertionE...
================== 2 failed, 191 passed, 40 warnings in 3.59s ==================
E: pybuild pybuild:483: test: plugin pyproject failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_msrest/build; python3.14 -m pytest
--ignore=tests/asynctests/test_universal_http.py
--ignore=tests/asynctests/test_pipeline.py --ignore=tests/test_auth.py
I: pybuild pybuild:388: cp -r /<<PKGBUILDDIR>>/tests
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_msrest/build
I: pybuild base:384: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_msrest/build;
python3.13 -m pytest --ignore=tests/asynctests/test_universal_http.py
--ignore=tests/asynctests/test_pipeline.py --ignore=tests/test_auth.py
============================= test session starts ==============================
platform linux -- Python 3.13.12, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: setup.cfg
plugins: asyncio-1.3.0, typeguard-4.4.4
asyncio: mode=Mode.STRICT, debug=False,
asyncio_default_fixture_loop_scope=None,
asyncio_default_test_loop_scope=function
collected 193 items
tests/asynctests/test_async_client.py F. [ 1%]
tests/asynctests/test_async_paging.py ..... [ 3%]
tests/asynctests/test_polling.py .... [ 5%]
tests/test_client.py ..F........ [ 11%]
tests/test_exceptions.py .. [ 12%]
tests/test_paging.py ..... [ 15%]
tests/test_pipeline.py ..... [ 17%]
tests/test_polling.py .... [ 19%]
tests/test_requests_universal.py .... [ 21%]
tests/test_runtime.py ............... [ 29%]
tests/test_serialization.py ............................................ [ 52%]
...................................... [ 72%]
tests/test_universal_pipeline.py ... [ 73%]
tests/test_xml_serialization.py ........................................ [ 94%]
........... [100%]
=================================== FAILURES ===================================
______________________ TestServiceClient.test_client_send ______________________
self = <test_async_client.TestServiceClient object at 0x7ff69da42990>
@pytest.mark.asyncio
async def test_client_send(self):
cfg = Configuration("/")
cfg.headers = {'Test': 'true'}
cfg.credentials = mock.create_autospec(OAuthTokenAuthentication)
client = ServiceClientAsync(cfg)
req_response = requests.Response()
req_response._content = br'{"real": true}' # Has to be valid bytes JSON
req_response._content_consumed = True
req_response.status_code = 200
def side_effect(*args, **kwargs):
return req_response
session = mock.create_autospec(requests.Session)
session.request.side_effect = side_effect
session.adapters = {
"http://": HTTPAdapter(),
"https://": HTTPAdapter(),
}
# Be sure the mock does not trick me
assert not hasattr(session.resolve_redirects, 'is_msrest_patched')
client.config.pipeline._sender.driver.session = session
client.config.credentials.signed_session.return_value = session
client.config.credentials.refresh_session.return_value = session
request = ClientRequest('GET', '/')
await client.async_send(request, stream=False)
session.request.call_count = 0
session.request.assert_called_with(
'GET',
'/',
allow_redirects=True,
cert=None,
headers={
'User-Agent': cfg.user_agent,
'Test': 'true' # From global config
},
stream=False,
timeout=100,
verify=True
)
assert session.resolve_redirects.is_msrest_patched
request = client.get('/', headers={'id':'1234'},
content={'Test':'Data'})
await client.async_send(request, stream=False)
session.request.assert_called_with(
'GET',
'/',
data='{"Test": "Data"}',
allow_redirects=True,
cert=None,
headers={
'User-Agent': cfg.user_agent,
'Content-Length': '16',
'id':'1234',
'Accept': 'application/json',
'Test': 'true' # From global config
},
stream=False,
timeout=100,
verify=True
)
> assert session.request.call_count == 1
E AssertionError: assert 2 == 1
E + where 2 = <MagicMock name='mock.signed_session().request'
spec='function' id='140697180661344'>.call_count
E + where <MagicMock name='mock.signed_session().request'
spec='function' id='140697180661344'> = <MagicMock name='mock.signed_session()'
spec='Session' id='140697181200336'>.request
tests/asynctests/test_async_client.py:123: AssertionError
______________________ TestServiceClient.test_client_send ______________________
self = <tests.test_client.TestServiceClient testMethod=test_client_send>
def test_client_send(self):
current_ua = self.cfg.user_agent
client = ServiceClient(self.creds, self.cfg)
client.config.keep_alive = True
req_response = requests.Response()
req_response._content = br'{"real": true}' # Has to be valid bytes JSON
req_response._content_consumed = True
req_response.status_code = 200
def side_effect(*args, **kwargs):
return req_response
session = mock.create_autospec(requests.Session)
session.request.side_effect = side_effect
session.adapters = {
"http://": HTTPAdapter(),
"https://": HTTPAdapter(),
}
# Be sure the mock does not trick me
assert not hasattr(session.resolve_redirects, 'is_msrest_patched')
client.config.pipeline._sender.driver.session = session
client.config.credentials.signed_session.return_value = session
client.config.credentials.refresh_session.return_value = session
request = ClientRequest('GET', '/')
client.send(request, stream=False)
session.request.call_count = 0
session.request.assert_called_with(
'GET',
'/',
allow_redirects=True,
cert=None,
headers={
'User-Agent': current_ua,
'Test': 'true' # From global config
},
stream=False,
timeout=100,
verify=True
)
assert session.resolve_redirects.is_msrest_patched
client.send(request, headers={'id':'1234'}, content={'Test':'Data'},
stream=False)
session.request.assert_called_with(
'GET',
'/',
data='{"Test": "Data"}',
allow_redirects=True,
cert=None,
headers={
'User-Agent': current_ua,
'Content-Length': '16',
'id':'1234',
'Test': 'true' # From global config
},
stream=False,
timeout=100,
verify=True
)
> self.assertEqual(session.request.call_count, 1)
E AssertionError: 2 != 1
tests/test_client.py:329: AssertionError
=============================== warnings summary ===============================
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_client_request
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_deprecated_creds
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_3_times
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_404
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_408
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_501
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_502
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_505
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_max
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_msrest/build/msrest/service_client.py:259:
DeprecationWarning: Creds parameter is deprecated. Set config.credentials
instead.
warnings.warn("Creds parameter is deprecated. Set config.credentials
instead.",
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py: 31 warnings
/usr/lib/python3/dist-packages/httpretty/core.py:1077: DeprecationWarning:
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future
version. Use timezone-aware objects to represent datetimes in UTC:
datetime.datetime.now(datetime.UTC).
now = datetime.utcnow()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= slowest 10 durations =============================
2.00s call
.pybuild/cpython3_3.13_msrest/build/tests/asynctests/test_polling.py::test_poller
1.00s call
.pybuild/cpython3_3.13_msrest/build/tests/test_polling.py::test_poller
0.02s call
.pybuild/cpython3_3.13_msrest/build/tests/asynctests/test_async_client.py::TestServiceClient::test_client_send
0.02s call
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_format_url
0.02s call
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_client_send
0.01s call
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_context_manager
0.01s call
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_keep_alive
0.01s call
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_sdk_context_manager
0.01s call
.pybuild/cpython3_3.13_msrest/build/tests/test_client.py::TestServiceClient::test_client_request
0.01s call
.pybuild/cpython3_3.13_msrest/build/tests/test_runtime.py::TestRuntime::test_request_proxy
=========================== short test summary info ============================
FAILED
tests/asynctests/test_async_client.py::TestServiceClient::test_client_send
FAILED tests/test_client.py::TestServiceClient::test_client_send - AssertionE...
================== 2 failed, 191 passed, 40 warnings in 3.61s ==================
E: pybuild pybuild:483: test: plugin pyproject failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_msrest/build; python3.13 -m pytest
--ignore=tests/asynctests/test_universal_http.py
--ignore=tests/asynctests/test_pipeline.py --ignore=tests/test_auth.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14
3.13" returned exit code 13
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit
status 2
--------------------------------------------------------------------------------
--- End Message ---