#1141007 python-gql: FTBFS: E AssertionError: assert 'query Intros... }

#1141007#5
Date:
2026-06-28 20:52:06 UTC
From:
To:
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/202606/

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-gql, 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.13 with "build" module
I: pybuild base:385: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13
* Building wheel...
running bdist_wheel

[... snipped ...]

                  <Location 6:17>
              value:
                'GetHeroName'
          operation:
            <OperationType.QUERY: 'query'>
          selection_set:
            SelectionSetNode
              loc:
                Location
                  <Location 18:43>
              selections:
                FieldNode
                  alias:
                    None
                  arguments:
                    empty tuple
                  directives:
                    empty tuple
                  loc:
                    Location
                      <Location 22:41>
                  name:
                    NameNode
                      loc:
                        Location
                          <Location 22:26>
                      value:
                        'hero'
                  nullability_assertion:
                    None
                  selection_set:
                    SelectionSetNode
                      loc:
                        Location
                          <Location 27:41>
                      selections:
                        FieldNode
                          alias:
                            None
                          arguments:
                            empty tuple
                          directives:
                            empty tuple
                          loc:
                            Location
                              <Location 33:37>
                          name:
                            NameNode
                              loc:
                                Location
                                  <Location 33:37>
                              value:
                                'name'
                          nullability_assertion:
                            None
                          selection_set:
                            None
          variable_definitions:
            empty tuple
      loc:
        Location
          <Location 0:43>
    """.strip()

        node_tree_result_stable = """
    DocumentNode
      definitions:
        OperationDefinitionNode
          directives:
            empty tuple
          loc:
            Location
              <Location 0:43>
          name:
            NameNode
              loc:
                Location
                  <Location 6:17>
              value:
                'GetHeroName'
          operation:
            <OperationType.QUERY: 'query'>
          selection_set:
            SelectionSetNode
              loc:
                Location
                  <Location 18:43>
              selections:
                FieldNode
                  alias:
                    None
                  arguments:
                    empty tuple
                  directives:
                    empty tuple
                  loc:
                    Location
                      <Location 22:41>
                  name:
                    NameNode
                      loc:
                        Location
                          <Location 22:26>
                      value:
                        'hero'
                  selection_set:
                    SelectionSetNode
                      loc:
                        Location
                          <Location 27:41>
                      selections:
                        FieldNode
                          alias:
                            None
                          arguments:
                            empty tuple
                          directives:
                            empty tuple
                          loc:
                            Location
                              <Location 33:37>
                          name:
                            NameNode
                              loc:
                                Location
                                  <Location 33:37>
                              value:
                                'name'
                          selection_set:
                            None
          variable_definitions:
            empty tuple
      loc:
        Location
          <Location 0:43>
    """.strip()

        print(node_tree(document, ignore_loc=False))

        try:
            assert node_tree(document, ignore_loc=False) == node_tree_result
        except AssertionError:
            # graphql-core version 3.2.3
E           AssertionError: assert 'DocumentNode...ocation 0:43>' == 'DocumentNode...ocation 0:43>'
E
E             Skipping 53 identical leading characters in diff, use -v to show
E               de
E             +       description:
E             +         None
E                     directives:
E                       empty tuple...
E
E             ...Full output truncated (65 lines hidden), use '-vv' to show

tests/starwars/test_dsl.py:1246: AssertionError
----------------------------- Captured stdout call -----------------------------
DocumentNode
  definitions:
    OperationDefinitionNode
      description:
        None
      directives:
        empty tuple
      loc:
        Location
          <Location 0:43>
      name:
        NameNode
          loc:
            Location
              <Location 6:17>
          value:
            'GetHeroName'
      operation:
        <OperationType.QUERY: 'query'>
      selection_set:
        SelectionSetNode
          loc:
            Location
              <Location 18:43>
          selections:
            FieldNode
              alias:
                None
              arguments:
                empty tuple
              directives:
                empty tuple
              loc:
                Location
                  <Location 22:41>
              name:
                NameNode
                  loc:
                    Location
                      <Location 22:26>
                  value:
                    'hero'
              selection_set:
                SelectionSetNode
                  loc:
                    Location
                      <Location 27:41>
                  selections:
                    FieldNode
                      alias:
                        None
                      arguments:
                        empty tuple
                      directives:
                        empty tuple
                      loc:
                        Location
                          <Location 33:37>
                      name:
                        NameNode
                          loc:
                            Location
                              <Location 33:37>
                          value:
                            'name'
                      selection_set:
                        None
      variable_definitions:
        empty tuple
  loc:
    Location
      <Location 0:43>
=============================== warnings summary ===============================
tests/test_aiohttp.py::test_aiohttp_reconnecting_session
tests/test_aiohttp.py::test_aiohttp_reconnecting_session
tests/test_aiohttp.py::test_aiohttp_reconnecting_session_start_connecting_task_twice
tests/test_aiohttp.py::test_aiohttp_reconnecting_session_start_connecting_task_twice
tests/test_httpx_async.py::test_httpx_reconnecting_session
tests/test_httpx_async.py::test_httpx_reconnecting_session
tests/test_httpx_async.py::test_httpx_reconnecting_session_start_connecting_task_twice
tests/test_httpx_async.py::test_httpx_reconnecting_session_start_connecting_task_twice
  /usr/lib/python3/dist-packages/backoff/_decorator.py:201: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
    if asyncio.iscoroutinefunction(target):

tests/test_aiohttp.py: 12 warnings
tests/test_httpx_async.py: 12 warnings
  /usr/lib/python3/dist-packages/backoff/_async.py:11: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
    if asyncio.iscoroutinefunction(coro_or_func):

tests/test_aiohttp.py::test_aiohttp_reconnecting_session
tests/test_aiohttp.py::test_aiohttp_reconnecting_session
tests/test_aiohttp.py::test_aiohttp_reconnecting_session_start_connecting_task_twice
tests/test_aiohttp.py::test_aiohttp_reconnecting_session_start_connecting_task_twice
tests/test_httpx_async.py::test_httpx_reconnecting_session
tests/test_httpx_async.py::test_httpx_reconnecting_session
tests/test_httpx_async.py::test_httpx_reconnecting_session_start_connecting_task_twice
tests/test_httpx_async.py::test_httpx_reconnecting_session_start_connecting_task_twice
  /usr/lib/python3/dist-packages/backoff/_async.py:127: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
    assert not asyncio.iscoroutinefunction(max_tries)

tests/test_aiohttp.py::test_aiohttp_reconnecting_session
tests/test_aiohttp.py::test_aiohttp_reconnecting_session
tests/test_aiohttp.py::test_aiohttp_reconnecting_session_start_connecting_task_twice
tests/test_aiohttp.py::test_aiohttp_reconnecting_session_start_connecting_task_twice
tests/test_httpx_async.py::test_httpx_reconnecting_session
tests/test_httpx_async.py::test_httpx_reconnecting_session
tests/test_httpx_async.py::test_httpx_reconnecting_session_start_connecting_task_twice
tests/test_httpx_async.py::test_httpx_reconnecting_session_start_connecting_task_twice
  /usr/lib/python3/dist-packages/backoff/_async.py:128: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
    assert not asyncio.iscoroutinefunction(jitter)