• Bug#1061754: python-json-log-formatter ftbfs with Python 3.12 as defaul

    From Matthias Klose@21:1/5 to All on Mon Jan 29 13:20:01 2024
    Package: src:python-json-log-formatter
    Version: 0.5.2-2
    Severity: serious
    Tags: sid trixie ftbfs
    User: debian-python@lists.debian.org
    Usertags: python3.12

    With python3-defaults from experimental, the package fails to build:

    [...]
    ============================= test session starts ==============================
    platform linux -- Python 3.12.1, pytest-7.4.4, pluggy-1.4.0
    cachedir: .tox/py312/.pytest_cache
    rootdir: /<<PKGBUILDDIR>>
    collected 29 items

    tests.py ...FF........................

    =================================== FAILURES ===================================
    _ JSONFormatterTest.test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided
    _

    self = <tests.JSONFormatterTest testMethod=test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided>

    def test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided(self):
    logger.info('Sign up', extra={'fizz': 'bazz'})
    json_record = json.loads(log_buffer.getvalue())
    expected_fields = set([
    'message',
    'time',
    'fizz',
    ])
    self.assertEqual(set(json_record), expected_fields)
    E AssertionError: Items in the first set but not the second:
    E 'taskName'

    tests.py:72: AssertionError
    ------------------------------ Captured log call -------------------------------
    INFO test:tests.py:65 Sign up
    _ JSONFormatterTest.test_message_and_time_are_in_json_record_when_extra_is_blank _

    self = <tests.JSONFormatterTest testMethod=test_message_and_time_are_in_json_record_when_extra_is_blank>

    def test_message_and_time_are_in_json_record_when_extra_is_blank(self):
    logger.info('Sign up')
    json_record = json.loads(log_buffer.getvalue())
    expected_fields = set([
    'message',
    'time',
    ])
    self.assertEqual(set(json_record), expected_fields)
    E AssertionError: Items in the first set but not the second:
    E 'taskName'

    tests.py:62: AssertionError
    ------------------------------ Captured log call -------------------------------
    INFO test:tests.py:56 Sign up
    =============================== warnings summary ===============================
    tests.py: 28 warnings
    /<<PKGBUILDDIR>>/json_log_formatter/__init__.py:123:
    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).
    extra['time'] = datetime.utcnow()

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
    FAILED tests.py::JSONFormatterTest::test_message_and_time_and_extra_are_in_json_record_when_extra_is_provided
    FAILED tests.py::JSONFormatterTest::test_message_and_time_are_in_json_record_when_extra_is_blank
    ================== 2 failed, 27 passed, 28 warnings in 0.17s ===================
    py312: exit 1 (0.36 seconds) /<<PKGBUILDDIR>>> pytest -s tests.py pid=5939

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Mar 5 19:20:02 2024
    Processing control commands:

    tag -1 moreinfo
    Bug #1061754 [src:python-json-log-formatter] python-json-log-formatter ftbfs with Python 3.12 as default
    Added tag(s) moreinfo.

    --
    1061754: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061754
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Mar 7 22:00:01 2024
    This is a multi-part message in MIME format...

    Your message dated Thu, 07 Mar 2024 20:52:51 +0000
    with message-id <E1riKjT-00F4IT-Aa@fasolo.debian.org>
    and subject line Bug#1061754: fixed in python-json-log-formatter 0.5.2-3
    has caused the Debian Bug report #1061754,
    regarding python-json-log-formatter ftbfs with Python 3.12 as default
    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 owner@bugs.debian.org
    immediately.)


    --
    1061754: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061754
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 29 Jan 2024 12:10:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-12.7 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,FORGED_SPF_HELO,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,
    SPF_NONE,T_SCC_BODY_TEXT_LINE,WEIRD_PORT autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 26; hammy, 150; neutral, 109; spammy,
    0. spammytokens: hammytokens:0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*doko, 0.000-+--trixie,
    0.000-+--H*RU:sk:einhorn
    Return-path: <doko@debian.org>
    Received: from einhorn.in-berlin.de ([192.109.42.8]:44033 helo=einhorn-mail-out.in-berlin.de)
    by buxt