• Bug#1064266: python-lsp-black: FTBFS with black 24.2.0-1

    From Johannes Schauer Marin Rodrigues@21:1/5 to All on Mon Feb 19 11:00:01 2024
    Source: python-lsp-black
    Version: 2.0.0-1
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source
    X-Debbugs-Cc: sylvestre@debian.org

    Hi,

    python-lsp-black currently FTBFS in unstable. To track down the reason,
    I ran debbisect:

    DEBIAN_BISECT_SRCPKG=python-lsp-black debbisect --cache="$(pwd)/cache" 2024-01-01 today /usr/share/doc/devscripts/examples/debbisect_buildsrc.sh
    [...]
    #6: trying 20240214T085951Z...
    test script output: good
    snapshot timestamp difference: 3.758796296296296 days
    computation time left: 0:37:59.675485
    approximately 4 steps left to test
    #7: trying 20240215T151223Z...
    test script output: bad
    bisection finished successfully
    last good timestamp: 20240214T085951Z
    first bad timestamp: 20240215T151223Z
    only one package differs: black 24.1.1-1 -> 24.2.0-1

    I haven't investigated the failure yet.

    I have put Sylvestre, who uploaded black 24.2.0-1 a few days ago in X-Debbugs-Cc.

    Sylvestre, do you have an idea what the cause for this error could be? From the failing build log:

    ============================= test session starts ==============================
    platform linux -- Python 3.11.8, pytest-7.4.4, pluggy-1.4.0
    rootdir: /<<PKGBUILDDIR>>
    collected 21 items / 2 deselected / 19 selected

    tests/test_plugin.py ..............FF... [100%]

    =================================== FAILURES ===================================
    __________________________ test_load_config_defaults ___________________________

    config = {'fast': False, 'line_length': 88, 'preview': False, 'pyi': False, ...}

    def test_load_config_defaults(config):
    config = load_config(str(fixtures_dir / "example.py"), config)

    assert config == {
    "line_length": 88,
    "target_version": set(),
    "pyi": False,
    "fast": False,
    "skip_magic_trailing_comma": False,
    "skip_string_normalization": False,
    "preview": False,
    }
    E AssertionError: assert {'fast': Fals...': False, ...} == {'fast': Fals...': False, ...}
    E Omitting 6 identical items, use -vv to show
    E Differing items:
    E {'target_version': {<TargetVersion.PY310: 10>, <TargetVersion.PY38: 8>, <TargetVersion.PY311: 11>, <TargetVersion.PY39: 9>}} != {'target_version': set()}
    E Use -v to get more diff

    It seems that the target_version member is now somehow empty?

    Thanks!

    cheers, josch

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

    tag -1 pending
    Bug #1064266 [src:python-lsp-black] python-lsp-black: FTBFS with black 24.2.0-1 Added tag(s) pending.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johannes Schauer Marin Rodrigues@21:1/5 to All on Mon Feb 19 20:40:01 2024
    Control: tag -1 pending

    Hello,

    Bug #1064266 in python-lsp-black reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-lsp-black/-/commit/d2f03a48ce7912e0eecb9dd952c74a28ae2624bc

    ------------------------------------------------------------------------ temporarily disable test_load_config_defaults and test_load_config_with_skip_options

    Forwarded: https://github.com/python-lsp/python-lsp-black/issues/55
    Closes: #1064266 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1064266

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

    Your message dated Mon, 19 Feb 2024 19:51:43 +0000
    with message-id <E1rc9fz-00EK32-5Z@fasolo.debian.org>
    and subject line Bug#1064266: fixed in python-lsp-black 2.0.0-2
    has caused the Debian Bug report #1064266,
    regarding python-lsp-black: FTBFS with black 24.2.0-1
    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.)


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

    Received: (at submit) by bugs.debian.org; 19 Feb 2024 09:49:27 +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=-109.3 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,XMAILER_REPORTBUG
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 30; hammy, 150; neutral, 97; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <josch@debian.org>
    Received: from stravinsky.debia