Source: jupyter-telemetry
Version: 0.1.0-5
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 --with python3 --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_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/traits.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/eventlog.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/_version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build/jupyter_telemetry
> I: pybuild base:310: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/traits.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/eventlog.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jupyter-telemetry/build/jupyter_telemetry
> copying jupyter_telemetry/_version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jupyter-telemetry/build/jupyter_telemetry
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build; python3.12
> -m pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 14 items
>
> tests/test_eventlog.py .. [
> 14%]
> tests/test_register_schema.py ....F...F [
> 78%]
> tests/test_traits.py ...
> [100%]
>
> =================================== FAILURES
> ===================================
> ______________________________ test_record_event
> _______________________________
>
> def test_record_event():
> """
> Simple test for emitting valid events
> """
> schema = {
> '$id': 'test/test',
> 'version': 1,
> 'properties': {
> 'something': {
> 'type': 'string'
> },
> },
> }
>
> output = io.StringIO()
> handler = logging.StreamHandler(output)
> el = EventLog(handlers=[handler])
> el.register_schema(schema)
> el.allowed_schemas = ['test/test']
>
> el.record_event('test/test', 1, {
> 'something': 'blah',
> })
> handler.flush()
>
> event_capsule = json.loads(output.getvalue())
>
> assert '__timestamp__' in event_capsule
> # Remove timestamp from capsule when checking equality, since it is
> gonna vary
> del event_capsule['__timestamp__']
> > assert event_capsule == {
> '__schema__': 'test/test',
> '__schema_version__': 1,
> '__metadata_version__': 1,
> 'something': 'blah'
> }
> E AssertionError: assert {'__metadata_...: 'blah', ...} ==
> {'__metadata_...hing': 'blah'}
> E Omitting 4 identical items, use -vv to show
> E Left contains 1 more item:
> E {'taskName': None}
> E Use -v to get more diff
>
> tests/test_register_schema.py:124: AssertionError
> _________________________ test_unique_logger_instances
> _________________________
>
> def test_unique_logger_instances():
> schema0 = {
> '$id': 'test/test0',
> 'version': 1,
> 'properties': {
> 'something': {
> 'type': 'string'
> },
> },
> }
>
> schema1= {
> '$id': 'test/test1',
> 'version': 1,
> 'properties': {
> 'something': {
> 'type': 'string'
> },
> },
> }
>
> output0 = io.StringIO()
> output1 = io.StringIO()
> handler0 = logging.StreamHandler(output0)
> handler1 = logging.StreamHandler(output1)
>
> el0 = EventLog(handlers=[handler0])
> el0.register_schema(schema0)
> el0.allowed_schemas = ['test/test0']
>
> el1 = EventLog(handlers=[handler1])
> el1.register_schema(schema1)
> el1.allowed_schemas = ['test/test1']
>
> el0.record_event('test/test0', 1, {
> 'something': 'blah',
> })
> el1.record_event('test/test1', 1, {
> 'something': 'blah',
> })
> handler0.flush()
> handler1.flush()
>
> event_capsule0 = json.loads(output0.getvalue())
>
> assert '__timestamp__' in event_capsule0
> # Remove timestamp from capsule when checking equality, since it is
> gonna vary
> del event_capsule0['__timestamp__']
> > assert event_capsule0 == {
> '__schema__': 'test/test0',
> '__schema_version__': 1,
> '__metadata_version__': 1,
> 'something': 'blah'
> }
> E AssertionError: assert {'__metadata_...: 'blah', ...} ==
> {'__metadata_...hing': 'blah'}
> E Omitting 4 identical items, use -vv to show
> E Left contains 1 more item:
> E {'taskName': None}
> E Use -v to get more diff
>
> tests/test_register_schema.py:264: AssertionError
> =============================== warnings summary
> ===============================
> .pybuild/cpython3_3.12_jupyter-telemetry/build/tests/test_register_schema.py::test_timestamp_override
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build/tests/test_register_schema.py:84:
> 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).
> timestamp_override = datetime.utcnow() - timedelta(days=1)
>
> .pybuild/cpython3_3.12_jupyter-telemetry/build/tests/test_register_schema.py::test_record_event
> .pybuild/cpython3_3.12_jupyter-telemetry/build/tests/test_register_schema.py::test_unique_logger_instances
> .pybuild/cpython3_3.12_jupyter-telemetry/build/tests/test_register_schema.py::test_unique_logger_instances
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build/jupyter_telemetry/eventlog.py:147:
> 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).
> timestamp = datetime.utcnow()
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED tests/test_register_schema.py::test_record_event - AssertionError:
> ass...
> FAILED tests/test_register_schema.py::test_unique_logger_instances -
> Assertio...
> =================== 2 failed, 12 passed, 4 warnings in 0.22s
> ===================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jupyter-telemetry/build; python3.12
> -m pytest tests
> I: pybuild base:310: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jupyter-telemetry/build; python3.11
> -m pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 14 items
>
> tests/test_eventlog.py .. [
> 14%]
> tests/test_register_schema.py ......... [
> 78%]
> tests/test_traits.py ...
> [100%]
>
> ============================== 14 passed in 0.12s
> ==============================
> 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/jupyter-telemetry_0.1.0-5_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.